Page MenuHomeVyOS Platform

Extend numeric.ml for inversion of values and range values
Closed, ResolvedPublicENHANCEMENT

Description

This task will provide two requested extensions to numeric.ml:

(1) allow passing an interval value to --range:
numeric --range 0-10 2-5 (passes)
numeric --range 0-10 7-12 (fails)

(2) define an inversion operator for --range:
numeric --range 0-10 !12 (passes)
numeric --range 0-10 !5 (fails)

Details

Difficulty level
Normal (likely a few hours)
Version
vyos-1.4
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Perfectly compatible
Issue type
Improvement (missing useful functionality)

Event Timeline

jestabro changed the task status from Open to In progress.Sep 3 2022, 12:37 PM
jestabro triaged this task as Normal priority.
jestabro created this task.
jestabro created this object in space S1 VyOS Public.

Changes for the inversion operator (--not-range instead of !) have been made. Generalizing exit codes, as suggested in PR comments will be handled in a separate task.

jestabro changed Is it a breaking change? from Unspecified (possibly destroys the router) to Perfectly compatible.Wed, Sep 7, 3:35 PM
jestabro changed Issue type from Unspecified (please specify) to Improvement (missing useful functionality).