CLOUDSTACK-9996: Fix juniper vlan untagged jedgement and xml element replacment (#2174)

Fix  juniper vlan untagged jedgement and xml element replacment.
This commit is contained in:
digitalgust 2017-08-24 19:22:06 +08:00 committed by Rohit Yadav
parent 4b38d36284
commit a8c09f2a19

View File

@ -2841,8 +2841,8 @@ public class JuniperSrxResource implements ServerResource {
action = "<permit></permit>";
}
xml = replaceXmlValue(xml, "action", action);
}
xml = replaceXmlValue(xml, "action", action);
} else {
xml = replaceXmlValue(xml, "from-zone", fromZone);
xml = replaceXmlValue(xml, "to-zone", toZone);
@ -3611,7 +3611,7 @@ public class JuniperSrxResource implements ServerResource {
private Long getVlanTag(String vlan) throws ExecutionException {
Long publicVlanTag = null;
if (!vlan.equals("untagged")) {
if (!vlan.contains("untagged")) {
try {
// make sure this vlan is numeric
publicVlanTag = Long.parseLong(BroadcastDomainType.getValue(vlan));