From 07d72417590ae2ad4641fb7f58f093bf68dca87e Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Mon, 16 Jan 2012 10:25:34 -0800 Subject: Fix check for pseudo-ethernet overlap Bug 7726 Incorrect variable name (from cut-paste) --- scripts/vyatta-bridge.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/vyatta-bridge.pl b/scripts/vyatta-bridge.pl index 68d3e107..b1a3afaa 100755 --- a/scripts/vyatta-bridge.pl +++ b/scripts/vyatta-bridge.pl @@ -72,8 +72,8 @@ if ( $action eq 'SET' ) { foreach my $peth ($cfg->listNodes()) { my $link = $cfg->returnValue("$peth link"); - die "Error: can not add interface $slave to bridge already used by pseudo-ethernet $peth\n" - if ($link eq $slave); + die "Error: can not add interface $ifname to bridge already used by pseudo-ethernet $peth\n" + if ($link eq $ifname); } print "Adding interface $ifname to bridge $newbridge\n"; -- cgit v1.2.3