f-56: agent: MTU unique network.mtu_vm, underlay à 9000 contrôlé à la création, option DHCP 26 et host_mtu #56
Signed-off-by: GnomeZworc <nicolas.boufidjeline@g3e.fr>
This commit is contained in:
parent
d1b50d546c
commit
8cb5117cb2
37 changed files with 518 additions and 24 deletions
|
|
@ -112,6 +112,12 @@ func TestDnsmasqSetVM_RejectsAVMWithoutReservation(t *testing.T) {
|
|||
}
|
||||
}
|
||||
|
||||
func TestDnsmasqConfig_CarriesTheMTU(t *testing.T) {
|
||||
if c := (Dnsmasq{}).config(Subnet{VPC: "vp-s9", Bridge: "br-s9r1", MTU: 1450}); c.MTU != 1450 {
|
||||
t.Errorf("mtu = %d, want 1450", c.MTU)
|
||||
}
|
||||
}
|
||||
|
||||
func TestDnsmasqConfig_ListenOnGatewayExcludesTheBridge(t *testing.T) {
|
||||
c := Dnsmasq{}.config(Subnet{VPC: "vp-s9", Bridge: "br-s9r1", Listen: "gw-s9r1"})
|
||||
if c.Listen != "gw-s9r1" || c.Except != "br-s9r1" {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue