# Path: networking_sfc/_i18n.py
# DOMAIN = "networking_sfc"
# _C = _translators.contextual_form
# _P = _translators.plural_form
# def get_available_languages():
# 
# Path: networking_sfc/cli/port_pair.py
# PORT_RESOURCE = 'port'
# PORT_PAIR_RESOURCE = 'port_pair'
# def get_port_id(client, id_or_name):
# def get_port_pair_id(client, id_or_name):
#     def add_known_arguments(self, parser):
#     def args2body(self, parsed_args):
#     def add_known_arguments(self, parser):
#     def args2body(self, parsed_args):
# class PortPair(extension.NeutronClientExtension):
# class PortPairCreate(extension.ClientExtensionCreate, PortPair):
# class PortPairUpdate(extension.ClientExtensionUpdate, PortPair):
# class PortPairDelete(extension.ClientExtensionDelete, PortPair):
# class PortPairList(extension.ClientExtensionList, PortPair):
# class PortPairShow(extension.ClientExtensionShow, PortPair):


from neutronclient.common import extension
from neutronclient.common import utils
from neutronclient.neutron import v2_0 as neutronv20
from networking_sfc._i18n import _
from networking_sfc.cli import port_pair as pp



FLOW_CLASSIFIER_RESOURCE = 'flow_classifier'


def get_flowclassifier_id(client, id_or_name):
    return neutronv20.find_resourceid_by_name_or_id(client,
                                                    FLOW_CLASSIFIER_RESOURCE,
                                                    id_or_name)


class FlowClassifier(extension.NeutronClientExtension):
    resource = FLOW_CLASSIFIER_RESOURCE
    resource_plural = '%ss' % resource
    object_path = '/sfc/%s' % resource_plural
    resource_path = '/sfc/%s/%%s' % resource_plural
    versions = ['2.0']


class FlowClassifierCreate(extension.ClientExtensionCreate,
                           FlowClassifier):
    """Create a Flow Classifier."""

    shell_command = 'flow-classifier-create'

    def add_known_arguments(self, parser):
        parser.add_argument(
            'name',
            metavar='NAME',

# Path: networking_sfc/_i18n.py
# DOMAIN = "networking_sfc"
# _C = _translators.contextual_form
# _P = _translators.plural_form
# def get_available_languages():
# 
# Path: networking_sfc/cli/port_pair.py
# PORT_RESOURCE = 'port'
# PORT_PAIR_RESOURCE = 'port_pair'
# def get_port_id(client, id_or_name):
# def get_port_pair_id(client, id_or_name):
#     def add_known_arguments(self, parser):
#     def args2body(self, parsed_args):
#     def add_known_arguments(self, parser):
#     def args2body(self, parsed_args):
# class PortPair(extension.NeutronClientExtension):
# class PortPairCreate(extension.ClientExtensionCreate, PortPair):
# class PortPairUpdate(extension.ClientExtensionUpdate, PortPair):
# class PortPairDelete(extension.ClientExtensionDelete, PortPair):
# class PortPairList(extension.ClientExtensionList, PortPair):
# class PortPairShow(extension.ClientExtensionShow, PortPair):


# Path: networking_sfc/cli/flow_classifier.py
from neutronclient.common import extension
from neutronclient.common import utils
from neutronclient.neutron import v2_0 as neutronv20
from networking_sfc._i18n import _
from networking_sfc.cli import port_pair as pp




FLOW_CLASSIFIER_RESOURCE = 'flow_classifier'


def get_flowclassifier_id(client, id_or_name):
    return neutronv20.find_resourceid_by_name_or_id(client,
                                                    FLOW_CLASSIFIER_RESOURCE,
                                                    id_or_name)


class FlowClassifier(extension.NeutronClientExtension):
    resource = FLOW_CLASSIFIER_RESOURCE
    resource_plural = '%ss' % resource
    object_path = '/sfc/%s' % resource_plural
    resource_path = '/sfc/%s/%%s' % resource_plural
    versions = ['2.0']


class FlowClassifierCreate(extension.ClientExtensionCreate,
                           FlowClassifier):
    """Create a Flow Classifier."""

    shell_command = 'flow-classifier-create'

    def add_known_arguments(self, parser):
        parser.add_argument(
            'name',
            metavar='NAME',

            help=_('Name of the Flow Classifier.'))