]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Minor refactoring for Hyper-V utils and tests
authorClaudiu Belu <cbelu@cloudbasesolutions.com>
Mon, 17 Feb 2014 00:17:20 +0000 (16:17 -0800)
committerThomas Goirand <thomas@goirand.fr>
Thu, 13 Mar 2014 07:20:44 +0000 (15:20 +0800)
commitf071c0766b64e7dc65ed86accc88335b42aa41eb
tree5f5875a618396e62c00a228fddbcb0aa2e057996
parent96d57271b0aa6eeb5cf60d0093d57ae9f2e0fd15
Minor refactoring for Hyper-V utils and tests

A separate commit in the blueprint addressed by this patch
introduces the "_filter_acls" and "_create_acl" methods
which can be used in "enable_port_metrics_collection"
as well to reduce code duplication.

This commit eliminates also some code duplication
in test_hyperv_utilsv2.py.

Implements: blueprint hyperv-security-groups

Change-Id: I48fb5389b6049641ca2649990e81e94e4c45ef7f
neutron/plugins/hyperv/agent/utilsv2.py
neutron/tests/unit/hyperv/test_hyperv_utilsv2.py