Added missing action events for enable/disable static nat

This commit is contained in:
Alena Prokharchyk 2012-07-26 15:16:06 -07:00
parent 44f3446ba2
commit ecd8450ab6
1 changed files with 3 additions and 0 deletions

View File

@ -378,10 +378,12 @@ 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, long networkId, boolean isSystemVm)
throws NetworkRuleConflictException, ResourceUnavailableException {
UserContext ctx = UserContext.current();
Account caller = ctx.getCaller();
UserContext.current().setEventDetails("Ip Id: " + ipId);
Object vmIdentity = null;
// Verify input parameters
@ -1170,6 +1172,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();