Skip to content
Snippets Groups Projects
Commit a1fa0a2e authored by Jonathon Duerig's avatar Jonathon Duerig
Browse files

Bugfix: Make GetIp backwards compatible with rspec 0.1/0.2

parent 15d6f71b
No related branches found
No related tags found
No related merge requests found
......@@ -347,7 +347,9 @@ sub GetIp($$)
{
my ($ifaceref, $node) = @_;
my $result = undef;
if (! IsVersion0($ifaceref)) {
if (IsVersion0($ifaceref)) {
$result = GetText("tunnel_ip", $ifaceref);
} else {
my $id = GetInterfaceId($ifaceref);
my @ifaces = FindNodes("n:interface", $node)->get_nodelist();
foreach my $iface (@ifaces) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment