Ultimately, it will only be the routers that need access to the
interface driver and the agent won't need to use it for anything.
However, it still makes sense for the agent to initialize it once and
pass it to each of the routers as they're created.
Multiple patches with multiple authors will be created to depend on
this addition.
Change-Id: I0ec75d731d816955c1915e283a137abcb51ac232
Partially-Implements: bp/restructure-l3-agent
'use_ipv6': self.use_ipv6,
'ns_name': ns_name,
'agent_conf': self.conf,
+ 'interface_driver': self.driver,
}
if router.get('distributed'):
router,
root_helper,
agent_conf,
+ interface_driver,
use_ipv6=False,
ns_name=None):
self.router_id = router_id
namespace=self.ns_name)
self.routes = []
self.agent_conf = agent_conf
+ self.driver = interface_driver
@property
def router(self):
'id': _uuid(), 'device_id': _uuid()}]
self.ri_kwargs = {'root_helper': self.conf.root_helper,
- 'agent_conf': self.conf}
+ 'agent_conf': self.conf,
+ 'interface_driver': mock.sentinel.interface_driver}
def _prepare_internal_network_data(self):
port_id = _uuid()