NSX-V3: Add agent config to FWaaSV1 callbacks

Commit I8982523dbb94a7c5b8a4db88a196fabc4dd2873f added the need for
agent_config values for the routerInfo structure creation.
The NSX FWaaS does not use the agent at all, so this patch only adds
a dummy implementation to allow to code to continue working

Change-Id: Ib6dde4f7880fa45d01142792da17b68e719cada8
This commit is contained in:
Adit Sarfaty 2018-04-15 16:09:54 +03:00
parent 8be745b073
commit 480fdd5d07

View File

@ -92,10 +92,12 @@ class NsxFwaasCallbacks(firewall_l3_agent.L3WithFWaaS):
filters={'project_id': [project_id]})
def _router_dict_to_obj(self, r):
# The callbacks expect a router-info object
# The callbacks expect a router-info object with an agent config
agent_conf = cfg.CONF
agent_conf.metadata_access_mark = '0x1'
return router_info.RouterInfo(
None, r['id'], router=r,
agent_conf=None,
agent_conf=agent_conf,
interface_driver=None,
use_ipv6=False)