mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-10-29 17:58:36 +08:00
feat(region): guest: add fetchGuestNICs method
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user