diff options
author | Christian Poessinger <christian@poessinger.com> | 2020-05-12 19:28:06 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2020-05-16 15:30:26 +0200 |
commit | ac4f99ac3b176f1804b17b32e6615e8b3701dfe8 (patch) | |
tree | 4e6595c1934572e5451cb93e687fd5abddabe884 /interface-definitions | |
parent | 1330898ed095b42b6aba7ba00f9a6932b241a230 (diff) | |
download | vyos-1x-ac4f99ac3b176f1804b17b32e6615e8b3701dfe8.tar.gz vyos-1x-ac4f99ac3b176f1804b17b32e6615e8b3701dfe8.zip |
nat: T2198: split nat-address-port include into individual files
Diffstat (limited to 'interface-definitions')
-rw-r--r-- | interface-definitions/include/nat-address.xml.i (renamed from interface-definitions/include/nat-address-port.xml.i) | 17 | ||||
-rw-r--r-- | interface-definitions/include/nat-port.xml.i | 17 | ||||
-rw-r--r-- | interface-definitions/include/nat-rule.xml.i | 6 |
3 files changed, 21 insertions, 19 deletions
diff --git a/interface-definitions/include/nat-address-port.xml.i b/interface-definitions/include/nat-address.xml.i index 8705d31cb..933dae07b 100644 --- a/interface-definitions/include/nat-address-port.xml.i +++ b/interface-definitions/include/nat-address.xml.i @@ -35,20 +35,3 @@ </constraint> </properties> </leafNode> -<leafNode name="port"> - <properties> - <help>Port number</help> - <valueHelp> - <format>1-65535</format> - <description>Numeric IP port</description> - </valueHelp> - <valueHelp> - <format>start-end</format> - <description>Numbered port range (e.g., 1001-1005)</description> - </valueHelp> - <valueHelp> - <format> </format> - <description>\n\nMultiple destination ports can be specified as a comma-separated list.\nThe whole list can also be negated using '!'.\nFor example: '!22,telnet,http,123,1001-1005'</description> - </valueHelp> - </properties> -</leafNode> diff --git a/interface-definitions/include/nat-port.xml.i b/interface-definitions/include/nat-port.xml.i new file mode 100644 index 000000000..24803ae05 --- /dev/null +++ b/interface-definitions/include/nat-port.xml.i @@ -0,0 +1,17 @@ +<leafNode name="port"> + <properties> + <help>Port number</help> + <valueHelp> + <format>1-65535</format> + <description>Numeric IP port</description> + </valueHelp> + <valueHelp> + <format>start-end</format> + <description>Numbered port range (e.g., 1001-1005)</description> + </valueHelp> + <valueHelp> + <format> </format> + <description>\n\nMultiple destination ports can be specified as a comma-separated list.\nThe whole list can also be negated using '!'.\nFor example: '!22,telnet,http,123,1001-1005'</description> + </valueHelp> + </properties> +</leafNode> diff --git a/interface-definitions/include/nat-rule.xml.i b/interface-definitions/include/nat-rule.xml.i index fdba4b8bd..183692664 100644 --- a/interface-definitions/include/nat-rule.xml.i +++ b/interface-definitions/include/nat-rule.xml.i @@ -21,7 +21,8 @@ <help>NAT destination parameters</help> </properties> <children> - #include <include/nat-address-port.xml.i> + #include <include/nat-address.xml.i> + #include <include/nat-port.xml.i> </children> </node> <leafNode name="disable"> @@ -79,7 +80,8 @@ <help>NAT source parameters</help> </properties> <children> - #include <include/nat-address-port.xml.i> + #include <include/nat-address.xml.i> + #include <include/nat-port.xml.i> </children> </node> </children> |