Skip to content

Commit 0a4e423

Browse files
Merge branch 'develop' of github.com:cisco/cisco-network-node-utils into develop
2 parents 5832d34 + bd3b73f commit 0a4e423

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

tests/test_itd_service.rb

+15-3
Original file line numberDiff line numberDiff line change
@@ -98,9 +98,21 @@ def test_ingress_interface
9898
intf = interfaces[0].dup
9999
new_intf = Interface.new(interfaces[0])
100100
new_intf.switchport_mode = :disabled
101-
ii = [['vlan 2', '1.1.1.1'],
102-
[intf.insert(8, ' '), '2.2.2.2'],
103-
['port-channel 100', '3.3.3.3']]
101+
# The next-hop setting as part of the ingress_interface
102+
# is not needed for n9k and in the latest images is not
103+
# even supported by the cli.
104+
if Platform.image_version[/9.\d+/]
105+
next_hop1 = ''
106+
next_hop2 = ''
107+
next_hop3 = ''
108+
else
109+
next_hop1 = '1.1.1.1'
110+
next_hop2 = '2.2.2.2'
111+
next_hop3 = '3.3.3.3'
112+
end
113+
ii = [['vlan 2', next_hop1],
114+
[intf.insert(8, ' '), next_hop2],
115+
['port-channel 100', next_hop3]]
104116
itd.ingress_interface = ii
105117
assert_equal(itd.ingress_interface, ii)
106118
ii = [['vlan 2', ''],

0 commit comments

Comments
 (0)