multicloud: ICloudNic: add GetId()

This commit is contained in:
Yousong Zhou
2020-11-26 21:18:58 +08:00
parent 1569966aa3
commit ab7ad856b5
16 changed files with 55 additions and 1 deletions
+4
View File
@@ -59,6 +59,10 @@ func (region *SRegion) GetInstancePorts(instanceId string) ([]SInstancePort, err
return ports, nil
}
func (nic *SInstancePort) GetId() string {
return ""
}
func (nic *SInstancePort) GetIP() string {
for i := range nic.FixedIps {
if regutils.MatchIPAddr(nic.FixedIps[i].IpAddress) {