From ba890679400bb2e5e46d16640016a2c8cddcadb6 Mon Sep 17 00:00:00 2001 From: Alex Harpin Date: Sun, 8 Feb 2015 12:08:57 +0000 Subject: 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 --- lib/Vyatta/Interface.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') 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}); -- cgit v1.2.3