NSX-V3: Add agent config to FWaaSV2 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: I6fd4c1f94d8deebfc457451ee7eb12536c37ba65
This commit is contained in:
Adit Sarfaty 2018-04-09 15:27:14 +03:00
parent 4013b4ca65
commit 07c7aeee2a
1 changed files with 4 additions and 2 deletions

View File

@ -148,10 +148,12 @@ class NsxFwaasCallbacksV2(firewall_l3_agent_v2.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)