← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1287524] [NEW] ip_lib netns.execute should work with or without namespace

 

Public bug reported:

There are a number of places in the neutron code that run an ip command
like this:

        if self.network.namespace:
            ip_wrapper = ip_lib.IPWrapper(self.root_helper,
                                          self.network.namespace)
            ip_wrapper.netns.execute(cmd)
        else:
            utils.execute(cmd, self.root_helper)

This code could be simplified if netns.execute simply checked if there
was a namespace defined or not.

** Affects: neutron
     Importance: Undecided
     Assignee: Carl Baldwin (carl-baldwin)
         Status: In Progress

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

Title:
  ip_lib netns.execute should work with or without namespace

Status in OpenStack Neutron (virtual network service):
  In Progress

Bug description:
  There are a number of places in the neutron code that run an ip
  command like this:

          if self.network.namespace:
              ip_wrapper = ip_lib.IPWrapper(self.root_helper,
                                            self.network.namespace)
              ip_wrapper.netns.execute(cmd)
          else:
              utils.execute(cmd, self.root_helper)

  This code could be simplified if netns.execute simply checked if there
  was a namespace defined or not.

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


Follow ups

References