diff options
author | Christian Poessinger <christian@poessinger.com> | 2022-08-08 20:00:55 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-08 20:00:55 +0200 |
commit | 7ae34b68649ef526c18e662d444465bf18a23939 (patch) | |
tree | 282d2a4d2b16ba141470d889127798c2cd67274a /interface-definitions | |
parent | 1b637f78b870f8ecc4971de5baf0a6fda54c40f7 (diff) | |
parent | 0863b441f4a95c3d3f678f42f31800e9ec4c924a (diff) | |
download | vyos-1x-7ae34b68649ef526c18e662d444465bf18a23939.tar.gz vyos-1x-7ae34b68649ef526c18e662d444465bf18a23939.zip |
Merge pull request #1461 from nicolas-fort/nat66-exclude
nat66: T4598: Add exclude options in nat66
Diffstat (limited to 'interface-definitions')
-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 | 2 |
3 files changed, 11 insertions, 6 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 ac3198f45..bde1a6f8d 100644 --- a/interface-definitions/nat66.xml.in +++ b/interface-definitions/nat66.xml.in @@ -35,6 +35,7 @@ <valueless/> </properties> </leafNode> + #include <include/nat-exclude.xml.i> <leafNode name="log"> <properties> <help>NAT66 rule logging</help> @@ -162,6 +163,7 @@ <valueless/> </properties> </leafNode> + #include <include/nat-exclude.xml.i> <leafNode name="log"> <properties> <help>NAT66 rule logging</help> |