#NEWLINE# def test_negate_virtual_addrs_with_disable( self ) : #NEWLINE# #INDENT# for dut in self . duts : #NEWLINE# #INDENT# dut . config ( [ 'no interface Vlan1000' , 'interface Vlan1000' , 'ip address 1.1.1.1/24' , 'ip virtual-router address 1.1.1.20' , 'ip virtual-router address 1.1.1.21' ] ) #NEWLINE# api = dut . api ( 'varp' ) #NEWLINE# self . assertIn ( 'ip virtual-router address 1.1.1.20' , api . get_block ( 'interface Vlan1000' ) ) #NEWLINE# self . assertIn ( 'ip virtual-router address 1.1.1.21' , api . get_block ( 'interface Vlan1000' ) ) #NEWLINE# result = dut . api ( 'varp' ) . interfaces . set_addresses ( 'Vlan1000' , disable = True ) #NEWLINE# self . assertTrue ( self ) #NEWLINE# self . assertNotIn ( 'ip virtual-router address 1.1.1.20' , api . get_block ( 'interface Vlan1000' ) ) #NEWLINE# self . assertNotIn ( 'ip virtual-router address 1.1.1.21' , api . get_block ( 'interface Vlan1000' ) )