os-net-config/os_net_config
Dan Sneddon e912b02c3b Fix os-net-config interface restarts when applying routes
There is a bug in the os-net-config code that applies updates to
existing routes. Instead of deleting routes that no longer exist
in the config and adding routes on the fly that do, the process
always fails so the interface gets restarted.

This change fixes the external call to "/sbin/ip", but also
fixes a bug where the name of the file containing the stored
routes was being passed incorrectly. This caused os-net-config
to always think there were no routes present, and to apply the
new route without deleting the old route. This can lead to an
error if the routes conflict.

Change-Id: I4315e9812c641a667a1d5c6529cdba5d2f5bf640
Closes-bug: 1819212
2019-03-08 16:55:18 -08:00
..
tests Fix os-net-config interface restarts when applying routes 2019-03-08 16:55:18 -08:00
__init__.py Add Policy Based Routing Support to os-net-config 2019-01-24 09:57:25 -08:00
cli.py Allow adding sriov_pf over ovs_bridge, linux_bond and ovs_bond 2019-02-27 07:57:05 +00:00
impl_eni.py Continue bringing up interfaces even if one fails 2017-05-30 20:17:21 +00:00
impl_ifcfg.py Fix os-net-config interface restarts when applying routes 2019-03-08 16:55:18 -08:00
impl_iproute.py Add copyrights to files. 2014-07-07 16:15:53 -04:00
objects.py Configure switchdev mode in SR-IOV in os-net-config 2019-02-28 10:01:42 +00:00
schema.yaml Configure switchdev mode in SR-IOV in os-net-config 2019-02-28 10:01:42 +00:00
sriov_config.py Configure switchdev mode in SR-IOV in os-net-config 2019-02-28 10:01:42 +00:00
utils.py Configure switchdev mode in SR-IOV in os-net-config 2019-02-28 10:01:42 +00:00
validator.py Add schema-based config data validation 2017-07-12 22:57:34 +02:00
version.py Move versioning into version.py 2014-09-04 09:59:11 -04:00