Github user The-Loeki commented on a diff in the pull request:

    https://github.com/apache/cloudstack/pull/1547#discussion_r63691374
  
    --- Diff: systemvm/patches/debian/config/opt/cloud/bin/cs/CsConfig.py ---
    @@ -58,25 +58,35 @@ def get_level(self):
             return self.__LOG_LEVEL
     
         def is_vpc(self):
    -        return self.cl.get_type() == "vpcrouter"
    +        return self.cl.get_type() == 'vpcrouter'
     
         def is_router(self):
    -        return self.cl.get_type() == "router"
    +        return self.cl.get_type() == 'router'
    +
    +    def is_dhcp(self):
    +        return self.cl.get_type() == 'dhcpsrvr'
    +
    +    def has_dns(self):
    +        return not self.use_extdns()
    +
    +    def has_metadata(self):
    +        return any((self.is_vpc(), self.is_router(), self.is_dhcp()))
     
         def get_domain(self):
             return self.cl.get_domain()
     
    +    def use_extdns(self):
    +        return self.cmdline().idata().get('useextdns', 'false') == 'true'
    +
         def get_dns(self):
    +        conf = self.cmdline().idata()
             dns = []
    -        if not self.cl.get_use_ext_dns():
    -            if not self.is_vpc() and self.cl.is_redundant():
    --- End diff --
    
    @ustcweizhou / @DaanHoogland: This should revert the behaviour


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to