mirror of https://github.com/apache/cloudstack.git
CLOUDSTACK-8251: Adding automation test cases for dedicated public IP ranges
This closes #128 Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This commit is contained in:
parent
dc2aa8a808
commit
191bcdd439
File diff suppressed because it is too large
Load Diff
|
|
@ -41,6 +41,15 @@ test_data = {
|
|||
"name": "Project",
|
||||
"displaytext": "Test project"
|
||||
},
|
||||
"publiciprange": {
|
||||
"gateway": "",
|
||||
"netmask": "",
|
||||
"startip": "",
|
||||
"endip": "",
|
||||
"forvirtualnetwork": "true",
|
||||
"vlan": "",
|
||||
"zoneid": ""
|
||||
},
|
||||
"private_gateway": {
|
||||
"ipaddress": "172.16.1.2",
|
||||
"gateway": "172.16.1.1",
|
||||
|
|
|
|||
|
|
@ -3047,7 +3047,7 @@ class PublicIpRange:
|
|||
self.__dict__.update(items)
|
||||
|
||||
@classmethod
|
||||
def create(cls, apiclient, services):
|
||||
def create(cls, apiclient, services, account=None, domainid=None):
|
||||
"""Create VlanIpRange"""
|
||||
|
||||
cmd = createVlanIpRange.createVlanIpRangeCmd()
|
||||
|
|
@ -3061,6 +3061,11 @@ class PublicIpRange:
|
|||
cmd.podid = services["podid"]
|
||||
cmd.vlan = services["vlan"]
|
||||
|
||||
if account:
|
||||
cmd.account = account
|
||||
if domainid:
|
||||
cmd.domainid = domainid
|
||||
|
||||
return PublicIpRange(apiclient.createVlanIpRange(cmd).__dict__)
|
||||
|
||||
def delete(self, apiclient):
|
||||
|
|
|
|||
Loading…
Reference in New Issue