You have been subscribed to a public bug:

When adding classless-static-route in extra_dhcp_opt for a port, neutron client
complains syntax error. For example,

$ neutron port-update --extra-dhcp-opt 
opt_name="classless-static-route",opt_value="169.254.169.254/32,20.20.20.1" 
port1
usage: neutron port-update [-h] [--request-format {json}] [--name NAME]
                           [--description DESCRIPTION]
                           [--fixed-ip subnet_id=SUBNET,ip_address=IP_ADDR]
                           [--device-id DEVICE_ID]
                           [--device-owner DEVICE_OWNER]
                           [--admin-state-up {True,False}]
                           [--security-group SECURITY_GROUP | 
--no-security-groups]
                           [--extra-dhcp-opt EXTRA_DHCP_OPTS]
                           [--qos-policy QOS_POLICY | --no-qos-policy]
                           [--allowed-address-pair 
ip_address=IP_ADDR[,mac_address=MAC_ADDR]
                           | --no-allowed-address-pairs]
                           [--dns-name DNS_NAME | --no-dns-name]
                           PORT
neutron port-update: error: argument --extra-dhcp-opt: invalid key-value 
'20.20.20.1', expected format: key=value
Try 'neutron help port-update' for more information.

The reason is neutron client interprets the "," inside the opt_value as
a delimiter of key-value pairs for --extra-dhcp-opt.

The comma in the opt_value for classless-static-route is required because
the format of DHCP options in the opts file for dnsmasq is like:

tag:<tag_id_or_port_uuid>,option:classless-static-
route,169.254.169.254/32,20.20.20.1

** Affects: neutron
     Importance: Undecided
         Status: New

-- 
Unable to add classless-static-route in extra_dhcp_opt extension
https://bugs.launchpad.net/bugs/1605421
You received this bug notification because you are a member of Yahoo! 
Engineering Team, which is subscribed to neutron.

-- 
Mailing list: https://launchpad.net/~yahoo-eng-team
Post to     : yahoo-eng-team@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yahoo-eng-team
More help   : https://help.launchpad.net/ListHelp

Reply via email to