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-08 12:08:57 +0000 |
commit | ba890679400bb2e5e46d16640016a2c8cddcadb6 (patch) | |
tree | 895d59e788ce02e3f2467574074bc8484d7230ff /lib/Vyatta/Interface.pm | |
parent | a55ea38083b6310673c2c379eaebd73f3c2083c5 (diff) | |
download | vyatta-cfg-ba890679400bb2e5e46d16640016a2c8cddcadb6.tar.gz vyatta-cfg-ba890679400bb2e5e46d16640016a2c8cddcadb6.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
Diffstat (limited to 'lib/Vyatta/Interface.pm')
-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}); |