summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorStig Thormodsrud <stig@vyatta.com>2010-05-28 14:31:38 -0700
committerStig Thormodsrud <stig@vyatta.com>2010-05-28 14:31:38 -0700
commitc135f2d36f9dc48a58193b44fa76213e01508b40 (patch)
treea0dca611b9227fffa9acb11e89e4fabec0d8e1c5 /scripts
parent1373b05925ab47f9065b8db9be941b6b1a0ea6c4 (diff)
downloadvyatta-cfg-system-c135f2d36f9dc48a58193b44fa76213e01508b40.tar.gz
vyatta-cfg-system-c135f2d36f9dc48a58193b44fa76213e01508b40.zip
Fix 5521: Cannot Delete vif with vrrp configured.
Diffstat (limited to 'scripts')
-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);