diff options
author | Alex Harpin <development@landsofshadow.co.uk> | 2015-02-08 12:08:57 +0000 |
---|---|---|
committer | Alex Harpin <development@landsofshadow.co.uk> | 2015-02-24 21:29:10 +0000 |
commit | e85c9a9a429846c4515b049a56d64a1990d11675 (patch) | |
tree | a0c7e916ec8f12e0ec8c24f3f3ce192dceb58767 | |
parent | b89dbdca5a62fd3745989ae3572aad06fa4648f6 (diff) | |
download | vyatta-cfg-e85c9a9a429846c4515b049a56d64a1990d11675.tar.gz vyatta-cfg-e85c9a9a429846c4515b049a56d64a1990d11675.zip |
vyatta-cfg: set the path for a vrrp interface correctly
Update the path set when the interface in question is a VRRP so it
points to vrrp vrrp-group vrid rather than vrrp vrid. Along with the
patch for bug #7, this now shows the description correctly for a VRRP
interface.
Bug #130 http://bugzilla.vyos.net/show_bug.cgi?id=130
-rwxr-xr-x | lib/Vyatta/Interface.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Vyatta/Interface.pm b/lib/Vyatta/Interface.pm index 92fdd6a..4c536ce 100755 --- a/lib/Vyatta/Interface.pm +++ b/lib/Vyatta/Interface.pm @@ -184,7 +184,7 @@ sub path { # normal device my $path = "interfaces $self->{type} $self->{dev}"; - $path .= " vrrp $self->{vrid}" if $self->{vrid}; + $path .= " vrrp vrrp-group $self->{vrid}" if $self->{vrid}; $path .= " vif $self->{vif}" if ($self->{vif} && !$self->{vif_c}); $path .= " vif-s $self->{vif} vif-c $self->{vif_c}" if ($self->{vif} && $self->{vif_c}); |