From 24c8de3c137329f7e15b7879fbaf364fd36a73b9 Mon Sep 17 00:00:00 2001 From: Ian Southam Date: Mon, 8 Dec 2014 16:18:50 +0100 Subject: [PATCH] Some convenience methods --- .../debian/config/opt/cloud/bin/cs/CsGuestNetwork.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/systemvm/patches/debian/config/opt/cloud/bin/cs/CsGuestNetwork.py b/systemvm/patches/debian/config/opt/cloud/bin/cs/CsGuestNetwork.py index 2ee99b92597..c1cd8a44eb1 100644 --- a/systemvm/patches/debian/config/opt/cloud/bin/cs/CsGuestNetwork.py +++ b/systemvm/patches/debian/config/opt/cloud/bin/cs/CsGuestNetwork.py @@ -35,6 +35,15 @@ class CsGuestNetwork: def is_guestnetwork(self): return self.guest + def get_dns(self): + return self.config.get_dns() + + def get_netmask(self): + return self.data['router_guest_netmask'] + + def get_gateway(self): + return self.data['router_guest_gateway'] + def get_domain(self): domain = "cloudnine.internal" if not self.guest: