summaryrefslogtreecommitdiff
path: root/gen-interface-templates.pl
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2009-03-30 13:45:33 -0700
committerStephen Hemminger <stephen.hemminger@vyatta.com>2009-03-30 13:45:33 -0700
commite13db37ad07d68f0fb5a25a53e69bb4a7cacdcdb (patch)
treee20bf37f2c8a85c3277c6b474037df17689cff2f /gen-interface-templates.pl
parent14d2f5e78951a8f956c547b74cf99620df3d17be (diff)
downloadvyatta-cfg-quagga-e13db37ad07d68f0fb5a25a53e69bb4a7cacdcdb.tar.gz
vyatta-cfg-quagga-e13db37ad07d68f0fb5a25a53e69bb4a7cacdcdb.zip
Fix interface name on rip authentication node
When generating templates, don't append .. onto interface name when going through node.tag directory.
Diffstat (limited to 'gen-interface-templates.pl')
-rwxr-xr-xgen-interface-templates.pl3
1 files changed, 2 insertions, 1 deletions
diff --git a/gen-interface-templates.pl b/gen-interface-templates.pl
index d31b53ed..5e17fa0c 100755
--- a/gen-interface-templates.pl
+++ b/gen-interface-templates.pl
@@ -64,9 +64,10 @@ sub gen_template {
my $in = "$inpath/$name";
my $out = "$outpath/$name";
+ # recurse into subdirectory
if ( -d $in ) {
my $subif = $ifname;
- $subif =~ s#@\)#../@)#g;
+ $subif =~ s#@\)#../@)#g if ($name ne 'node.tag');
( -d $out )
or mkdir($out)