summaryrefslogtreecommitdiff
path: root/gen-interface-policy-templates.pl
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@baturin.org>2015-04-09 01:01:17 +0200
committerDaniil Baturin <daniil@baturin.org>2015-04-09 01:01:17 +0200
commit8ebfbefeb2a3fdb03f2b862d97995a75bac05479 (patch)
tree4f9ed6d0f81c7c3babafdde678a9ab26c0806d1b /gen-interface-policy-templates.pl
parent0122fc7e7598ebcefbc2ba309018f1d0facb8fcd (diff)
downloadvyatta-cfg-firewall-8ebfbefeb2a3fdb03f2b862d97995a75bac05479.tar.gz
vyatta-cfg-firewall-8ebfbefeb2a3fdb03f2b862d97995a75bac05479.zip
Sanitize the package.
Add dependency on iptables. Don't build the cfg-serial package and don't generate templates for it, serial interfaces support is long dead. Generate templates for dummy interfaces.
Diffstat (limited to 'gen-interface-policy-templates.pl')
-rwxr-xr-xgen-interface-policy-templates.pl18
1 files changed, 4 insertions, 14 deletions
diff --git a/gen-interface-policy-templates.pl b/gen-interface-policy-templates.pl
index 884dc67..ae77a7f 100755
--- a/gen-interface-policy-templates.pl
+++ b/gen-interface-policy-templates.pl
@@ -19,6 +19,8 @@
# Description: Script to automatically generate per-interface firewall
# templates.
#
+# Portions copyright by VyOS maintainers and contributors, 2015.
+#
# **** End License ****
#
use strict;
@@ -34,11 +36,6 @@ my $debug = 0;
# the partial pathname under the config template tree "interfaces/".
#
my %interface_hash = (
- 'adsl/node.tag/pvc/node.tag/bridged-ethernet' => '$VAR(../../../../@)',
- 'adsl/node.tag/pvc/node.tag/classical-ipoa' => '$VAR(../../../../@)',
- 'adsl/node.tag/pvc/node.tag/pppoa/node.tag' => 'pppoa$VAR(../../@)',
- 'adsl/node.tag/pvc/node.tag/pppoe/node.tag' => 'pppoe$VAR(../../@)',
-
'bonding/node.tag' => '$VAR(../../@)',
'bonding/node.tag/vif/node.tag' => '$VAR(../../../@).$VAR(../../@)',
'bonding/node.tag/vif-s/node.tag' => '$VAR(../../../@).$VAR(../../@)',
@@ -68,16 +65,9 @@ my %interface_hash = (
'vxlan/node.tag' => '$VAR(../../@)',
- 'multilink/node.tag/vif/node.tag' => '$VAR(../../../@)',
-
- 'serial/node.tag/cisco-hdlc/vif/node.tag' =>
- '$VAR(../../../../@).$VAR(../../@)',
- 'serial/node.tag/frame-relay/vif/node.tag' =>
- '$VAR(../../../../@).$VAR(../../@)',
- 'serial/node.tag/ppp/vif/node.tag' =>
- '$VAR(../../../../@).$VAR(../../@)',
-
'wirelessmodem/node.tag' => '$VAR(../../@)',
+
+ 'dummy/node.tag' => '$VAR(../../@)'
);
# The subdirectory where the generated templates will go