# Path: networking_sfc/_i18n.py
# DOMAIN = "networking_sfc"
# _C = _translators.contextual_form
# _P = _translators.plural_form
# def get_available_languages():
# 
# Path: networking_sfc/cli/flow_classifier.py
# FLOW_CLASSIFIER_RESOURCE = 'flow_classifier'
# def get_flowclassifier_id(client, id_or_name):
#     def add_known_arguments(self, parser):
#     def args2body(self, parsed_args):
#     def _fill_protocol_port_info(self, body, port_type, port_val):
#     def add_known_arguments(self, parser):
#     def args2body(self, parsed_args):
#     def extend_list(self, data, parsed_args):
#     def _get_protocol_port_details(self, data, type):
# class FlowClassifier(extension.NeutronClientExtension):
# class FlowClassifierCreate(extension.ClientExtensionCreate,
#                            FlowClassifier):
# class FlowClassifierUpdate(extension.ClientExtensionUpdate,
#                            FlowClassifier):
# class FlowClassifierDelete(extension.ClientExtensionDelete,
#                            FlowClassifier):
# class FlowClassifierList(extension.ClientExtensionList,
#                          FlowClassifier):
# class FlowClassifierShow(extension.ClientExtensionShow, FlowClassifier):
# 
# Path: networking_sfc/cli/port_pair_group.py
# PORT_PAIR_GROUP_RESOURCE = 'port_pair_group'
# def get_port_pair_group_id(client, id_or_name):
# def add_common_arguments(parser):
# def update_common_args2body(client, body, parsed_args):
#     def add_known_arguments(self, parser):
#     def args2body(self, parsed_args):
#     def add_known_arguments(self, parser):
#     def args2body(self, parsed_args):
# class PortPairGroup(extension.NeutronClientExtension):
# class PortPairGroupCreate(extension.ClientExtensionCreate, PortPairGroup):
# class PortPairGroupUpdate(extension.ClientExtensionUpdate, PortPairGroup):
# class PortPairGroupDelete(extension.ClientExtensionDelete, PortPairGroup):
# class PortPairGroupList(extension.ClientExtensionList, PortPairGroup):
# class PortPairGroupShow(extension.ClientExtensionShow, PortPairGroup):


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 flow_classifier as fc
from networking_sfc.cli import port_pair_group as ppg
#         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.



PORT_CHAIN_RESOURCE = 'port_chain'


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


class PortChainCreate(extension.ClientExtensionCreate, PortChain):
    """Create a Port Chain."""

    shell_command = 'port-chain-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/flow_classifier.py
# FLOW_CLASSIFIER_RESOURCE = 'flow_classifier'
# def get_flowclassifier_id(client, id_or_name):
#     def add_known_arguments(self, parser):
#     def args2body(self, parsed_args):
#     def _fill_protocol_port_info(self, body, port_type, port_val):
#     def add_known_arguments(self, parser):
#     def args2body(self, parsed_args):
#     def extend_list(self, data, parsed_args):
#     def _get_protocol_port_details(self, data, type):
# class FlowClassifier(extension.NeutronClientExtension):
# class FlowClassifierCreate(extension.ClientExtensionCreate,
#                            FlowClassifier):
# class FlowClassifierUpdate(extension.ClientExtensionUpdate,
#                            FlowClassifier):
# class FlowClassifierDelete(extension.ClientExtensionDelete,
#                            FlowClassifier):
# class FlowClassifierList(extension.ClientExtensionList,
#                          FlowClassifier):
# class FlowClassifierShow(extension.ClientExtensionShow, FlowClassifier):
# 
# Path: networking_sfc/cli/port_pair_group.py
# PORT_PAIR_GROUP_RESOURCE = 'port_pair_group'
# def get_port_pair_group_id(client, id_or_name):
# def add_common_arguments(parser):
# def update_common_args2body(client, body, parsed_args):
#     def add_known_arguments(self, parser):
#     def args2body(self, parsed_args):
#     def add_known_arguments(self, parser):
#     def args2body(self, parsed_args):
# class PortPairGroup(extension.NeutronClientExtension):
# class PortPairGroupCreate(extension.ClientExtensionCreate, PortPairGroup):
# class PortPairGroupUpdate(extension.ClientExtensionUpdate, PortPairGroup):
# class PortPairGroupDelete(extension.ClientExtensionDelete, PortPairGroup):
# class PortPairGroupList(extension.ClientExtensionList, PortPairGroup):
# class PortPairGroupShow(extension.ClientExtensionShow, PortPairGroup):


# Path: networking_sfc/cli/port_chain.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 flow_classifier as fc
from networking_sfc.cli import port_pair_group as ppg

#         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.



PORT_CHAIN_RESOURCE = 'port_chain'


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


class PortChainCreate(extension.ClientExtensionCreate, PortChain):
    """Create a Port Chain."""

    shell_command = 'port-chain-create'

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

            help=_('Name of the Port Chain.'))