summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStig Thormodsrud <stig@vyatta.com>2010-05-28 14:31:38 -0700
committerStig Thormodsrud <stig@vyatta.com>2010-05-29 16:03:50 -0700
commit481e7ac37759e4fc061d7e56a630eb16ea9b0f1c (patch)
tree425d8bc833809053954fb21fc05cb4934bd7800a
parent2bee5dd004864e2b996021242e900162b41eeecc (diff)
downloadvyatta-cfg-quagga-481e7ac37759e4fc061d7e56a630eb16ea9b0f1c.tar.gz
vyatta-cfg-quagga-481e7ac37759e4fc061d7e56a630eb16ea9b0f1c.zip
Fix 5521: Cannot Delete vif with vrrp configured.
-rwxr-xr-xscripts/keepalived/vyatta-keepalived.pl1
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/keepalived/vyatta-keepalived.pl b/scripts/keepalived/vyatta-keepalived.pl
index e87c9f64..2c84f252 100755
--- a/scripts/keepalived/vyatta-keepalived.pl
+++ b/scripts/keepalived/vyatta-keepalived.pl
@@ -212,6 +212,7 @@ sub vrrp_get_sync_groups {
sub vrrp_read_changes {
my @lines = ();
+ return @lines if ! -e $changes_file;
open(my $FILE, "<", $changes_file) or die "Error: read $!";
@lines = <$FILE>;
close($FILE);