← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1361573] [NEW] TAP_PREFIX_LEN constant is defined several times

 

Public bug reported:

TAP_PREFIX_LEN constant is defined several times, it should be defined
only once preferably in neutron/common/constants.py .

>From a coarse grep:

grep -r "TAP" . | grep 3

./neutron/plugins/brocade/NeutronPlugin.py:    TAP_PREFIX_LEN = 3
./neutron/plugins/linuxbridge/lb_neutron_plugin.py:    TAP_PREFIX_LEN = 3
./neutron/plugins/ml2/rpc.py:TAP_DEVICE_PREFIX_LENGTH = 3
./neutron/plugins/mlnx/rpc_callbacks.py:    TAP_PREFIX_LEN = 3

** Affects: neutron
     Importance: Undecided
         Status: New


** Tags: low-hanging-fruit

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

Title:
  TAP_PREFIX_LEN constant is defined several times

Status in OpenStack Neutron (virtual network service):
  New

Bug description:
  TAP_PREFIX_LEN constant is defined several times, it should be defined
  only once preferably in neutron/common/constants.py .

  From a coarse grep:

  grep -r "TAP" . | grep 3

  ./neutron/plugins/brocade/NeutronPlugin.py:    TAP_PREFIX_LEN = 3
  ./neutron/plugins/linuxbridge/lb_neutron_plugin.py:    TAP_PREFIX_LEN = 3
  ./neutron/plugins/ml2/rpc.py:TAP_DEVICE_PREFIX_LENGTH = 3
  ./neutron/plugins/mlnx/rpc_callbacks.py:    TAP_PREFIX_LEN = 3

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


Follow ups

References