def test_delete_network(self): rpcapi = plb.AgentNotifierApi(topics.AGENT) self._test_lb_api(rpcapi, topics.get_topic_name(topics.AGENT, topics.NETWORK, topics.DELETE), 'network_delete', rpc_method='fanout_cast', network_id='fake_request_spec')
def test_port_update(self): cfg.CONF.set_override('rpc_support_old_agents', False, 'AGENT') rpcapi = plb.AgentNotifierApi(topics.AGENT) expected_msg = rpcapi.make_msg('port_update', port='fake_port', network_type='vlan', physical_network='fake_net', segmentation_id='fake_vlan_id') self._test_lb_api(rpcapi, topics.get_topic_name(topics.AGENT, topics.PORT, topics.UPDATE), 'port_update', rpc_method='fanout_cast', expected_msg=expected_msg, port='fake_port', physical_network='fake_net', vlan_id='fake_vlan_id')