]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Make OVS interface name hashing algorithm common and extend it
authorAndreas Scheuring <andreas.scheuring@de.ibm.com>
Wed, 16 Sep 2015 12:32:18 +0000 (14:32 +0200)
committerAndreas Scheuring <andreas.scheuring@de.ibm.com>
Wed, 30 Sep 2015 08:04:49 +0000 (10:04 +0200)
commit3d0db13370eee09aaee5923c54d0e3188509c4e5
treee42a27dd812df0eb995522f9d1e6fdff1fc03fda
parentca5fd3cd11f3b653bb91ff12964fb26b2b946b32
Make OVS interface name hashing algorithm common and extend it

The OVS devcie name hashing algorithm shortens interface names that are too
long. To ensure uniqueness it takes use of a hashing algorithm.

Move this function to a common place where it can be shared between ml2
drivers and agents.

Extend the function to support interface name postfix in addition to the
prefix.

Change LOG level to info to help deployers figuring out the unhashed name
of an hashed inteface.

Adapt OVS and linuxbridge agent to use this common function instead of their
own implementation.

Change-Id: If7ee8240c8f60da3400365138832a5d9badf98b4
Closes-Bug: #1495960
neutron/plugins/common/utils.py
neutron/plugins/ml2/drivers/linuxbridge/agent/linuxbridge_neutron_agent.py
neutron/plugins/ml2/drivers/openvswitch/agent/ovs_neutron_agent.py
neutron/tests/unit/plugins/common/__init__.py [new file with mode: 0644]
neutron/tests/unit/plugins/common/test_utils.py [new file with mode: 0644]
neutron/tests/unit/plugins/ml2/drivers/linuxbridge/agent/test_linuxbridge_neutron_agent.py
neutron/tests/unit/plugins/ml2/drivers/openvswitch/agent/test_ovs_neutron_agent.py