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:
Gaurav Aradhye 2015-03-24 16:16:50 +05:30 committed by Rohit Yadav
parent dc2aa8a808
commit 191bcdd439
3 changed files with 1467 additions and 1 deletions

File diff suppressed because it is too large Load Diff

View File

@ -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",

View File

@ -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):