| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
from neutron.services.logapi.agent.l3 import base |
| 17 |
from neutron.services.logapi.agent import log_extension as log_ext |
| 18 |
from neutron.services.logapi.rpc import agent as agent_rpc |
| 19 |
from neutron_lib.agent import l3_extension |
| 20 |
|
| 21 |
|
| 22 |
FIREWALL_LOG_DRIVER_NAME = 'fwaas_v2_log' |
| 23 |
|
| 24 |
|
| 25 |
class FWaaSL3LoggingExtension(base.L3LoggingExtensionBase, |
| 26 |
l3_extension.L3AgentExtension): |
| 27 |
|
| 28 |
def initialize(self, connection, driver_type): |
| 29 |
"""Initialize L3 logging agent extension""" |
| 30 |
|
| 31 |
fw_log_cls = self._load_driver_cls( |
| 32 |
log_ext.LOGGING_DRIVERS_NAMESPACE, FIREWALL_LOG_DRIVER_NAME) |
| 33 |
self.log_driver = fw_log_cls(self.agent_api) |
| 34 |
self.resource_rpc = agent_rpc.LoggingApiStub() |
| 35 |
self._register_rpc_consumers() |
| 36 |
self.log_driver.initialize(self.resource_rpc) |
| 37 |
|
| 38 |
def update_network(self, context, data): |
| 39 |
|
| 40 |
|
| 41 |
pass |