It is strange that master branch of python-neutronclient doesn't have --allowed-address-pairs parameter in both port-create and port-update
(py27)zqfan@openstack-dev:~/openstack/python-neutronclient$ neutron help port-update
usage: neutron port-update [-h] [--request-format {json,xml}] [--security-group SECURITY_GROUP | --no-security-groups] [--extra-dhcp-opt EXTRA_DHCP_OPTS] PORT
Update port's information.
positional arguments:
PORT ID or name of port to update
optional arguments:
-h, --help show this help message and exit
--request-format {json,xml} The xml or json request format
--security-group SECURITY_GROUP Security group associated with the port (This option can be repeated)
--no-security-groups Associate no security groups with the port
--extra-dhcp-opt EXTRA_DHCP_OPTS Extra dhcp options to be assigned to this port: opt_name=<dhcp_option_name>,opt_value=<value>, (This option can be repeated.)
(py27)zqfan@openstack-dev:~/openstack/python-neutronclient$ neutron help port-create
usage: neutron port-create [-h] [-f {html,json,shell,table,yaml}] [-c COLUMN] [--variable VARIABLE] [--prefix PREFIX] [--request-format {json,xml}] [--tenant-id TENANT_ID] [--name NAME] [--admin-state-down] [--mac-address MAC_ADDRESS] [--device-id DEVICE_ID] [--fixed-ip ip_address=IP_ADDR] [--security-group SECURITY_GROUP | --no-security-groups] [--extra-dhcp-opt EXTRA_DHCP_OPTS] NETWORK
Create a port for a given tenant.
positional arguments:
NETWORK Network id or name this port belongs to
optional arguments:
-h, --help show this help message and exit
--request-format {json,xml} The xml or json request format
--tenant-id TENANT_ID The owner tenant ID
--name NAME Name of this port
--admin-state-down Set admin state up to false
--mac-address MAC_ADDRESS MAC address of this port
--device-id DEVICE_ID Device id of this port
--fixed-ip ip_address=IP_ADDR Desired IP for this port: subnet_id=<name_or_id>,ip_address=<ip>, (This option can be repeated.)
--security-group SECURITY_GROUP Security group associated with the port (This option can be repeated)
--no-security-groups Associate no security groups with the port
--extra-dhcp-opt EXTRA_DHCP_OPTS Extra dhcp options to be assigned to this port: opt_name=<dhcp_option_name>,opt_value=<value>, (This option can be repeated.)
output formatters:
output formatter options
-f {html,json,shell,table,yaml}, --format {html,json,shell,table,yaml} the output format, defaults to table
-c COLUMN, --column COLUMN specify the column(s) to include, can be repeated
shell formatter:
a format a UNIX shell can parse (variable="value")
--variable VARIABLE specify the variable(s) to include, can be repeated
--prefix PREFIX add a prefix to all variable names
It is strange that master branch of python- neutronclient doesn't have --allowed- address- pairs parameter in both port-create and port-update
(py27)zqfan@ openstack- dev:~/openstack /python- neutronclient$ neutron help port-update
[ --security- group SECURITY_GROUP | --no-security- groups]
[ --extra- dhcp-opt EXTRA_DHCP_OPTS]
PORT
usage: neutron port-update [-h] [--request-format {json,xml}]
Update port's information.
positional arguments:
PORT ID or name of port to update
optional arguments:
The xml or json request format
Security group associated with the port (This option
can be repeated) security- groups Associate no security groups with the port
Extra dhcp options to be assigned to this port:
opt_ name=<dhcp_ option_ name>,opt_ value=< value>, (This
option can be repeated.) openstack- dev:~/openstack /python- neutronclient$ neutron help port-create shell,table, yaml}] [-c COLUMN]
[ --variable VARIABLE] [--prefix PREFIX]
[ --request- format {json,xml}]
[ --tenant- id TENANT_ID] [--name NAME]
[ --admin- state-down] [--mac-address MAC_ADDRESS]
[ --device- id DEVICE_ID]
[ --fixed- ip ip_address=IP_ADDR]
[ --security- group SECURITY_GROUP | --no-security- groups]
[ --extra- dhcp-opt EXTRA_DHCP_OPTS]
NETWORK
-h, --help show this help message and exit
--request-format {json,xml}
--security-group SECURITY_GROUP
--no-
--extra-dhcp-opt EXTRA_DHCP_OPTS
(py27)zqfan@
usage: neutron port-create [-h] [-f {html,json,
Create a port for a given tenant.
positional arguments:
NETWORK Network id or name this port belongs to
optional arguments:
The xml or json request format
The owner tenant ID state-down Set admin state up to false
MAC address of this port
Device id of this port
Desired IP for this port:
subnet_ id=<name_ or_id>, ip_address= <ip>, (This option
can be repeated.)
Security group associated with the port (This option
can be repeated) security- groups Associate no security groups with the port
Extra dhcp options to be assigned to this port:
opt_ name=<dhcp_ option_ name>,opt_ value=< value>, (This
option can be repeated.)
-h, --help show this help message and exit
--request-format {json,xml}
--tenant-id TENANT_ID
--name NAME Name of this port
--admin-
--mac-address MAC_ADDRESS
--device-id DEVICE_ID
--fixed-ip ip_address=IP_ADDR
--security-group SECURITY_GROUP
--no-
--extra-dhcp-opt EXTRA_DHCP_OPTS
output formatters:
output formatter options
-f {html,json, shell,table, yaml}, --format {html,json, shell,table, yaml}
the output format, defaults to table
specify the column(s) to include, can be repeated
-c COLUMN, --column COLUMN
shell formatter:
a format a UNIX shell can parse (variable="value")
--variable VARIABLE specify the variable(s) to include, can be repeated
--prefix PREFIX add a prefix to all variable names