Fixed up get_dns for normal isolated vrs
Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/341f5e3c Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/341f5e3c Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/341f5e3c Branch: refs/heads/feature/systemvm-persistent-config Commit: 341f5e3cd525d8a5eebe6388271cad6bd731be02 Parents: 4acf62d Author: Ian Southam <[email protected]> Authored: Wed Jan 28 16:41:12 2015 +0100 Committer: wilderrodrigues <[email protected]> Committed: Wed Feb 4 18:47:12 2015 +0100 ---------------------------------------------------------------------- systemvm/patches/debian/config/opt/cloud/bin/cs/CsConfig.py | 9 ++++++++- .../patches/debian/config/opt/cloud/bin/cs/CsDatabag.py | 8 -------- 2 files changed, 8 insertions(+), 9 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cloudstack/blob/341f5e3c/systemvm/patches/debian/config/opt/cloud/bin/cs/CsConfig.py ---------------------------------------------------------------------- diff --git a/systemvm/patches/debian/config/opt/cloud/bin/cs/CsConfig.py b/systemvm/patches/debian/config/opt/cloud/bin/cs/CsConfig.py index 2e8db01..a08f1cc 100644 --- a/systemvm/patches/debian/config/opt/cloud/bin/cs/CsConfig.py +++ b/systemvm/patches/debian/config/opt/cloud/bin/cs/CsConfig.py @@ -67,7 +67,14 @@ class CsConfig(object): return self.cl.get_domain() def get_dns(self): - return self.cmdline().get_dns() + dns = [] + # Check what happens with use_ext_dns + dns.append(self.address().get_guest_ip()) + names = ["dns1", "dns2"] + for name in names: + if name in self.cmdline().idata(): + dns.append(self.cmdline().idata()[name]) + return dns def get_format(self): return self.__LOG_FORMAT http://git-wip-us.apache.org/repos/asf/cloudstack/blob/341f5e3c/systemvm/patches/debian/config/opt/cloud/bin/cs/CsDatabag.py ---------------------------------------------------------------------- diff --git a/systemvm/patches/debian/config/opt/cloud/bin/cs/CsDatabag.py b/systemvm/patches/debian/config/opt/cloud/bin/cs/CsDatabag.py index 936f993..e6ad6e5 100644 --- a/systemvm/patches/debian/config/opt/cloud/bin/cs/CsDatabag.py +++ b/systemvm/patches/debian/config/opt/cloud/bin/cs/CsDatabag.py @@ -93,14 +93,6 @@ class CsCmdLine(CsDataBag): else: return "unloved-router" - def get_dns(self): - dns = [] - names = "dns1 dns2" - for name in names: - if name in self.idata(): - dns.append(self.idata()[name]) - return dns - def get_type(self): if "type" in self.idata(): return self.idata()['type']
