diff options
author | Stig Thormodsrud <stig@vyatta.com> | 2010-05-28 14:31:38 -0700 |
---|---|---|
committer | Stig Thormodsrud <stig@vyatta.com> | 2010-05-29 16:03:50 -0700 |
commit | 481e7ac37759e4fc061d7e56a630eb16ea9b0f1c (patch) | |
tree | 425d8bc833809053954fb21fc05cb4934bd7800a /scripts/keepalived | |
parent | 2bee5dd004864e2b996021242e900162b41eeecc (diff) | |
download | vyatta-cfg-system-481e7ac37759e4fc061d7e56a630eb16ea9b0f1c.tar.gz vyatta-cfg-system-481e7ac37759e4fc061d7e56a630eb16ea9b0f1c.zip |
Fix 5521: Cannot Delete vif with vrrp configured.
Diffstat (limited to 'scripts/keepalived')
-rwxr-xr-x | scripts/keepalived/vyatta-keepalived.pl | 1 |
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); |