]> git.proxmox.com Git - mirror_ifupdown2.git/commit
addons: address: reset mtu to default for physical interfaces which are
authorRoopa Prabhu <roopa@cumulusnetworks.com>
Thu, 5 May 2016 22:49:41 +0000 (15:49 -0700)
committerRoopa Prabhu <roopa@cumulusnetworks.com>
Thu, 5 May 2016 22:49:41 +0000 (15:49 -0700)
commit00c12960b45d6c951dbf307ed76645753afddb81
treec1047f0937499a5601f038f5bab0e694da3dee43
parent2365b3c937837142b397b53fe0f00dcee9505113
addons: address: reset mtu to default for physical interfaces which are
not bond slaves

Ticket: CM-9449
Reviewed By: julien
Testing Done: Tested resetting mtu on physical interfaces to default

default mtu is already present in address.json policy file. This patch
continues to take a cautious and conservative approach to
reset mtu of only physical interfaces if different from default mtu
and mtu is not given by the user. bond slaves get their mtu from
the bond when bond has a configured mtu. so this patch only
resets mtu on physical interfaces which are not bond slaves.

{noformat}
$cat /var/lib/ifupdown2/policy.d/address.json
{
    "address": {
"defaults": { "mtu": "1500" }
    }
}
{noformat}

Signed-off-by: Roopa Prabhu <roopa@cumulusnetworks.com>
addons/address.py