#NEWLINE# def test_set_virtual_addr_with_values_dirty( 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' ] ) #NEWLINE# api = dut . api ( 'varp' ) #NEWLINE# self . assertIn ( 'ip virtual-router address 1.1.1.20' , api . get_block ( 'interface Vlan1000' ) ) #NEWLINE# result = dut . api ( 'varp' ) . interfaces . set_addresses ( 'Vlan1000' , [ '1.1.1.2' , '1.1.1.3' ] ) #NEWLINE# self . assertTrue ( result ) #NEWLINE# self . assertIn ( 'ip virtual-router address 1.1.1.2' , api . get_block ( 'interface Vlan1000' ) ) #NEWLINE# self . assertIn ( 'ip virtual-router address 1.1.1.3' , api . get_block ( 'interface Vlan1000' ) ) #NEWLINE# self . assertNotIn ( 'ip virtual-router address 1.1.1.20' , api . get_block ( 'interface Vlan1000' ) )