summaryrefslogtreecommitdiff
path: root/interface-definitions
diff options
context:
space:
mode:
authorNicolas Fort <nicolasfort1988@gmail.com>2022-09-01 19:08:37 +0000
committerNicolas Fort <nicolasfort1988@gmail.com>2022-09-01 19:08:37 +0000
commit312ee15058fbb26feb6a93520417f0d5343ad15b (patch)
treea08e7e47735de7ad136cc618ffa46054237476b8 /interface-definitions
parent37cfa8cdb1c6a1d395109aabd3ee29e83db151da (diff)
downloadvyos-1x-312ee15058fbb26feb6a93520417f0d5343ad15b.tar.gz
vyos-1x-312ee15058fbb26feb6a93520417f0d5343ad15b.zip
Firewall: T4651: Change proposed cli from ip-length to packet-length
Diffstat (limited to 'interface-definitions')
-rw-r--r--interface-definitions/firewall.xml.in42
-rw-r--r--interface-definitions/include/firewall/packet-length.xml.i18
2 files changed, 20 insertions, 40 deletions
diff --git a/interface-definitions/firewall.xml.in b/interface-definitions/firewall.xml.in
index f838f1b88..ed84acbb7 100644
--- a/interface-definitions/firewall.xml.in
+++ b/interface-definitions/firewall.xml.in
@@ -383,26 +383,7 @@
</children>
</node>
#include <include/firewall/common-rule.xml.i>
- <leafNode name="ip-length">
- <properties>
- <help>Payload size in bytes, including any extension header</help>
- <valueHelp>
- <format>u32:1-65535</format>
- <description>Numbered packet length</description>
- </valueHelp>
- <valueHelp>
- <format>&lt;start-end&gt;</format>
- <description>Packet length range (e.g. 1001-1005)</description>
- </valueHelp>
- <valueHelp>
- <format> </format>
- <description>\n\n Multiple values can be specified as a comma-separated list.\n For example: '64, 512,1001-1005'</description>
- </valueHelp>
- <constraint>
- <validator name="ip-length"/>
- </constraint>
- </properties>
- </leafNode>
+ #include <include/firewall/packet-length.xml.i>
<node name="hop-limit">
<properties>
<help>Hop Limit</help>
@@ -591,26 +572,7 @@
</children>
</node>
#include <include/firewall/common-rule.xml.i>
- <leafNode name="ip-length">
- <properties>
- <help>Packet size in bytes, including header and data</help>
- <valueHelp>
- <format>u32:1-65535</format>
- <description>Numbered packet length</description>
- </valueHelp>
- <valueHelp>
- <format>&lt;start-end&gt;</format>
- <description>Packet length range (e.g. 1001-1005)</description>
- </valueHelp>
- <valueHelp>
- <format> </format>
- <description>\n\n Multiple values can be specified as a comma-separated list.\n For example: '64, 512,1001-1005'</description>
- </valueHelp>
- <constraint>
- <validator name="ip-length"/>
- </constraint>
- </properties>
- </leafNode>
+ #include <include/firewall/packet-length.xml.i>
<node name="icmp">
<properties>
<help>ICMP type and code information</help>
diff --git a/interface-definitions/include/firewall/packet-length.xml.i b/interface-definitions/include/firewall/packet-length.xml.i
new file mode 100644
index 000000000..866a76bbb
--- /dev/null
+++ b/interface-definitions/include/firewall/packet-length.xml.i
@@ -0,0 +1,18 @@
+<!-- include start from firewall/packet-length.xml.i -->
+<leafNode name="packet-length">
+ <properties>
+ <help>Payload size in bytes, including header and data</help>
+ <valueHelp>
+ <format>u32:1-65535</format>
+ <description>Packet length value. Multiple values can be specified as a comma-separated list. Inverted match is also supported</description>
+ </valueHelp>
+ <valueHelp>
+ <format>&lt;start-end&gt;</format>
+ <description>Packet length range. Inverted match is also supported (e.g. 1001-1005 or !1001-1005)</description>
+ </valueHelp>
+ <constraint>
+ <validator name="packet-length"/>
+ </constraint>
+ </properties>
+</leafNode>
+<!-- include end -->