← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1698852] [NEW] port in mechanism driver's create_port_postcommit has no extra_dhcp_opts

 

Public bug reported:

The port in the following code of a mechanism driver will always have
extra_dhcp_opts = [], regardless of whether it has dhcp options or not.

    def create_port_postcommit(self, context):
        port = context.current
        port.get('extra_dhcp_opts')  # always an empty list

The create_port_precommit port does have the correct extra_dhcp_opts.

Seen on stable/ocata

** Affects: neutron
     Importance: Undecided
         Status: New

** Description changed:

  The port in the following code of a mechanism driver will always have
  extra_dhcp_opts = [], regardless of whether it has dhcp options or not.
  
- 
-     def create_port_postcommit(self, context):
-         port = context.current
-         port.get('extra_dhcp_opts')  # always an empty list
- 
+     def create_port_postcommit(self, context):
+         port = context.current
+         port.get('extra_dhcp_opts')  # always an empty list
  
  The create_port_precommit port does have the correct extra_dhcp_opts.
+ 
+ Seen on stable/ocata

** Summary changed:

- port in mechanism driver's create_port_postcommit has no extra_hdcp_options
+ port in mechanism driver's create_port_postcommit has no extra_dhcp_opts

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

Title:
  port in mechanism driver's create_port_postcommit has no
  extra_dhcp_opts

Status in neutron:
  New

Bug description:
  The port in the following code of a mechanism driver will always have
  extra_dhcp_opts = [], regardless of whether it has dhcp options or
  not.

      def create_port_postcommit(self, context):
          port = context.current
          port.get('extra_dhcp_opts')  # always an empty list

  The create_port_precommit port does have the correct extra_dhcp_opts.

  Seen on stable/ocata

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


Follow ups