Page MenuHomeVyOS Platform

xml: cleanup double CLI properties in NAT
Closed, ResolvedPublicFEATURE REQUEST

Description

We can remove the XML <properties> because it's the same as already defined in #include <include/nat-rule.xml.i>

diff --git i/interface-definitions/nat.xml.in w/interface-definitions/nat.xml.in
index 73a748137..93dd847d6 100644
--- i/interface-definitions/nat.xml.in
+++ w/interface-definitions/nat.xml.in
@@ -65,17 +65,6 @@
         <children>
           #include <include/nat-rule.xml.i>
           <tagNode name="rule">
-            <properties>
-              <help>Rule number for NAT</help>
-              <valueHelp>
-                <format>u32:1-999999</format>
-                <description>Number of NAT rule</description>
-              </valueHelp>
-              <constraint>
-                <validator name="numeric" argument="--range 1-999999"/>
-              </constraint>
-              <constraintErrorMessage>NAT rule number must be between 1 and 999999</constraintErrorMessage>
-            </properties>
             <children>
               #include <include/firewall/outbound-interface.xml.i>
               <node name="translation">

Details

Version
-
Is it a breaking change?
Perfectly compatible
Issue type
Internal change (not visible to end users)

Event Timeline

c-po changed the task status from Open to In progress.
c-po claimed this task.
c-po triaged this task as Low priority.
c-po moved this task from Need Triage to Completed on the VyOS Rolling board.
c-po moved this task from Backlog to Finished on the VyOS 1.4 Sagitta (1.4.4) board.
dmbaturin changed Is it a breaking change? from Unspecified (possibly destroys the router) to Perfectly compatible.Mon, Dec 8, 7:36 PM
dmbaturin changed Issue type from Feature (new functionality) to Internal change (not visible to end users).