mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
disableOneToOneNat: generate usage events for all rules (port ranges) that are being removed
This commit is contained in:
parent
2734c892d8
commit
a4c5bef188
@ -603,6 +603,8 @@ public class RulesManagerImpl implements RulesManager, RulesService, Manager {
|
||||
for (FirewallRuleVO rule : rules) {
|
||||
rule.setState(State.Revoke);
|
||||
_firewallDao.update(rule.getId(), rule);
|
||||
UsageEventVO usageEvent = new UsageEventVO(EventTypes.EVENT_NET_RULE_DELETE, rule.getAccountId(), 0, rule.getId(), null);
|
||||
_usageEventDao.persist(usageEvent);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user