💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、豆包、星火、月之暗面及文生图、文生视频 广告
主机表示租户网络的流量终点。一般地,主机由附着点(attachment points)、地址和唯一ID定义。 private final Integer hostId; // OVX-asigned UUID private final MACAddress mac; // MAC address of host in the network private final OVXPort port; // Attachment point private OVXIPAddress ipAddress; // Network address private HostState state // Host FSM OVX的主机是虚拟化的构造,没有区分物理机和虚拟机。主机的物理表示方法是通过找到其物理上等价的附着点和网络地址产生。 public HashMap<String, Object> convertToPhysical() { HashMap<String, Object> map = new HashMap<String, Object>(); map.put("hostId", this.hostId); map.put("dpid", this.port.getPhysicalPort().getParentSwitch().getSwitchName()); // Find Physical attachment point that corresponds to Host's virtual one map.put("port", port.getPhysicalPortNumber()); map.put("mac", this.mac.toString()); // Find Host's PhysicalIP, if it has one if (this.ipAddress.getIp() != 0) try { map.put("ipAddress", OVXMap.getInstance().getPhysicalIP(this.ipAddress, this.port.getTenantId()).toSimpleString()); 当isEdge 为true时,OVXPort的接入的是Host。