]> 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)
committerClaudiu Belu <cbelu@cloudbasesolutions.com>
Tue, 4 Mar 2014 15:52:45 +0000 (07:52 -0800)
commit492190aae01b6587be9e4280a819e2d5a1fdbf97
treef2d9d5d2eb845515cc2be943f058c016b314e967
parentc823016d31b36c10cb6faafcce68a1b98f4dc345
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