Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Commit 25fc73e

Browse files
committed
xpath
1 parent 1536b3d commit 25fc73e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/junos-ez/l1_ports.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def build_port_mac
6363
:interface_name => Junos::Ez::L1ports::IFS_NAME_FILTER
6464
})
6565

66-
interfaces.xpath('//physical-interface').each do |interface|
66+
interfaces.xpath('physical-interface').each do |interface|
6767
name= interface.xpath("name").text.strip
6868
mac_addr = interface.xpath("current-physical-address").text.strip
6969
@port_mac[name] = mac_addr

0 commit comments

Comments
 (0)