getting there

This commit is contained in:
brent s. 2020-05-15 01:45:52 -04:00
parent 58cbbb06cd
commit 05ef5b078c
Signed by: bts
GPG Key ID: 8C004C2F93481F6B

View File

@ -112,6 +112,7 @@ class Tunnel(object):
self.id = None self.id = None
self.client = None self.client = None
self.server = None self.server = None
self.endpoint = None
self.radvd = None self.radvd = None
self.enable_radvd = None self.enable_radvd = None
self.radvd_dns = None self.radvd_dns = None
@ -135,16 +136,17 @@ class Tunnel(object):
return(None) return(None)


def _client(self): def _client(self):
_client_xml = self.xml.find('client') self.client = self.he.client
_ip_txt = _client_xml.text.strip()
_prefix_txt = _client_xml.attrib['prefix'].strip()
self.client = IP6(_ip_txt, _prefix_txt)
return(None) return(None)


def _creds(self): def _creds(self):
self.creds_id = self.xml.attrib['creds'].strip() self.creds_id = self.xml.attrib['creds'].strip()
return(None) return(None)


def _endpoint(self):
self.endpoint = self.he.endpoint
return(None)

def _id(self): def _id(self):
self.id = int(self.xml.attrib['id'].strip()) self.id = int(self.xml.attrib['id'].strip())
return(None) return(None)
@ -155,9 +157,7 @@ class Tunnel(object):
return(None) return(None)


def _server(self): def _server(self):
_server_xml = self.xml.find('server') self.server = self.he.server
_ip_text = _server_xml.text.strip()
self.server = IP4(_ip_text, 32)
return(None) return(None)


def parse(self): def parse(self):