CLOUDSTACK-2504: UI - create network offering dialog - pass specifyIpRanges=false for Isolated Network.

This commit is contained in:
Jessica Wang 2013-05-23 14:34:26 -07:00
parent e8fbee0e18
commit 026c2cec6d
1 changed files with 10 additions and 14 deletions

View File

@ -1919,26 +1919,22 @@
inputData['isPersistent'] = false;
}
else if (inputData['guestIpType'] == "Isolated") { //specifyVlan checkbox is shown
if (inputData['specifyVlan'] == 'on') { //specifyVlan checkbox is checked
inputData['specifyIpRanges'] = false;
if (inputData['specifyVlan'] == 'on') { //specifyVlan checkbox is checked
inputData['specifyVlan'] = true;
inputData['specifyIpRanges'] = true;
}
else { //specifyVlan checkbox is unchecked
inputData['specifyVlan'] = false;
inputData['specifyIpRanges'] = false;
}
if(inputData['isPersistent'] == 'on') { //It is a persistent network
inputData['isPersistent'] = true;
}
else { //Isolated Network with Non-persistent network
inputData['isPersistent'] = false;
}
if(inputData['isPersistent'] == 'on') { //It is a persistent network
inputData['isPersistent'] = true;
}
else { //Isolated Network with Non-persistent network
inputData['isPersistent'] = false;
}
}