aboutsummaryrefslogtreecommitdiffstats
path: root/os_net_config/impl_ifcfg.py
AgeCommit message (Collapse)AuthorFilesLines
2014-08-15ifcfg: Exclude ifcfg-lo from cleanupDan Prince1-5/+7
This interface should always exist... we don't want to clean it up.
2014-08-14Docstring updates to NetConfig objects.Dan Prince1-0/+16
2014-08-14Add --cleanup, and impl for ifcfgDan Prince1-9/+36
Adds a new cleanup option which can be used to ifdown and remove interfaces that exists but aren't specified in the object model (or JSON).
2014-08-14Use underscores for provider function names.Dan Prince1-14/+14
2014-08-12Set the MAC to the primary interfaceDan Prince1-0/+4
Adds support for a new 'primary' interface option exposed via the object model and JSON parsers which can be used to force the MAC address on a bridge. Only one interface on a given bridge (or bond) may be set as the primary interface. Also, update the ifcfg and eni providers so that they use OVS_EXTRA (or ovs_extra) to pin the mac accordingly.
2014-08-11Use --noop instead of --mock.Dan Prince1-10/+13
Updates the apply() function for each NetConfig object so that it now accepts noop instead. Also, the updated files are not returned (always instead of conditionally if mock was used).
2014-08-11Adds mock ability to the ENI and Ifcfg providersmarios1-4/+11
Specifying mock=True for 'apply' will return a string representing the changes required, or commands to be used in order to implement the requested/specified configuration. This is also exposed to the cli, with -m (--mock), e.g. os-net-config --mock -c ./etc/example_os_net_config_1.json -p eni
2014-07-09Don't write 'None' to ifcfg route files.Dan Prince1-2/+2
Corrects an issue where 'None' got written into the ifcfg format route files instead of ''.
2014-07-08Add logging to the eni provider.Dan Prince1-2/+7
2014-07-08Add logging to the ifcfg provider.Dan Prince1-0/+22
2014-07-07Add copyrights to files.Dan Prince1-0/+2
2014-07-02ifcfg: don't call set Interface for vlans...Dan Prince1-3/+0
Drop the 'set Interface $DEVICE external-ids:iface-id=...' config from ifcfg ovs vlans.
2014-07-01Remove some extra print statements.Dan Prince1-2/+0
2014-06-26Add OvsBond object and impl for ifcfg format.Dan Prince1-13/+33
Supports the configuration of OVS bond interfaces. Also adds the ability to configure extra OVS_OPTIONS for both bonds and bridges (useful for some modes of operation)
2014-06-25Vlan object and support for ifcfg.Dan Prince1-27/+40
Add ifcfg configuration support for Vlans and Vlan OVS ports.
2014-06-11Add OvsBridge configuration supportDan Prince1-9/+57
Adds new object for OvsBridge. Also update the ifcfg network config class to support adding bridges. As part of the change both the bridge and interface classes extend a _BaseOpts base class.
2014-06-10Implement apply for ifcfg implementationDan Prince1-21/+35
Adds an apply function to the ifcfg implementation which: 1) Shuts down existing interfaces w/ ifdown 2) writes new interfaces config files (routes too) 3) Starts up new interfaces w/ ifup
2014-06-09Initial ifcfg implementation for interfaces/routesDan Prince1-0/+93
Ifcfg formatted persistence for interfaces and routes.