def add_known_arguments(self, parser):
     parser.add_argument(
         'floating_network_id', metavar='FLOATING_NETWORK',
         help=_('ID or name of the network from which '
                'the floating IP is allocated.'))
     parser.add_argument(
         '--description',
         help=_('Description of the floating IP.'))
     parser.add_argument(
         '--port-id',
         help=_('ID of the port to be associated with the floating IP.'))
     parser.add_argument(
         '--port_id',
         help=argparse.SUPPRESS)
     parser.add_argument(
         '--fixed-ip-address',
         help=_('IP address on the port (only required if port has '
                'multiple IPs).'))
     parser.add_argument(
         '--fixed_ip_address',
         help=argparse.SUPPRESS)
     parser.add_argument(
         '--floating-ip-address',
         help=_('IP address of the floating IP'))
     parser.add_argument(
         '--subnet',
         dest='subnet_id',
         help=_('Subnet ID on which you want to create the floating IP.'))
     dns.add_dns_argument_create(parser, self.resource, 'domain')
     dns.add_dns_argument_create(parser, self.resource, 'name')
 def add_known_arguments(self, parser):
     parser.add_argument(
         'floating_network_id', metavar='FLOATING_NETWORK',
         help=_('Network name or ID to allocate floating IP from.'))
     parser.add_argument(
         '--description',
         help=_('Description of the floating IP.'))
     parser.add_argument(
         '--port-id',
         help=_('ID of the port to be associated with the floating IP.'))
     parser.add_argument(
         '--port_id',
         help=argparse.SUPPRESS)
     parser.add_argument(
         '--fixed-ip-address',
         help=_('IP address on the port (only required if port has '
                'multiple IPs).'))
     parser.add_argument(
         '--fixed_ip_address',
         help=argparse.SUPPRESS)
     parser.add_argument(
         '--floating-ip-address',
         help=_('IP address of the floating IP'))
     parser.add_argument(
         '--subnet',
         dest='subnet_id',
         help=_('Subnet ID on which you want to create the floating IP.'))
     dns.add_dns_argument_create(parser, self.resource, 'domain')
     dns.add_dns_argument_create(parser, self.resource, 'name')
Beispiel #3
0
    def add_known_arguments(self, parser):
        _add_updatable_args(parser)
        parser.add_argument(
            '--admin-state-down',
            dest='admin_state', action='store_false',
            help=_('Set admin state up to false.'))
        parser.add_argument(
            '--admin_state_down',
            dest='admin_state', action='store_false',
            help=argparse.SUPPRESS)
        parser.add_argument(
            '--mac-address',
            help=_('MAC address of this port.'))
        parser.add_argument(
            '--mac_address',
            help=argparse.SUPPRESS)
        parser.add_argument(
            '--vnic-type',
            metavar='<direct | direct-physical | macvtap '
                    '| normal | baremetal>',
            choices=['direct', 'direct-physical', 'macvtap',
                     'normal', 'baremetal'],
            type=utils.convert_to_lowercase,
            help=_('VNIC type for this port.'))
        parser.add_argument(
            '--vnic_type',
            choices=['direct', 'direct-physical', 'macvtap',
                     'normal', 'baremetal'],
            type=utils.convert_to_lowercase,
            help=argparse.SUPPRESS)
        parser.add_argument(
            '--binding-profile',
            help=_('Custom data to be passed as binding:profile.'))
        parser.add_argument(
            '--binding_profile',
            help=argparse.SUPPRESS)
        self.add_arguments_secgroup(parser)
        self.add_arguments_extradhcpopt(parser)
        self.add_arguments_qos_policy(parser)
        self.add_arguments_allowedaddresspairs(parser)

        parser.add_argument(
            'network_id', metavar='NETWORK',
            help=_('ID or name of the network this port belongs to.'))
        dns.add_dns_argument_create(parser, self.resource, 'name')
    def add_known_arguments(self, parser):
        parser.add_argument(
            '--admin-state-down',
            dest='admin_state', action='store_false',
            help=_('Set admin state up to false.'))
        parser.add_argument(
            '--admin_state_down',
            dest='admin_state', action='store_false',
            help=argparse.SUPPRESS)
        parser.add_argument(
            '--shared',
            action='store_true',
            help=_('Set the network as shared.'),
            default=argparse.SUPPRESS)
        parser.add_argument(
            '--provider:network_type',
            metavar='<network_type>',
            help=_('The physical mechanism by which the virtual network'
                   ' is implemented.'))
        parser.add_argument(
            '--provider:physical_network',
            metavar='<physical_network_name>',
            help=_('Name of the physical network over which the virtual '
                   'network is implemented.'))
        parser.add_argument(
            '--provider:segmentation_id',
            metavar='<segmentation_id>',
            help=_('VLAN ID for VLAN networks or tunnel-id for GRE/VXLAN '
                   'networks.'))
        utils.add_boolean_argument(
            parser,
            '--vlan-transparent',
            default=argparse.SUPPRESS,
            help=_('Create a VLAN transparent network.'))
        parser.add_argument(
            'name', metavar='NAME',
            help=_('Name of the network to be created.'))
        parser.add_argument(
            '--description',
            help=_('Description of network.'))

        self.add_arguments_qos_policy(parser)
        availability_zone.add_az_hint_argument(parser, self.resource)
        dns.add_dns_argument_create(parser, self.resource, 'domain')
