# Path: networking_sfc/services/sfc/agent/extensions/sfc.py
# LOG = logging.getLogger(__name__)
# class SfcPluginApi():
# class SfcAgentDriver(metaclass=abc.ABCMeta):
# class SfcAgentExtension(l2_extension.L2AgentExtension):
#     def __init__(self, topic, host):
#     def update_flowrules_status(self, context, flowrules_status):
#     def get_flowrules_by_host_portid(self, context, port_id):
#     def initialize(self):
#     def consume_api(self, agent_api):
#     def update_flow_rules(self, flowrule, flowrule_status):
#     def delete_flow_rule(self, flowrule, flowrule_status):
#     def initialize(self, connection, driver_type):
#     def consume_api(self, agent_api):
#     def handle_port(self, context, port):
#     def delete_port(self, context, port):
#     def update_flow_rules(self, context, **kwargs):
#     def delete_flow_rules(self, context, **kwargs):
#     def _sfc_setup_rpc(self):
#     def _delete_ports_flowrules_by_id(self, context, ports_id):


from unittest import mock
from neutron.plugins.ml2.drivers.openvswitch.agent import (
    ovs_agent_extension_api as ovs_ext_api)
from neutron.plugins.ml2.drivers.openvswitch.agent.openflow.native import (
    ovs_bridge)
from neutron.tests import base
from neutron_lib import context
from neutron_lib.plugins.ml2 import ovs_constants as ovs_consts
from networking_sfc.services.sfc.agent.extensions import sfc
# Copyright 2016 Red Hat, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#   http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.





class SfcAgentExtensionTestCase(base.BaseTestCase):
    def setUp(self):
        super(SfcAgentExtensionTestCase, self).setUp()

        conn_patcher = mock.patch('neutron.agent.ovsdb.impl_idl._connection')
        conn_patcher.start()
        self.addCleanup(conn_patcher.stop)


# Path: networking_sfc/services/sfc/agent/extensions/sfc.py
# LOG = logging.getLogger(__name__)
# class SfcPluginApi():
# class SfcAgentDriver(metaclass=abc.ABCMeta):
# class SfcAgentExtension(l2_extension.L2AgentExtension):
#     def __init__(self, topic, host):
#     def update_flowrules_status(self, context, flowrules_status):
#     def get_flowrules_by_host_portid(self, context, port_id):
#     def initialize(self):
#     def consume_api(self, agent_api):
#     def update_flow_rules(self, flowrule, flowrule_status):
#     def delete_flow_rule(self, flowrule, flowrule_status):
#     def initialize(self, connection, driver_type):
#     def consume_api(self, agent_api):
#     def handle_port(self, context, port):
#     def delete_port(self, context, port):
#     def update_flow_rules(self, context, **kwargs):
#     def delete_flow_rules(self, context, **kwargs):
#     def _sfc_setup_rpc(self):
#     def _delete_ports_flowrules_by_id(self, context, ports_id):


# Path: networking_sfc/tests/unit/services/sfc/agent/extensions/test_sfc.py
from unittest import mock
from neutron.plugins.ml2.drivers.openvswitch.agent import (
    ovs_agent_extension_api as ovs_ext_api)
from neutron.plugins.ml2.drivers.openvswitch.agent.openflow.native import (
    ovs_bridge)
from neutron.tests import base
from neutron_lib import context
from neutron_lib.plugins.ml2 import ovs_constants as ovs_consts
from networking_sfc.services.sfc.agent.extensions import sfc

# Copyright 2016 Red Hat, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#   http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.





class SfcAgentExtensionTestCase(base.BaseTestCase):
    def setUp(self):
        super(SfcAgentExtensionTestCase, self).setUp()

        conn_patcher = mock.patch('neutron.agent.ovsdb.impl_idl._connection')
        conn_patcher.start()
        self.addCleanup(conn_patcher.stop)


        self.sfc_ext = sfc.SfcAgentExtension()