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:
parent
077f1877e8
commit
46aad1e7c5
8 changed files with 61 additions and 8 deletions
11
internal/subnet/mode_test.go
Normal file
11
internal/subnet/mode_test.go
Normal 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)
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue