# Path: networking_sfc/services/sfc/common/ovs_ext_lib.py
# LOG = logging.getLogger(__name__)
# def get_port_mask(min_port, max_port):
#     def __init__(self, ovs_bridge):
#     def __getattr__(self, name):
#     def do_action_groups(self, action, kwargs_list):
#     def add_group(self, **kwargs):
#     def mod_group(self, **kwargs):
#     def delete_group(self, **kwargs):
#     def dump_group_for_id(self, group_id):
#     def get_bridge_ports(self):
# def _build_group_expr_str(group_dict, cmd):
# class SfcOVSBridgeExt():


from neutron_lib import exceptions
from neutron.tests import base
from networking_sfc.services.sfc.common import ovs_ext_lib
# Copyright 2015 Futurewei. All rights reserved.
#
#    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 GetPortMaskTestCase(base.BaseTestCase):
    def setUp(self):
        super(GetPortMaskTestCase, self).setUp()

    def tearDown(self):
        super(GetPortMaskTestCase, self).tearDown()

    def test_single_port(self):

# Path: networking_sfc/services/sfc/common/ovs_ext_lib.py
# LOG = logging.getLogger(__name__)
# def get_port_mask(min_port, max_port):
#     def __init__(self, ovs_bridge):
#     def __getattr__(self, name):
#     def do_action_groups(self, action, kwargs_list):
#     def add_group(self, **kwargs):
#     def mod_group(self, **kwargs):
#     def delete_group(self, **kwargs):
#     def dump_group_for_id(self, group_id):
#     def get_bridge_ports(self):
# def _build_group_expr_str(group_dict, cmd):
# class SfcOVSBridgeExt():


# Path: networking_sfc/tests/unit/services/sfc/common/test_ovs_ext_lib.py
from neutron_lib import exceptions
from neutron.tests import base
from networking_sfc.services.sfc.common import ovs_ext_lib

# Copyright 2015 Futurewei. All rights reserved.
#
#    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 GetPortMaskTestCase(base.BaseTestCase):
    def setUp(self):
        super(GetPortMaskTestCase, self).setUp()

    def tearDown(self):
        super(GetPortMaskTestCase, self).tearDown()

    def test_single_port(self):

        masks = ovs_ext_lib.get_port_mask(100, 100)