Skip to content

Commit 6cc90a0

Browse files
Murali reddyMurali reddy
authored andcommitted
bug 14554: Failed to add Usage Filter on SRX during SetStaticNatRulesCommand Execution
status 14554: resolved fixed reviewed-by: Janardhan
1 parent c12b000 commit 6cc90a0

1 file changed

Lines changed: 9 additions & 4 deletions

File tree

‎core/src/com/cloud/network/resource/JuniperSrxResource.java‎

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -100,10 +100,10 @@ public class JuniperSrxResource implements ServerResource {
100100
private String _primaryDnsAddress;
101101
private String _ikeGatewayHostname;
102102
private String _vpnObjectPrefix;
103-
private UsageFilter _usageFilterVlanInput = new UsageFilter("vlan-input", null, "vlan-input");
104-
private UsageFilter _usageFilterVlanOutput = new UsageFilter("vlan-output", null, "vlan-output");
105-
private UsageFilter _usageFilterIPInput = new UsageFilter(_publicZone, "destination-address", "-i");
106-
private UsageFilter _usageFilterIPOutput = new UsageFilter(_privateZone, "source-address", "-o");
103+
private UsageFilter _usageFilterVlanInput;
104+
private UsageFilter _usageFilterVlanOutput;
105+
private UsageFilter _usageFilterIPInput;
106+
private UsageFilter _usageFilterIPOutput;
107107
private final Logger s_logger = Logger.getLogger(JuniperSrxResource.class);
108108

109109
private enum SrxXml {
@@ -367,6 +367,11 @@ public boolean configure(String name, Map<String, Object> params) throws Configu
367367
throw new ConfigurationException("Unable to open a connection to the SRX.");
368368
}
369369

370+
_usageFilterVlanInput = new UsageFilter("vlan-input", null, "vlan-input");
371+
_usageFilterVlanOutput = new UsageFilter("vlan-output", null, "vlan-output");
372+
_usageFilterIPInput = new UsageFilter(_publicZone, "destination-address", "-i");
373+
_usageFilterIPOutput = new UsageFilter(_privateZone, "source-address", "-o");
374+
370375
return true;
371376
} catch (Exception e) {
372377
throw new ConfigurationException(e.getMessage());

0 commit comments

Comments
 (0)