File tree Expand file tree Collapse file tree 2 files changed +11
-2
lines changed
systemvm/patches/debian/config/opt/cloud/bin/cs Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -68,8 +68,11 @@ def get_domain(self):
6868
6969 def get_dns (self ):
7070 dns = []
71- # Check what happens with use_ext_dns
72- dns .append (self .address ().get_guest_ip ())
71+ if not self .cl .get_use_ext_dns ():
72+ if not self .is_vpc () and self .cl .is_redundant ():
73+ dns .append (self .cl .get_guest_gw ())
74+ else :
75+ dns .append (self .address ().get_guest_ip ())
7376 names = ["dns1" , "dns2" ]
7477 for name in names :
7578 if name in self .cmdline ().idata ():
Original file line number Diff line number Diff line change @@ -148,3 +148,9 @@ def get_gateway(self):
148148 if "gateway" in self .idata ():
149149 return self .idata ()['gateway' ]
150150 return False
151+
152+ def get_use_ext_dns (self ):
153+ if "useextdns" in self .idata ():
154+ return self .idata ()['useextdns' ]
155+ return False
156+
You can’t perform that action at this time.
0 commit comments