f-89: subnet: mode public_ip raccordé au bridge public comme bridge #89

Signed-off-by: GnomeZworc <nicolas.boufidjeline@g3e.fr>
This commit is contained in:
GnomeZworc 2026-10-30 00:59:30 +01:00
commit 46aad1e7c5
Signed by: nicolas.boufideline
GPG key ID: 4406BBBF8845D632
8 changed files with 61 additions and 8 deletions

View file

@ -0,0 +1,11 @@
package subnet
import "testing"
func TestBridged(t *testing.T) {
for mode, want := range map[string]bool{"bridge": true, "public_ip": true, "vxlan": false, "": false} {
if got := Bridged(mode); got != want {
t.Errorf("%q : %v, %v attendu", mode, got, want)
}
}
}