removed requests library implementation for Filter rule and Port Forward CRUD operations, DHC-626 DHC-617
This commit is contained in:
parent
7c322820ea
commit
ab7f1bfe6d
|
@ -49,7 +49,6 @@ class PortForward(model_base.BASEV2, models_v2.HasId, models_v2.HasTenant):
|
|||
backref=orm.backref('forwards',
|
||||
cascade='all,delete'))
|
||||
|
||||
|
||||
@validates('name')
|
||||
def validate_name(self, key, name):
|
||||
assert isinstance(name, basestring)
|
||||
|
|
|
@ -117,8 +117,8 @@ class PortforwardResource(_authzbase.ResourceDelegate):
|
|||
resource.update(resource_dict)
|
||||
# FIXME(dhellmann): This variable is undefined
|
||||
# but I don't know what it should have been.
|
||||
if not item['private_port']:
|
||||
item['private_port'] = item['public_port']
|
||||
if not resource['private_port']:
|
||||
resource['private_port'] = resource['public_port']
|
||||
context.session.add(resource)
|
||||
return self.make_dict(resource)
|
||||
|
||||
|
|
|
@ -2,6 +2,7 @@ from quantum.plugins.openvswitch import ovs_quantum_plugin
|
|||
|
||||
from akanda.quantum.db import models_v2
|
||||
|
||||
|
||||
class OVSQuantumPluginV2(ovs_quantum_plugin.OVSQuantumPluginV2):
|
||||
supported_extension_aliases = (
|
||||
ovs_quantum_plugin.OVSQuantumPluginV2.supported_extension_aliases +
|
||||
|
|
|
@ -11,8 +11,6 @@ class AkandaClientWrapper(client.Client):
|
|||
portalias_path = '/dhportalias'
|
||||
portforward_path = '/dhportforward'
|
||||
|
||||
|
||||
|
||||
# portalias crud
|
||||
@client.APIParamsCall
|
||||
def list_portalias(self, **params):
|
||||
|
@ -209,7 +207,7 @@ class VisibilityTest(unittest.TestCase):
|
|||
|
||||
|
||||
class CanSeeTestCaseMixin(object):
|
||||
|
||||
|
||||
def test_addressgroup(self):
|
||||
ag = self.c.show_addressgroup(self.group['addressgroup']['id'])
|
||||
assert ag
|
||||
|
|
Loading…
Reference in New Issue