]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Refactor scan_ports() and update_ancillary_ports() in OVS Neutron Agent
authorAman Kumar <amank@hp.com>
Tue, 16 Jun 2015 12:32:44 +0000 (05:32 -0700)
committerRomil Gupta <romilg@hp.com>
Tue, 16 Jun 2015 14:02:36 +0000 (07:02 -0700)
commit8f2014ea556404fb99c78add1e46b80c718cf491
tree1016a240f4c6d5434464ef3a1e6caf35d4a52991
parent6fe424bfffb82fd90aa386b1fe689995b9a9da21
Refactor scan_ports() and update_ancillary_ports() in OVS Neutron Agent

Used a helper method which contains the common code from scan_ports()
and update_ancillary_ports(). And also renamed the name of
update_ancillary_ports() method to scan_ancillary_ports() to have parity
between normal ports and ancillary ports.

Added unit tests for scan_ancillary_ports.

Co-Authored-By: Romil Gupta <romilg@hp.com>
Partial-Bug: #1329223

Change-Id: I8b3e00a9371d5a03cc8b4be24bf20eec10bef5df
neutron/plugins/openvswitch/agent/ovs_neutron_agent.py
neutron/tests/unit/plugins/openvswitch/agent/test_ovs_neutron_agent.py