← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1605421] Re: Unable to add classless-static-route in extra_dhcp_opt extension

 

** Project changed: neutron => python-neutronclient

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1605421

Title:
  Unable to add classless-static-route in extra_dhcp_opt extension

Status in python-neutronclient:
  New

Bug description:
  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

To manage notifications about this bug go to:
https://bugs.launchpad.net/python-neutronclient/+bug/1605421/+subscriptions