diff options
author | Nicolas Fort <nicolasfort1988@gmail.com> | 2022-08-08 17:49:05 +0000 |
---|---|---|
committer | Nicolas Fort <nicolasfort1988@gmail.com> | 2022-08-08 17:53:58 +0000 |
commit | 0863b441f4a95c3d3f678f42f31800e9ec4c924a (patch) | |
tree | 9170f719ed5beda728ee1668ac81d89b896565ed | |
parent | 3a9e7eafe53108c183cf1f9f2b475f1419236956 (diff) | |
download | vyos-1x-0863b441f4a95c3d3f678f42f31800e9ec4c924a.tar.gz vyos-1x-0863b441f4a95c3d3f678f42f31800e9ec4c924a.zip |
nat66: T4598: add file nat-exclue.xml.i, which is invoked by nat66.xml.in and nat-rule.xml.i
-rw-r--r-- | interface-definitions/include/nat-exclude.xml.i | 8 | ||||
-rw-r--r-- | interface-definitions/include/nat-rule.xml.i | 7 | ||||
-rw-r--r-- | interface-definitions/nat66.xml.in | 14 |
3 files changed, 11 insertions, 18 deletions
diff --git a/interface-definitions/include/nat-exclude.xml.i b/interface-definitions/include/nat-exclude.xml.i new file mode 100644 index 000000000..4d53cf844 --- /dev/null +++ b/interface-definitions/include/nat-exclude.xml.i @@ -0,0 +1,8 @@ +<!-- include start from nat-exclude.xml.i --> +<leafNode name="exclude"> + <properties> + <help>Exclude packets matching this rule from NAT</help> + <valueless/> + </properties> +</leafNode> +<!-- include end --> diff --git a/interface-definitions/include/nat-rule.xml.i b/interface-definitions/include/nat-rule.xml.i index bdb86ed9b..84941aa6a 100644 --- a/interface-definitions/include/nat-rule.xml.i +++ b/interface-definitions/include/nat-rule.xml.i @@ -23,12 +23,7 @@ </children> </node> #include <include/generic-disable-node.xml.i> - <leafNode name="exclude"> - <properties> - <help>Exclude packets matching this rule from NAT</help> - <valueless/> - </properties> - </leafNode> + #include <include/nat-exclude.xml.i> <leafNode name="log"> <properties> <help>NAT rule logging</help> diff --git a/interface-definitions/nat66.xml.in b/interface-definitions/nat66.xml.in index b50e11c49..bde1a6f8d 100644 --- a/interface-definitions/nat66.xml.in +++ b/interface-definitions/nat66.xml.in @@ -35,12 +35,7 @@ <valueless/> </properties> </leafNode> - <leafNode name="exclude"> - <properties> - <help>Exclude packets matching this rule from NAT</help> - <valueless/> - </properties> - </leafNode> + #include <include/nat-exclude.xml.i> <leafNode name="log"> <properties> <help>NAT66 rule logging</help> @@ -168,12 +163,7 @@ <valueless/> </properties> </leafNode> - <leafNode name="exclude"> - <properties> - <help>Exclude packets matching this rule from NAT</help> - <valueless/> - </properties> - </leafNode> + #include <include/nat-exclude.xml.i> <leafNode name="log"> <properties> <help>NAT66 rule logging</help> |