]> git.proxmox.com Git - mirror_ifupdown2.git/commit
Allow customer set bond defaults for CL with ifupdown2
authorSam Tannous <stannous@cumulusnetworks.com>
Wed, 22 Jul 2015 22:38:07 +0000 (18:38 -0400)
committerSam Tannous <stannous@cumulusnetworks.com>
Wed, 22 Jul 2015 22:38:07 +0000 (18:38 -0400)
commit6cb589dfdfdb9b5a32efff5dd8ae39903e6bd90a
treedbc0a95ef68015986b294ded2e07e7871c0ca0d5
parent31b2afbe8967a60ea8760dba4aaf0865687b4e6a
Allow customer set bond defaults for CL with ifupdown2

Ticket: CM-6723
Reviewed By: roopa
Testing Done: unit tested and testifupdown2 test suite

This patch installs bond interface defaults in

     /etc/network/ifupdown2/policy.d/bond_defaults.json

and allows users to modify this file.   Users can then leave out these
bond attributes in their configs to save typing and space.

It also changes the ifenslave and ifenslaveutil module to bond and
bondutil, respectively to be consistent with other modules
(and also because customers think of "bond" interfaces not
"ifenslave" interfaces.)

For example, the default file installed looks like the following:

{
    "README": "This file is user generated and modifiable.",
    "bond": {
        "defaults": {
                "bond-mode": "802.3ad",
                "bond-miimon": "100",
                "bond-use-carrier": "1",
                "bond-lacp-rate": "0",
                "bond-min-links": "1",
                "bond-xmic-hash-policy": "layer3+4"
         }
    }
}
Please enter the commit message for your changes. Lines starting
addons/bond.py [new file with mode: 0644]
addons/ifenslave.py [deleted file]
config/addons.conf
docs/source/addonsapiref.rst
docs/source/addonshelperapiref.rst
ifupdownaddons/bondutil.py [new file with mode: 0644]
ifupdownaddons/ifenslaveutil.py [deleted file]
ifupdownaddons/modulebase.py
man.rst/ifupdown-addons-interfaces.5.rst
setup.py