frontend: show dynamic BGP sessions without any color (#98)

Signed-off-by: Marc 'risson' Schmitt <marc.schmitt@risson.space>
This commit is contained in:
Marc 'risson' Schmitt 2024-02-19 07:11:20 +01:00 committed by GitHub
parent 86129190ab
commit ac31862237
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 0 deletions

View File

@ -193,6 +193,11 @@ func summaryParse(data string, serverName string) (TemplateSummary, error) {
row.Info = strings.TrimSpace(lineSplitted[10])
}
// Dynamic BGP session, show without any color
if strings.Contains(row.Info, "Passive") {
row.MappedState = summaryStateMap["passive"]
}
// add to the result
args.Rows = append(args.Rows, row)
}