mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-02 20:02:29 +01:00
bug 13872: Implementation of Guest Network by JuniperSRX failed: NPE during the execution of IPAssoc
Reviewed-by: Jana status 13872: resolved fixed
This commit is contained in:
parent
5af6fbef83
commit
e278eb674e
@ -622,7 +622,7 @@ public class JuniperSrxResource implements ServerResource {
|
|||||||
String guestVlanSubnet = NetUtils.getCidrSubNet(guestVlanGateway, cidrSize);
|
String guestVlanSubnet = NetUtils.getCidrSubNet(guestVlanGateway, cidrSize);
|
||||||
|
|
||||||
Long publicVlanTag = null;
|
Long publicVlanTag = null;
|
||||||
if (!ip.getVlanId().equals("untagged")) {
|
if (ip.getVlanId() != null && !ip.getVlanId().equals("untagged")) {
|
||||||
try {
|
try {
|
||||||
publicVlanTag = Long.parseLong(ip.getVlanId());
|
publicVlanTag = Long.parseLong(ip.getVlanId());
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user