#NEWLINE# def test_ha_routers_hosted_on_different_hosting_devices( self ) : #NEWLINE# #INDENT# with self . subnet ( ) as s : #NEWLINE# #INDENT# self . _set_net_external ( s [ 'subnet' ] [ 'network_id' ] ) #NEWLINE# with self . router ( external_gateway_info = { #NEWLINE# #INDENT# 'network_id' : s [ 'subnet' ] [ 'network_id' ] , #NEWLINE# #UNINDENT# } ) as router : #NEWLINE# #INDENT# r = router [ 'router' ] #NEWLINE# self . plugin . _process_backlogged_routers ( ) #NEWLINE# r_after = self . _show ( 'routers' , r [ 'id' ] ) [ 'router' ] #NEWLINE# self . assertIsNotNone ( r_after [ routerhostingdevice . HOSTING_DEVICE_ATTR ] ) #NEWLINE# hd_ids = { r_after [ routerhostingdevice . HOSTING_DEVICE_ATTR ] } #NEWLINE# r_rs_after = [ self . _show ( 'routers' , rr [ 'id' ] ) [ 'router' ] for rr in r [ ha . DETAILS ] [ ha . REDUNDANCY_ROUTERS ] ] #NEWLINE# for rr in r_rs_after : #NEWLINE# #INDENT# hd_id = rr [ routerhostingdevice . HOSTING_DEVICE_ATTR ] #NEWLINE# self . assertIsNotNone ( hd_id ) #NEWLINE# self . assertNotIn ( hd_id , hd_ids ) #NEWLINE# hd_ids . add ( hd_id )