Page MenuHomeVyOS Platform

Extend for inversion of values and range values
Closed, ResolvedPublicENHANCEMENT


This task will provide two requested extensions to

(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)


Difficulty level
Normal (likely a few hours)
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).