mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
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:
parent
4b38d36284
commit
a8c09f2a19
@ -2841,8 +2841,8 @@ public class JuniperSrxResource implements ServerResource {
|
|||||||
action = "<permit></permit>";
|
action = "<permit></permit>";
|
||||||
}
|
}
|
||||||
|
|
||||||
xml = replaceXmlValue(xml, "action", action);
|
|
||||||
}
|
}
|
||||||
|
xml = replaceXmlValue(xml, "action", action);
|
||||||
} else {
|
} else {
|
||||||
xml = replaceXmlValue(xml, "from-zone", fromZone);
|
xml = replaceXmlValue(xml, "from-zone", fromZone);
|
||||||
xml = replaceXmlValue(xml, "to-zone", toZone);
|
xml = replaceXmlValue(xml, "to-zone", toZone);
|
||||||
@ -3611,7 +3611,7 @@ public class JuniperSrxResource implements ServerResource {
|
|||||||
|
|
||||||
private Long getVlanTag(String vlan) throws ExecutionException {
|
private Long getVlanTag(String vlan) throws ExecutionException {
|
||||||
Long publicVlanTag = null;
|
Long publicVlanTag = null;
|
||||||
if (!vlan.equals("untagged")) {
|
if (!vlan.contains("untagged")) {
|
||||||
try {
|
try {
|
||||||
// make sure this vlan is numeric
|
// make sure this vlan is numeric
|
||||||
publicVlanTag = Long.parseLong(BroadcastDomainType.getValue(vlan));
|
publicVlanTag = Long.parseLong(BroadcastDomainType.getValue(vlan));
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user