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/8d6f5d6c Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/8d6f5d6c Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/8d6f5d6c Branch: refs/heads/feature/systemvm-persistent-config Commit: 8d6f5d6cd1022a754f4f9c98fb75cd3a9f94178b Parents: 52a66c3 Author: Ian Southam <isout...@schubergphilis.com> Authored: Wed Jan 28 16:41:12 2015 +0100 Committer: wilderrodrigues <wrodrig...@schubergphilis.com> Committed: Mon Feb 16 16:08:40 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/8d6f5d6c/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/8d6f5d6c/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']