* @param mac_address MAC address of the VIF
* @param network_uuid UUID of the associated virtual network
*/
public boolean AddPort(UUID vif_uuid, UUID vm_uuid, String interface_name,
InetAddress interface_ip, byte[] mac_address, UUID network_uuid, short vlanId, short primaryVlanId) {
Port aport = new Port(UUIDToArray(vif_uuid), UUIDToArray(vm_uuid),
interface_name, interface_ip.getHostAddress(),
UUIDToArray(network_uuid), MacAddressToString(mac_address));
aport.setVlan_id(primaryVlanId);
aport.setIsolated_vlan_id(vlanId);
ports.put(vif_uuid, aport);
if (client == null) {
if (!CreateAndResynchronizeRpcClient()) {
s_logger.error(rpc_address + ":" + rpc_port +
" AddPort: " + vif_uuid + "(" + interface_name +