Added missing action events for enable/disable static nat

This commit is contained in:
Alena Prokharchyk 2012-07-26 15:28:50 -07:00
parent bf2e3d6ae1
commit 7d406bf3d1

View File

@ -331,9 +331,11 @@ public class RulesManagerImpl implements RulesManager, RulesService, Manager {
}
@Override
@ActionEvent(eventType = EventTypes.EVENT_ENABLE_STATIC_NAT, eventDescription = "enabling static nat")
public boolean enableStaticNat(long ipId, long vmId, boolean isSystemVm) throws NetworkRuleConflictException, ResourceUnavailableException {
UserContext ctx = UserContext.current();
Account caller = ctx.getCaller();
UserContext.current().setEventDetails("Ip Id: " + ipId);
IPAddressVO ipAddress = _ipAddressDao.findById(ipId);
if (ipAddress == null) {
@ -1052,6 +1054,7 @@ public class RulesManagerImpl implements RulesManager, RulesService, Manager {
}
@Override
@ActionEvent(eventType = EventTypes.EVENT_DISABLE_STATIC_NAT, eventDescription = "disabling static nat", async=true)
public boolean disableStaticNat(long ipId) throws ResourceUnavailableException, NetworkRuleConflictException, InsufficientAddressCapacityException {
UserContext ctx = UserContext.current();
Account caller = ctx.getCaller();