D'OH. dumb mistake
This commit is contained in:
@@ -169,15 +169,18 @@ class Tunnel(object):
|
||||
domains = []
|
||||
do_dhcp = False
|
||||
ra_other = False
|
||||
tag = _assign_xml.attrib.get('tag', None)
|
||||
dns = _assign_xml.find('dns')
|
||||
if dns and self.ra_provider:
|
||||
do_dns = utils.xml2bool(dns.text.strip())
|
||||
domains = [i.strip() for i in dns.attrib.get('domains', '').split() if i.strip() != '']
|
||||
dhcp = _assign_xml.find('dhcpv6')
|
||||
if dhcp and self.ra_provider:
|
||||
do_dhcp = utils.xml2bool(dhcp.text.strip())
|
||||
ra_other = utils.xml2bool(dhcp.attrib.get('advOther', 'false').strip())
|
||||
tag = None
|
||||
_ra_xml = _assign_xml.find('ra')
|
||||
if _ra_xml is not None and self.ra_provider:
|
||||
tag = _ra_xml.attrib.get('tag', None)
|
||||
_dns_xml = _assign_xml.find('dns')
|
||||
_dhcp_xml = _assign_xml.find('dhcpv6')
|
||||
if _dns_xml is not None:
|
||||
do_dns = utils.xml2bool(_dns_xml.text.strip())
|
||||
domains = [i.strip() for i in _dns_xml.attrib.get('domains', '').split() if i.strip() != '']
|
||||
if _dhcp_xml is not None:
|
||||
do_dhcp = utils.xml2bool(_dhcp_xml.text.strip())
|
||||
ra_other = utils.xml2bool(_dhcp_xml.attrib.get('advOther', 'false').strip())
|
||||
assign = Assignment(_assign_xml,
|
||||
ra_dns = do_dns,
|
||||
ra_dhcp = do_dhcp,
|
||||
|
||||
Reference in New Issue
Block a user