From 86230e11d10a9a605f1eaaf9ab3619875224eb3d Mon Sep 17 00:00:00 2001 From: Dan Prince Date: Tue, 10 Jun 2014 14:01:06 -0400 Subject: 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 --- os_net_config/objects.py | 1 + 1 file changed, 1 insertion(+) (limited to 'os_net_config/objects.py') 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 -- cgit 1.2.3-korg