← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1535626] Re: Neutron should verify attributes inside a dict

 

** Changed in: neutron
       Status: Confirmed => Fix Released

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

Title:
  Neutron should verify attributes inside a dict

Status in neutron:
  Fix Released
Status in python-neutronclient:
  Invalid

Bug description:
  Currently Neutron did not verify the attributes inside a dict, for
  exp:

  If following body is send to neutron server for router-update, no error will show
  '{"router": {"external_gateway_info": {"network_id": "b92781fe-2d31-49a6-b648-98d937faf0b8", "wrong": true}}}'
  There's a wrong attribute in which is named "wrong"

  while the correct body is 
  '{"router": {"external_gateway_info": {"network_id": "b92781fe-2d31-49a6-b648-98d937faf0b8", "external_fixed_ips": [{"subnet-id": "7ebd8fc9-def1-47f1-97e0-e28c51dc591c"}]}}}'

  The solution is to add verify_attributes(data, key_specs)  in
  _validate_dict()

To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1535626/+subscriptions