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
|
|
@ -19,6 +19,14 @@ type SubnetConfig struct {
|
|||
InterfaceIP net.IP
|
||||
VPCRoute *net.IPNet
|
||||
DefaultGateway net.IP
|
||||
MTU int
|
||||
}
|
||||
|
||||
func (c SubnetConfig) InterfaceMTU() int {
|
||||
if c.MTU == 0 {
|
||||
return 1500
|
||||
}
|
||||
return c.MTU
|
||||
}
|
||||
|
||||
type Host struct {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue