-
Notifications
You must be signed in to change notification settings - Fork 347
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
T5681: Firewall,Nat and Nat66: simplified and standarize interface ma…
…tcher firewal, nat and nat66. (cherry picked from commit 51abbc0)
- Loading branch information
1 parent
03e5ab6
commit 2b38b45
Showing
19 changed files
with
348 additions
and
88 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 34 additions & 0 deletions
34
interface-definitions/include/firewall/inbound-interface-no-group.xml.i
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<!-- include start from firewall/inbound-interface-no-group.xml.i --> | ||
<node name="inbound-interface"> | ||
<properties> | ||
<help>Match inbound-interface</help> | ||
</properties> | ||
<children> | ||
<leafNode name="name"> | ||
<properties> | ||
<help>Match interface</help> | ||
<completionHelp> | ||
<script>${vyos_completion_dir}/list_interfaces</script> | ||
<path>vrf name</path> | ||
</completionHelp> | ||
<valueHelp> | ||
<format>txt</format> | ||
<description>Interface name</description> | ||
</valueHelp> | ||
<valueHelp> | ||
<format>txt*</format> | ||
<description>Interface name with wildcard</description> | ||
</valueHelp> | ||
<valueHelp> | ||
<format>!txt</format> | ||
<description>Inverted interface name to match</description> | ||
</valueHelp> | ||
<constraint> | ||
<regex>(\!?)(bond|br|dum|en|ersp|eth|gnv|ifb|lan|l2tp|l2tpeth|macsec|peth|ppp|pppoe|pptp|sstp|tun|veth|vti|vtun|vxlan|wg|wlan|wwan)([0-9]?)(\*?)(.+)?|(\!?)lo</regex> | ||
<validator name="vrf-name"/> | ||
</constraint> | ||
</properties> | ||
</leafNode> | ||
</children> | ||
</node> | ||
<!-- include end --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 34 additions & 0 deletions
34
interface-definitions/include/firewall/outbound-interface-no-group.xml.i
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<!-- include start from firewall/outbound-interface-no-group.xml.i --> | ||
<node name="outbound-interface"> | ||
<properties> | ||
<help>Match outbound-interface</help> | ||
</properties> | ||
<children> | ||
<leafNode name="name"> | ||
<properties> | ||
<help>Match interface</help> | ||
<completionHelp> | ||
<script>${vyos_completion_dir}/list_interfaces</script> | ||
<path>vrf name</path> | ||
</completionHelp> | ||
<valueHelp> | ||
<format>txt</format> | ||
<description>Interface name</description> | ||
</valueHelp> | ||
<valueHelp> | ||
<format>txt*</format> | ||
<description>Interface name with wildcard</description> | ||
</valueHelp> | ||
<valueHelp> | ||
<format>!txt</format> | ||
<description>Inverted interface name to match</description> | ||
</valueHelp> | ||
<constraint> | ||
<regex>(\!?)(bond|br|dum|en|ersp|eth|gnv|ifb|lan|l2tp|l2tpeth|macsec|peth|ppp|pppoe|pptp|sstp|tun|veth|vti|vtun|vxlan|wg|wlan|wwan)([0-9]?)(\*?)(.+)?|(\!?)lo</regex> | ||
<validator name="vrf-name"/> | ||
</constraint> | ||
</properties> | ||
</leafNode> | ||
</children> | ||
</node> | ||
<!-- include end --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
<!-- include start from include/version/firewall-version.xml.i --> | ||
<syntaxVersion component='firewall' version='11'></syntaxVersion> | ||
<syntaxVersion component='firewall' version='12'></syntaxVersion> | ||
<!-- include end --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
<!-- include start from include/version/nat-version.xml.i --> | ||
<syntaxVersion component='nat' version='5'></syntaxVersion> | ||
<syntaxVersion component='nat' version='7'></syntaxVersion> | ||
<!-- include end --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
<!-- include start from include/version/nat66-version.xml.i --> | ||
<syntaxVersion component='nat66' version='1'></syntaxVersion> | ||
<syntaxVersion component='nat66' version='2'></syntaxVersion> | ||
<!-- include end --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.