feat(region): guest: add fetchGuestNICs method

This commit is contained in:
Yousong Zhou
2020-12-15 22:12:23 +08:00
parent 4dd3945804
commit 8f54866272
+8
View File
@@ -365,6 +365,14 @@ func (self *SGuest) GetRealIPs() []string {
return nil
}
func (self *SGuest) fetchNICShortDesc(ctx context.Context) []api.GuestnetworkShortDesc {
nicsMap := fetchGuestNICs(ctx, []string{self.Id}, tristate.False)
if nicsMap == nil {
return nil
}
return nicsMap[self.Id]
}
type sGuestVpcsInfo struct {
GuestId string
Vpc []string