f-87: agent: bridge public = interfaces.internet, watchdog du segment #87
Le veth vp-<id>-e rejoint cfg.PublicBridge() (interfaces.internet, br-public par défaut, jamais default_interface). Le watchdog signale un bridge public absent, éteint ou sans port VXLAN. config.exemple.yml : internet: br-public. Signed-off-by: GnomeZworc <nicolas.boufidjeline@g3e.fr>
This commit is contained in:
parent
7535e068b9
commit
26095062c8
10 changed files with 200 additions and 3 deletions
13
internal/config/agent/interfaces.go
Normal file
13
internal/config/agent/interfaces.go
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
package configuration
|
||||
|
||||
const (
|
||||
InternetInterface = "internet"
|
||||
DefaultPublicBridge = "br-public"
|
||||
)
|
||||
|
||||
func (c Config) PublicBridge() string {
|
||||
if bridge := c.Interfaces[InternetInterface]; bridge != "" {
|
||||
return bridge
|
||||
}
|
||||
return DefaultPublicBridge
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue