File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3131import com .cloud .server .ResourceTag ;
3232import com .cloud .storage .snapshot .SnapshotPolicy ;
3333import com .cloud .vm .ConsoleProxy ;
34+ import com .cloud .vm .Nic ;
3435import com .cloud .vm .NicSecondaryIp ;
3536import com .cloud .vm .SecondaryStorageVm ;
3637import org .apache .cloudstack .config .Configuration ;
@@ -575,6 +576,8 @@ public class EventTypes {
575576 entityEventDetails .put (EVENT_FIREWALL_EGRESS_CLOSE , FirewallRule .class );
576577 entityEventDetails .put (EVENT_FIREWALL_EGRESS_UPDATE , FirewallRule .class );
577578
579+ // Nic Events
580+ entityEventDetails .put (EVENT_NIC_CREATE , Nic .class );
578581
579582 // Load Balancers
580583 entityEventDetails .put (EVENT_ASSIGN_TO_LOAD_BALANCER_RULE , FirewallRule .class );
Original file line number Diff line number Diff line change @@ -1041,7 +1041,7 @@ public UserVm addNicToVirtualMachine(AddNicToVMCmd cmd) throws InvalidParameterV
10411041 if (guestNic == null ) {
10421042 throw new CloudRuntimeException ("Unable to add NIC to " + vmInstance );
10431043 }
1044-
1044+ CallContext . current (). putContextParameter ( Nic . class . getName (), guestNic . getUuid ());
10451045 s_logger .debug ("Successful addition of " + network + " from " + vmInstance );
10461046 return _vmDao .findById (vmInstance .getId ());
10471047 }
You can’t perform that action at this time.
0 commit comments