Skip to content

Commit 4f57f11

Browse files
askyrieSongZhen0704
authored andcommitted
fix: default agent group config
1 parent 79731fc commit 4f57f11

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

  • server/controller/trisolaris/vtap

server/controller/trisolaris/vtap/vtap.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -520,9 +520,11 @@ func (v *VTapInfo) GetVTapConfigByNameOrShortUUID(nameOrShortUUID string) *VTapC
520520
if v == nil {
521521
return nil
522522
}
523+
523524
lcuuid, ok := v.vtapGroupNameOrShortIDToLcuuid[nameOrShortUUID]
524-
if !ok {
525-
return nil
525+
if !ok || lcuuid == "" {
526+
log.Warning(v.Logf("not found vtap group (%s) config, use default config", nameOrShortUUID))
527+
lcuuid = v.getDefaultVTapGroup()
526528
}
527529

528530
return v.vtapGroupLcuuidToConfiguration[lcuuid]

0 commit comments

Comments
 (0)