summaryrefslogtreecommitdiff
path: root/gen-interface-templates.pl
diff options
context:
space:
mode:
authorBob Gilligan <gilligan@vyatta.com>2009-03-03 18:14:08 -0800
committerBob Gilligan <gilligan@vyatta.com>2009-03-03 18:14:08 -0800
commitccb8e496443eeb1ce0ae3bb4f2c56acb43db1976 (patch)
tree7a677af212da9bbb43368d50a3d91a0cac952c35 /gen-interface-templates.pl
parentb3912f36ed534bcad5beeda06df6cc34d48ab489 (diff)
downloadvyatta-cfg-firewall-ccb8e496443eeb1ce0ae3bb4f2c56acb43db1976.tar.gz
vyatta-cfg-firewall-ccb8e496443eeb1ce0ae3bb4f2c56acb43db1976.zip
Fix generated templates for ethernet vifs.
Diffstat (limited to 'gen-interface-templates.pl')
-rwxr-xr-xgen-interface-templates.pl25
1 files changed, 23 insertions, 2 deletions
diff --git a/gen-interface-templates.pl b/gen-interface-templates.pl
index 87f1151..a5a56f3 100755
--- a/gen-interface-templates.pl
+++ b/gen-interface-templates.pl
@@ -1,4 +1,25 @@
#!/usr/bin/perl
+#
+# **** License ****
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License version 2 as
+# published by the Free Software Foundation.
+#
+# This program is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# General Public License for more details.
+#
+# This code was originally developed by Vyatta, Inc.
+# Portions created by Vyatta are Copyright (C) 2009 Vyatta, Inc.
+# All Rights Reserved.
+#
+# Author: Bob Gilligan
+# Date: March 2009
+# Description: Script to automatically generate interface firewall templates
+#
+# **** End License ****
+#
my $debug = 0;
@@ -12,12 +33,12 @@ my %interface_hash = (
'bonding/node.tag' => '$VAR(../../../@)',
'bonding/node.tag/vif/node.tag' =>
- '$VAR(../../../../@).$VAR(../../../../@)',
+ '$VAR(../../../../@).$VAR(../../../@)',
'ethernet/node.tag' => '$VAR(../../../@)',
'ethernet/node.tag/pppoe/node.tag' => 'pppoe$VAR(../../../@)',
'ethernet/node.tag/vif/node.tag' =>
- '$VAR(../../../../@).$VAR(../../../../@)',
+ '$VAR(../../../../@).$VAR(../../../@)',
'ethernet/node.tag/vif/node.tag/pppoe/node.tag' =>
'pppoe$VAR(../../../@)',