← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1425508] Re: Extension aliases in extension manager in ml2 plugin fetches extension aliases object instead of extension aliases

 

You should use the @property decorator for defining extension_alias like
it's done in test extension driver [1].

Quote from "Support for Extensions in ML2" spec [2]:
extension_alias: Abstract property - Return supported extension aliases

[1] https://github.com/openstack/neutron/blob/9e1c059fc469bfda63cced1bb08ed93a946211f6/neutron/tests/unit/ml2/test_extension_driver_api.py#L55 
[2] https://github.com/openstack/neutron-specs/blob/master/specs/juno/neutron-ml2-mechanismdriver-extensions.rst

** Changed in: neutron
       Status: New => Invalid

** Changed in: neutron
     Assignee: Elena Ezhova (eezhova) => (unassigned)

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

Title:
  Extension aliases in extension manager in ml2 plugin fetches extension
  aliases object instead of extension aliases

Status in OpenStack Neutron (virtual network service):
  Invalid

Bug description:
  While writing extension for extending some attribute using ml2 plugin.
  The extension manager will fetch ethe extension alias object instead
  of name.

  alias = driver.obj.extension_alias instead of

  alias = driver.obj.extension_alias() in function extension_aliases(self)
   in neutron//neutron/plugins/ml2/managers.py file.

  Beacuse of which neutron-server is unable to find the extension alias
  and exits with error:  unable to find the extension

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


References