summaryrefslogtreecommitdiff
path: root/gen-interface-policy-templates.pl
diff options
context:
space:
mode:
authorCarl Byington <carl@five-ten-sg.com>2014-12-03 12:35:42 -0800
committerDaniil Baturin <daniil@baturin.org>2015-05-03 23:39:57 +0200
commitef64625ee5e9b911f3bfb3a9670df631ff6076fd (patch)
tree691115db2bf1ff20c052463d93c2b23a0c0f6993 /gen-interface-policy-templates.pl
parentecc741a5f6731b572072b0b34ab20ddf7b3aab76 (diff)
downloadvyatta-cfg-firewall-ef64625ee5e9b911f3bfb3a9670df631ff6076fd.tar.gz
vyatta-cfg-firewall-ef64625ee5e9b911f3bfb3a9670df631ff6076fd.zip
add interfaces/vti/<intf>/policy add interfaces/ethernet/<intf>/vrrp/vrrp-group/policy remove interfaces/ethernet/<intf>/pppoa
cleanup and sort lists of interfaces Signed-off-by: Daniil Baturin <daniil@baturin.org>
Diffstat (limited to 'gen-interface-policy-templates.pl')
-rwxr-xr-xgen-interface-policy-templates.pl59
1 files changed, 27 insertions, 32 deletions
diff --git a/gen-interface-policy-templates.pl b/gen-interface-policy-templates.pl
index ae77a7f..30e8dc4 100755
--- a/gen-interface-policy-templates.pl
+++ b/gen-interface-policy-templates.pl
@@ -20,7 +20,7 @@
# templates.
#
# Portions copyright by VyOS maintainers and contributors, 2015.
-#
+#
# **** End License ****
#
use strict;
@@ -36,38 +36,33 @@ my $debug = 0;
# the partial pathname under the config template tree "interfaces/".
#
my %interface_hash = (
- 'bonding/node.tag' => '$VAR(../../@)',
- 'bonding/node.tag/vif/node.tag' => '$VAR(../../../@).$VAR(../../@)',
- 'bonding/node.tag/vif-s/node.tag' => '$VAR(../../../@).$VAR(../../@)',
- 'bonding/node.tag/vif-s/node.tag/vif-c/node.tag' => '$VAR(../../../../@).$VAR(../../../@).$VAR(../../@)',
-
- 'ethernet/node.tag' => '$VAR(../../@)',
- 'ethernet/node.tag/pppoe/node.tag' => 'pppoe$VAR(../../@)',
- 'ethernet/node.tag/vif/node.tag' => '$VAR(../../../@).$VAR(../../@)',
- 'ethernet/node.tag/vif/node.tag/pppoe/node.tag' => 'pppoe$VAR(../../@)',
- 'ethernet/node.tag/vif-s/node.tag' => '$VAR(../../../@).$VAR(../../@)',
- 'ethernet/node.tag/vif-s/node.tag/vif-c/node.tag' => '$VAR(../../../../@).$VAR(../../../@).$VAR(../../@)',
-
- 'pseudo-ethernet/node.tag' => '$VAR(../../@)',
- 'pseudo-ethernet/node.tag/vif/node.tag' => '$VAR(../../../@).$VAR(../../@)',
- 'pseudo-ethernet/node.tag/vif-s/node.tag' => '$VAR(../../../@).$VAR(../../@)',
+ 'bonding/node.tag' => '$VAR(../../@)',
+ 'bonding/node.tag/vif-s/node.tag' => '$VAR(../../../@).$VAR(../../@)',
+ 'bonding/node.tag/vif-s/node.tag/vif-c/node.tag' => '$VAR(../../../../@).$VAR(../../../@).$VAR(../../@)',
+ 'bonding/node.tag/vif/node.tag' => '$VAR(../../../@).$VAR(../../@)',
+ 'bridge/node.tag' => '$VAR(../../@)',
+ 'dummy/node.tag' => '$VAR(../../@)'
+ 'ethernet/node.tag' => '$VAR(../../@)',
+ 'ethernet/node.tag/pppoe/node.tag' => 'pppoe$VAR(../../@)',
+ 'ethernet/node.tag/vif-s/node.tag' => '$VAR(../../../@).$VAR(../../@)',
+ 'ethernet/node.tag/vif-s/node.tag/vif-c/node.tag' => '$VAR(../../../../@).$VAR(../../../@).$VAR(../../@)',
+ 'ethernet/node.tag/vif/node.tag' => '$VAR(../../../@).$VAR(../../@)',
+ 'ethernet/node.tag/vif/node.tag/pppoe/node.tag' => 'pppoe$VAR(../../@)',
+ 'ethernet/node.tag/vrrp/vrrp-group/node.tag' => '$VAR(../../../../@)v$VAR(../../@)',
+ 'input/node.tag' => '$VAR(../../@)',
+ 'l2tpv3/node.tag' => '$VAR(../../@)',
+ 'multilink/node.tag/vif/node.tag' => '$VAR(../../../@)',
+ 'openvpn/node.tag' => '$VAR(../../@)',
+ 'pseudo-ethernet/node.tag' => '$VAR(../../@)',
+ 'pseudo-ethernet/node.tag/vif-s/node.tag' => '$VAR(../../../@).$VAR(../../@)',
'pseudo-ethernet/node.tag/vif-s/node.tag/vif-c/node.tag' => '$VAR(../../../../@).$VAR(../../../@).$VAR(../../@)',
-
- 'wireless/node.tag' => '$VAR(../../@)',
- 'wireless/node.tag/vif/node.tag' => '$VAR(../../../@).$VAR(../../@)',
-
- 'input/node.tag' => '$VAR(../../@)',
- 'tunnel/node.tag' => '$VAR(../../@)',
- 'bridge/node.tag' => '$VAR(../../@)',
- 'openvpn/node.tag' => '$VAR(../../@)',
-
- 'l2tpv3/node.tag' => '$VAR(../../@)',
-
- 'vxlan/node.tag' => '$VAR(../../@)',
-
- 'wirelessmodem/node.tag' => '$VAR(../../@)',
-
- 'dummy/node.tag' => '$VAR(../../@)'
+ 'pseudo-ethernet/node.tag/vif/node.tag' => '$VAR(../../../@).$VAR(../../@)',
+ 'tunnel/node.tag' => '$VAR(../../@)',
+ 'vti/node.tag' => '$VAR(../../@)',
+ 'vxlan/node.tag' => '$VAR(../../@)',
+ 'wireless/node.tag' => '$VAR(../../@)',
+ 'wireless/node.tag/vif/node.tag' => '$VAR(../../../@).$VAR(../../@)',
+ 'wirelessmodem/node.tag' => '$VAR(../../@)',
);
# The subdirectory where the generated templates will go