...
In addition, the following API will be modified in a backward compatible manner, to allow a collection of NICs to be specified when deploying a new virtual machine; clarify which NICs will be returned as a result of a list virtual machines command, and specify that the security groups for a NIC be listed:
...
This feature will add the capability for security groups associated with a NIC to be modifiedupdated. The old security group rules must be removed and the new security group rules applied in a secure fashion (i.e. don't drop the old rules and leave the NIC unprotected for a short period before the new rules are applied).
...
The nics table is extended to add account/domain information.
A new table security_group_nic_map is introduced to contain the set of security groups associated with a Nic
A new view entitled nics_view is introduced to support the listNics command.
...
Extend NetworkService API to allow create/delete/update Nic
Extend UserVmService API to allow attach/detach of Nic from VM.
...
Introduce NicsJoinDao and NicsJoinVO classes to support query functions
Introduce SecurityGroupNicMapVO and SecurityGroupNicMapDao/Impl classes to provide access to the new security_group_nic_map table.
Implement create/delete/update Nic methods in NetworkServiceImpl
Implement attach/detach methods i nUserVmManagerImplin UserVmManagerImpl
Implement search for Nics method in QueryManagerImpl
...
Parameter | Description |
---|---|
displaytext | Any text associated with success or failure |
success | True if the operation succeeded |
...
This command modifies updates an existing NIC. The implementation must ensure that any security group rules associated with the NIC are safely adjusted (as the NIC may be connected to a virtual machine).
...
Parameter Name | Description | Required |
---|---|---|
id | The id of the NIC | true |
securitygroupids | Comma separated list of security group ids to be associated with the NIC (mutually exclusive with securitygroupnames) | false |
securitygroupnames | Comma separated list of security group names to be associated with the NIC (mutually exclusive with securitygroupids) | false |
Parameter Name | Description |
---|---|
nic | The NIC that has been attached (see NIC data object) |
...