File tree 1 file changed +15
-3
lines changed
1 file changed +15
-3
lines changed Original file line number Diff line number Diff line change @@ -98,9 +98,21 @@ def test_ingress_interface
98
98
intf = interfaces [ 0 ] . dup
99
99
new_intf = Interface . new ( interfaces [ 0 ] )
100
100
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 ] ]
104
116
itd . ingress_interface = ii
105
117
assert_equal ( itd . ingress_interface , ii )
106
118
ii = [ [ 'vlan 2' , '' ] ,
You can’t perform that action at this time.
0 commit comments