Remove deprecated method OVSBridge.set_protocols()

This method is deprecated since Ocata and marked to remove in
Queens release.

Change-Id: I1e280d7ad9a966eb576e9c8ca5882b35cb37bad8
This commit is contained in:
Sławek Kapłoński 2018-01-11 15:57:39 +01:00
parent bab1ae8812
commit 71995b27f2
2 changed files with 0 additions and 17 deletions

View File

@ -20,7 +20,6 @@ import random
import time
import uuid
from debtcollector import removals
from neutron_lib import constants as p_const
from neutron_lib import exceptions
from oslo_config import cfg
@ -243,16 +242,6 @@ class OVSBridge(BaseOVS):
def set_standalone_mode(self):
self._set_bridge_fail_mode(FAILMODE_STANDALONE)
@removals.remove(
message=("Consider using add_protocols instead, or if replacing "
"the whole set of supported protocols is the desired "
"behavior, using set_db_attribute"),
version="Ocata",
removal_version="Queens")
def set_protocols(self, protocols):
self.set_db_attribute('Bridge', self.br_name, 'protocols', protocols,
check_error=True)
def add_protocols(self, *protocols):
self.ovsdb.db_add('Bridge', self.br_name,
'protocols', *protocols).execute(check_error=True)

View File

@ -154,12 +154,6 @@ class OVSBridgeTestCase(OVSBridgeTestBase):
self.br.db_get_val('Bridge', self.br.br_name, 'fail_mode'),
fail_mode)
def test_set_protocols(self):
self.br.set_protocols('OpenFlow10')
self.assertEqual(
self.br.db_get_val('Bridge', self.br.br_name, 'protocols'),
"OpenFlow10")
def test_add_protocols_start_with_one(self):
self.br.set_db_attribute('Bridge', self.br.br_name, 'protocols',
['OpenFlow10'],