@@ -54,11 +54,11 @@ def test_add_del_interface_valid_ipv4(self):
5454 assert result .exit_code == 0
5555 assert ('Ethernet0.10' , '10.11.10.1/24' ) in db .cfgdb .get_table ('VLAN_SUB_INTERFACE' )
5656
57- # config int ip add Eth32 .10 32.11.10.1/24
58- result = runner .invoke (config .config .commands ["interface" ].commands ["ip" ].commands ["add" ], ["Eth32 .10" , "32.11.10.1/24" ], obj = obj )
57+ # config int ip add Eth36 .10 32.11.10.1/24
58+ result = runner .invoke (config .config .commands ["interface" ].commands ["ip" ].commands ["add" ], ["Eth36 .10" , "32.11.10.1/24" ], obj = obj )
5959 print (result .exit_code , result .output )
6060 assert result .exit_code == 0
61- assert ('Eth32 .10' , '32.11.10.1/24' ) in db .cfgdb .get_table ('VLAN_SUB_INTERFACE' )
61+ assert ('Eth36 .10' , '32.11.10.1/24' ) in db .cfgdb .get_table ('VLAN_SUB_INTERFACE' )
6262
6363 # config int ip remove Ethernet64 10.10.10.1/24
6464 result = runner .invoke (config .config .commands ["interface" ].commands ["ip" ].commands ["remove" ], ["Ethernet64" , "10.10.10.1/24" ], obj = obj )
@@ -72,11 +72,11 @@ def test_add_del_interface_valid_ipv4(self):
7272 assert result .exit_code != 0
7373 assert ('Ethernet0.10' , '10.11.10.1/24' ) not in db .cfgdb .get_table ('VLAN_SUB_INTERFACE' )
7474
75- # config int ip remove Eth32 .10 32.11.10.1/24
76- result = runner .invoke (config .config .commands ["interface" ].commands ["ip" ].commands ["remove" ], ["Eth32 .10" , "32.11.10.1/24" ], obj = obj )
75+ # config int ip remove Eth36 .10 32.11.10.1/24
76+ result = runner .invoke (config .config .commands ["interface" ].commands ["ip" ].commands ["remove" ], ["Eth36 .10" , "32.11.10.1/24" ], obj = obj )
7777 print (result .exit_code , result .output )
7878 assert result .exit_code != 0
79- assert ('Eth32 .10' , '32.11.10.1/24' ) not in db .cfgdb .get_table ('VLAN_SUB_INTERFACE' )
79+ assert ('Eth36 .10' , '32.11.10.1/24' ) not in db .cfgdb .get_table ('VLAN_SUB_INTERFACE' )
8080
8181 def test_add_interface_invalid_ipv4 (self ):
8282 db = Db ()
@@ -129,10 +129,10 @@ def test_add_del_interface_valid_ipv6(self):
129129 assert result .exit_code == 0
130130 assert ('Ethernet0.10' , '1010:1db8:11a3:19d7:1f34:8a2e:17a0:765d/34' ) in db .cfgdb .get_table ('VLAN_SUB_INTERFACE' )
131131
132- result = runner .invoke (config .config .commands ["interface" ].commands ["ip" ].commands ["add" ], ["Eth32 .10" , "3210:1db8:11a3:19d7:1f34:8a2e:17a0:765d/34" ], obj = obj )
132+ result = runner .invoke (config .config .commands ["interface" ].commands ["ip" ].commands ["add" ], ["Eth36 .10" , "3210:1db8:11a3:19d7:1f34:8a2e:17a0:765d/34" ], obj = obj )
133133 print (result .exit_code , result .output )
134134 assert result .exit_code == 0
135- assert ('Eth32 .10' , '3210:1db8:11a3:19d7:1f34:8a2e:17a0:765d/34' ) in db .cfgdb .get_table ('VLAN_SUB_INTERFACE' )
135+ assert ('Eth36 .10' , '3210:1db8:11a3:19d7:1f34:8a2e:17a0:765d/34' ) in db .cfgdb .get_table ('VLAN_SUB_INTERFACE' )
136136
137137 # config int ip remove Ethernet72 2001:1db8:11a3:19d7:1f34:8a2e:17a0:765d/34
138138 result = runner .invoke (config .config .commands ["interface" ].commands ["ip" ].commands ["remove" ], ["Ethernet72" , "2001:1db8:11a3:19d7:1f34:8a2e:17a0:765d/34" ], obj = obj )
@@ -145,10 +145,10 @@ def test_add_del_interface_valid_ipv6(self):
145145 assert result .exit_code != 0
146146 assert ('Ethernet0.10' , '1010:1db8:11a3:19d7:1f34:8a2e:17a0:765d/34' ) not in db .cfgdb .get_table ('VLAN_SUB_INTERFACE' )
147147
148- result = runner .invoke (config .config .commands ["interface" ].commands ["ip" ].commands ["remove" ], ["Eth32 .10" , "3210:1db8:11a3:19d7:1f34:8a2e:17a0:765d/34" ], obj = obj )
148+ result = runner .invoke (config .config .commands ["interface" ].commands ["ip" ].commands ["remove" ], ["Eth36 .10" , "3210:1db8:11a3:19d7:1f34:8a2e:17a0:765d/34" ], obj = obj )
149149 print (result .exit_code , result .output )
150150 assert result .exit_code != 0
151- assert ('Eth32 .10' , '3210:1db8:11a3:19d7:1f34:8a2e:17a0:765d/34' ) not in db .cfgdb .get_table ('VLAN_SUB_INTERFACE' )
151+ assert ('Eth36 .10' , '3210:1db8:11a3:19d7:1f34:8a2e:17a0:765d/34' ) not in db .cfgdb .get_table ('VLAN_SUB_INTERFACE' )
152152
153153 def test_del_interface_case_sensitive_ipv6 (self ):
154154 db = Db ()
0 commit comments