aboutsummaryrefslogtreecommitdiffstats
path: root/os_net_config/cli.py
AgeCommit message (Collapse)AuthorFilesLines
2014-08-20Add support for parsing YAMLDan Prince1-3/+3
Adds new YAML examples. Also adds some new CLI test cases which compare --noop stdout (from the CLI) for the json and yaml examples to verify they generate the same things.
2014-08-14Correct add_object call.Dan Prince1-1/+1
Missed this in 9e515950c7eb4a73e02a4f4883c223dd24ba93ff
2014-08-14Add --cleanup, and impl for ifcfgDan Prince1-1/+8
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-11Use --noop instead of --mock.Dan Prince1-8/+9
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-3/+14
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-10Uncomment the provider.apply callDan Prince1-1/+1
This fixes issues where running os-net-config did nothing.
2014-07-09Add -d and -v options for logging level controlDan Prince1-14/+32
Adds -d (--debug) and -v (--verbose) options to control the log levels.
2014-07-07Add copyrights to files.Dan Prince1-0/+2
2014-07-01Add os-net-config CLIDan Prince1-0/+103
Adds a new CLI which parses the JSON and calls the configured provider to apply the configuration.