aboutsummaryrefslogtreecommitdiffstats
path: root/os_net_config/tests/test_impl_ifcfg.py
AgeCommit message (Collapse)AuthorFilesLines
2015-03-19Mark ENI files as autogeneratedDan Prince1-5/+10
End users may not realize these files are autogenerated and may be surprised if they make changes to the /etc/sysconfig/network-scripts files which are then overwritten on reboot. Change-Id: I526c228463bd10de2cf3724aa4159b63a9aeff80
2015-03-05Add a --no-activate option to disable device up/down actionsSteven Hardy1-2/+11
Allows you to only install the config, but not take interfaces down/up. Useful if you wish to defer activation of a new config until a later time (e.g reboot). Change-Id: I42f3195e1d3d5d3b9d1c9dbb1f7cf1364503cbd3
2015-02-24Remove deprecated references to oslo-incubatorSteven Hardy1-1/+2
Purge references to modules which have been deprecated by various oslo libraries. Requires changes to use oslo.utils and oslo.concurrency, which are added to the requirements, syncing with the latest in global requirements so we can also move to the un-namespaced oslo package names. Change-Id: Idacb71b7871330e3b3fabf4a926a5b8987614c4d
2015-02-24Add a persist_mapping option to the mapping fileSteven Hardy1-0/+19
This adds the option to permanently rewrite the configuration so the aliases are used instead of the system name. This is useful where you have a variety of hardware and you want to have consistent device naming accross all platforms - this allows you to essentially rename the interfaces permanently so they match the abstracted nicN names. Note, this needs to be run with --cleanup or the old (now conflicting) configs will still be in place, and it may require a reboot before the changes are fully applied. Change-Id: I5af146e764b72c4beaa41c549fabff0af8802152
2014-08-25ifcfg: restart child interfaces on updatesDan Prince1-5/+55
If a top level bridge or bond is modified we also want to restart the child interfaces.
2014-08-22Fix a few pep8 issues...Dan Prince1-2/+0
2014-08-22Add support for ovs_extra.Dan Prince1-0/+24
Adds support for ovs_extra to the OVS Bridge and OVS bond objects.
2014-08-15ifcfg: Exclude ifcfg-lo from cleanupDan Prince1-1/+13
This interface should always exist... we don't want to clean it up.
2014-08-14Add --cleanup, and impl for ifcfgDan Prince1-0/+12
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-20/+20
2014-08-12Set the MAC to the primary interfaceDan Prince1-0/+17
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-07-09Don't write 'None' to ifcfg route files.Dan Prince1-2/+6
Corrects an issue where 'None' got written into the ifcfg format route files instead of ''.
2014-07-07Add copyrights to files.Dan Prince1-0/+2
2014-07-02ifcfg: don't call set Interface for vlans...Dan Prince1-2/+0
Drop the 'set Interface $DEVICE external-ids:iface-id=...' config from ifcfg ovs vlans.
2014-06-26Add OvsBond object and impl for ifcfg format.Dan Prince1-1/+31
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-26Consolidate OVS_EXTRA for the vlan test.Dan Prince1-3/+4
Consolidates the test data into a single string block for the ovs vlan port test string.
2014-06-25Vlan object and support for ifcfg.Dan Prince1-3/+51
Add ifcfg configuration support for Vlans and Vlan OVS ports.
2014-06-11Add OvsBridge configuration supportDan Prince1-20/+77
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-18/+63
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/+82
Ifcfg formatted persistence for interfaces and routes.