summaryrefslogtreecommitdiffstats
path: root/os_net_config/objects.py
diff options
context:
space:
mode:
authorDan Prince <dprince@redhat.com>2014-06-10 14:01:06 -0400
committerDan Prince <dprince@redhat.com>2014-06-10 14:01:06 -0400
commit86230e11d10a9a605f1eaaf9ab3619875224eb3d (patch)
treecac4dce869f1049b86b576dfb4e034f41e40e784 /os_net_config/objects.py
parent3e1474324568a277bd3d8e493d26021ec3f3767c (diff)
Implement apply for ifcfg implementation
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
Diffstat (limited to 'os_net_config/objects.py')
-rw-r--r--os_net_config/objects.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/os_net_config/objects.py b/os_net_config/objects.py
index 455e55f..4b6e09e 100644
--- a/os_net_config/objects.py
+++ b/os_net_config/objects.py
@@ -50,6 +50,7 @@ class Interface(object):
self.use_dhcp = use_dhcp
self.use_dhcpv6 = use_dhcpv6
self.addresses = addresses
+ self.routes = routes
self.bridge = None
self.type = None