Beispiel #5
0
    def add_known_arguments(self, parser):
        parser.add_argument(
            '--admin-state-down',
            dest='admin_state', action='store_false',
            help=_('Set admin state up to false.'))
        parser.add_argument(
            '--admin_state_down',
            dest='admin_state', action='store_false',
            help=argparse.SUPPRESS)
        parser.add_argument(
            '--shared',
            action='store_true',
            help=_('Set the network as shared.'),
            default=argparse.SUPPRESS)
        parser.add_argument(
            '--provider:network_type',
            metavar='<network_type>',
            help=_('The physical mechanism by which the virtual network'
                   ' is implemented.'))
        parser.add_argument(
            '--provider:physical_network',
            metavar='<physical_network_name>',
            help=_('Name of the physical network over which the virtual'
                   ' network is implemented.'))
        parser.add_argument(
            '--provider:segmentation_id',
            metavar='<segmentation_id>',
            help=_('VLAN ID for VLAN networks or tunnel-id for GRE/VXLAN'
                   ' networks.'))
        utils.add_boolean_argument(
            parser,
            '--vlan-transparent',
            default=argparse.SUPPRESS,
            help=_('Create a vlan transparent network.'))
        parser.add_argument(
            'name', metavar='NAME',
            help=_('Name of network to create.'))
        parser.add_argument(
            '--description',
            help=_('Description of network.'))

        self.add_arguments_qos_policy(parser)
        availability_zone.add_az_hint_argument(parser, self.resource)
        dns.add_dns_argument_create(parser, self.resource, 'domain')
Beispiel #6
0
    def add_known_arguments(self, parser):
        _add_updatable_args(parser)
        parser.add_argument('--admin-state-down',
                            dest='admin_state',
                            action='store_false',
                            help=_('Set admin state up to false.'))
        parser.add_argument('--admin_state_down',
                            dest='admin_state',
                            action='store_false',
                            help=argparse.SUPPRESS)
        parser.add_argument('--mac-address',
                            help=_('MAC address of this port.'))
        parser.add_argument('--mac_address', help=argparse.SUPPRESS)
        parser.add_argument('--vnic-type',
                            metavar='<direct | direct-physical | macvtap '
                            '| normal | baremetal | smart-nic>',
                            choices=[
                                'direct', 'direct-physical', 'macvtap',
                                'normal', 'baremetal', 'smart-nic'
                            ],
                            type=utils.convert_to_lowercase,
                            help=_('VNIC type for this port.'))
        parser.add_argument('--vnic_type',
                            choices=[
                                'direct', 'direct-physical', 'macvtap',
                                'normal', 'baremetal', 'smart-nic'
                            ],
                            type=utils.convert_to_lowercase,
                            help=argparse.SUPPRESS)
        parser.add_argument(
            '--binding-profile',
            help=_('Custom data to be passed as binding:profile.'))
        parser.add_argument('--binding_profile', help=argparse.SUPPRESS)
        self.add_arguments_secgroup(parser)
        self.add_arguments_extradhcpopt(parser)
        self.add_arguments_qos_policy(parser)
        self.add_arguments_allowedaddresspairs(parser)

        parser.add_argument(
            'network_id',
            metavar='NETWORK',
            help=_('ID or name of the network this port belongs to.'))
        dns.add_dns_argument_create(parser, self.resource, 'name')