aboutsummaryrefslogtreecommitdiffstats
path: root/os_net_config/impl_eni.py
AgeCommit message (Collapse)AuthorFilesLines
2014-12-16Merge "If setting a default route, use default netmask"Jenkins1-2/+5
2014-12-12Correct the ENI provider name log statementDan Prince1-1/+1
Change-Id: I88118836605fade6bc7978b2d65ed51cef0cdc80
2014-11-24If setting a default route, use default netmaskJames Polley1-2/+5
Without this change, when configuring a default route, it's neccessary to explicitly provide an ip_netmask of 0.0.0.0/0 - otherwise line 177 errors because there's no route.ip_netmask. With this change, it's still possible to provide an ip_netmask for a default route (even though that makes no sense), but if none is provided The Right Thing is done. Change-Id: Idac59e571a72cc8d5693f811ec0121273b891d0f
2014-08-22Fix a few pep8 issues...Dan Prince1-2/+2
2014-08-22Add support for ovs_extra.Dan Prince1-3/+8
Adds support for ovs_extra to the OVS Bridge and OVS bond objects.
2014-08-21A vlan on an OVS bridge doesn't require a deviceDan Prince1-2/+3
Updates the object model so that a VLAN on top of a bridge (an OVS int port) doesn't require a physical device to be set in the object model.
2014-08-21Correct the noop format for the eni providerDan Prince1-1/+1
Corrects the eni provider so that it returns the correct format in noop mode.
2014-08-14Docstring updates to NetConfig objects.Dan Prince1-0/+12
2014-08-14Add --cleanup, and impl for ifcfgDan Prince1-1/+1
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-13/+13
2014-08-12Set the MAC to the primary interfaceDan Prince1-0/+5
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-3/+10
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-1/+3
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-08Add logging to the eni provider.Dan Prince1-3/+21
2014-07-07Add copyrights to files.Dan Prince1-1/+2
2014-07-03ENI: bring up bridges first on DebianDan Prince1-4/+8
We should bring up the interfaces on boot in the same order with which we bring them up in this tool.
2014-07-02ENI: enable 'auto' on bridges by defaultDan Prince1-0/+1
2014-07-02Update impl_eni to set the MTU.Dan Prince1-0/+2
2014-07-02Add vlan support for the ENI implementation.Dan Prince1-5/+32
2014-07-02Update impl_eni so it ifup's the interfacesDan Prince1-2/+6
We were shutting the interfaces down but not bringing them up again. This fixes that...
2014-07-02ENI fixes for v4/v6 ips. DHCP test fixes.Dan Prince1-20/+29
Updates the ENI format so it creates multiple config sections for a single os-net-config interface object if both v4 and v6 IP addresses are defined. Also, fixes several of the test so that DHCP is not enabled on OvsPorts. If an OVS port is part of a bridge that is itself using DHCP we don't also need to run DHCP on the OvsPort interface.
2014-06-25Vlan object and support for ifcfg.Dan Prince1-2/+3
Add ifcfg configuration support for Vlans and Vlan OVS ports.
2014-06-24Initial commit for basic ENI Debian/Ubuntu network configmarios1-0/+132
This uses /etc/network/interfaces single file format. Includes basic tests