← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1915310] [NEW] Resource name and collection name for address groups are incorrectly defined in neutron-lib

 

Public bug reported:

RESOURCE_NAME and COLLECTION_NAME are incorrectly defined in neutron-
lib: https://github.com/openstack/neutron-
lib/blob/2dabcc5cf7d68bf2a4640f07d5e170aa8b911390/neutron_lib/api/definitions/address_group.py#L25-L26

Their definitions should have '_' instead of '-'. This incorrect
definition prevents the proper setup in policy FieldCheck, which uses
the policy engine match to look for the resource in the API attributes
table:
https://github.com/openstack/neutron/blob/a3dc80b509d72c8d1a3ea007cb657a9e217ba66a/neutron/policy.py#L359-L377

** Affects: neutron
     Importance: Medium
     Assignee: Miguel Lavalle (minsel)
         Status: New

** Changed in: neutron
     Assignee: (unassigned) => Miguel Lavalle (minsel)

** Changed in: neutron
   Importance: Undecided => Medium

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

Title:
  Resource name and collection name for address groups are incorrectly
  defined in  neutron-lib

Status in neutron:
  New

Bug description:
  RESOURCE_NAME and COLLECTION_NAME are incorrectly defined in neutron-
  lib: https://github.com/openstack/neutron-
  lib/blob/2dabcc5cf7d68bf2a4640f07d5e170aa8b911390/neutron_lib/api/definitions/address_group.py#L25-L26

  Their definitions should have '_' instead of '-'. This incorrect
  definition prevents the proper setup in policy FieldCheck, which uses
  the policy engine match to look for the resource in the API attributes
  table:
  https://github.com/openstack/neutron/blob/a3dc80b509d72c8d1a3ea007cb657a9e217ba66a/neutron/policy.py#L359-L377

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


Follow ups