From ccb8e496443eeb1ce0ae3bb4f2c56acb43db1976 Mon Sep 17 00:00:00 2001 From: Bob Gilligan Date: Tue, 3 Mar 2009 18:14:08 -0800 Subject: Fix generated templates for ethernet vifs. --- gen-interface-templates.pl | 25 +++++++++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) (limited to 'gen-interface-templates.pl') 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(../../../@)', -- cgit v1.2.3