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
8eb77b302b
commit
8639c4727f
37 changed files with 518 additions and 24 deletions
|
|
@ -20,6 +20,7 @@ type diskSubnet struct {
|
|||
InterfaceIP string `json:"interface_ip"`
|
||||
VPCRoute string `json:"vpc_route,omitempty"`
|
||||
DefaultGateway string `json:"default_gateway,omitempty"`
|
||||
MTU int `json:"mtu,omitempty"`
|
||||
}
|
||||
|
||||
type diskHost struct {
|
||||
|
|
@ -98,7 +99,7 @@ func subnetFromDisk(d diskSubnet) (SubnetConfig, error) {
|
|||
return SubnetConfig{}, ErrNoInterfaceIP
|
||||
}
|
||||
|
||||
c := SubnetConfig{Network: network, InterfaceIP: interfaceIP}
|
||||
c := SubnetConfig{Network: network, InterfaceIP: interfaceIP, MTU: d.MTU}
|
||||
|
||||
if d.VPCRoute != "" {
|
||||
if _, c.VPCRoute, err = net.ParseCIDR(d.VPCRoute); err != nil {
|
||||
|
|
@ -232,6 +233,7 @@ func (s *Store) persist() error {
|
|||
sub := diskSubnet{
|
||||
Network: s.subnet.Network.String(),
|
||||
InterfaceIP: s.subnet.InterfaceIP.String(),
|
||||
MTU: s.subnet.MTU,
|
||||
}
|
||||
if s.subnet.VPCRoute != nil {
|
||||
sub.VPCRoute = s.subnet.VPCRoute.String()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue