From df9a383dfb470edf7c6e1ae1caf79e37a0ab1bd4 Mon Sep 17 00:00:00 2001 From: Alessandro Pilotti Date: Sun, 24 Aug 2014 15:37:26 +0300 Subject: [PATCH] Fixes Hyper-V agent issue on Hyper-V 2008 R2 The vmutils.HyperVUtils class used on versions of Hyper-V prior of 2012 is missing the "remove_all_security_rules" method. Change-Id: Ib14e643c400b230c912589f9480acf59d6e7b147 Closes-Bug: #1360817 --- neutron/plugins/hyperv/agent/utils.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/neutron/plugins/hyperv/agent/utils.py b/neutron/plugins/hyperv/agent/utils.py index c078ee58a..1e18731ca 100644 --- a/neutron/plugins/hyperv/agent/utils.py +++ b/neutron/plugins/hyperv/agent/utils.py @@ -167,6 +167,9 @@ class HyperVUtils(object): msg=_('Failed creating port for %s') % vswitch_name) return new_port + def remove_all_security_rules(self, switch_port_name): + pass + def disconnect_switch_port( self, vswitch_name, switch_port_name, delete_port): """Disconnects the switch port.""" -- 2.45.2