Corrected parsing vlan tag in JuniperSrx resource

With out this chagne ipAssoc command for juniperSrx is failed
This commit is contained in:
Jayapal 2013-12-03 17:32:07 +05:30
parent 80a5dd75cd
commit 8454885fbe
1 changed files with 1 additions and 1 deletions

View File

@ -700,7 +700,7 @@ public class JuniperSrxResource implements ServerResource {
Long publicVlanTag = null;
if (ip.getBroadcastUri() != null && !ip.getBroadcastUri().equals("untagged")) {
try {
publicVlanTag = Long.parseLong(ip.getBroadcastUri());
publicVlanTag = Long.parseLong(BroadcastDomainType.getValue(ip.getBroadcastUri()));
} catch (Exception e) {
throw new ExecutionException("Could not parse public VLAN tag: " + ip.getBroadcastUri());
}