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

Version
vyos-1.4
Is it a breaking change?
Perfectly compatible

Event Timeline

jestabro changed the task status from Open to In progress.
jestabro triaged this task as Normal priority.
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.Sep 7 2022, 3:35 PM
jestabro changed Issue type from Unspecified (please specify) to improvement.