mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-02 11:52:28 +01:00
Corrected parsing vlan tag in JuniperSrx resource
This commit is contained in:
parent
9d50b0bb68
commit
f2c7db9947
@ -691,7 +691,7 @@ public class JuniperSrxResource implements ServerResource {
|
|||||||
Long publicVlanTag = null;
|
Long publicVlanTag = null;
|
||||||
if (ip.getBroadcastUri() != null && !ip.getBroadcastUri().equals("untagged")) {
|
if (ip.getBroadcastUri() != null && !ip.getBroadcastUri().equals("untagged")) {
|
||||||
try {
|
try {
|
||||||
publicVlanTag = Long.parseLong(ip.getBroadcastUri());
|
publicVlanTag = Long.parseLong(BroadcastDomainType.getValue(ip.getBroadcastUri()));
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
throw new ExecutionException("Could not parse public VLAN tag: " + ip.getBroadcastUri());
|
throw new ExecutionException("Could not parse public VLAN tag: " + ip.getBroadcastUri());
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user