示例#1
0
    def get_nas_addr(self):
        _nas_addr = None
        try:
            _nas_addr = tools.DecodeAddress(self.get(4)[0])
        except:pass

        if not _nas_addr:
            _nas_addr =  self.source[0]

        if _nas_addr != self.source[0]:
            _nas_addr =  self.source[0]
        return _nas_addr
示例#2
0
 def get_framed_netmask(self):
     try:
         return tools.DecodeAddress(self.get(9)[0])
     except:
         return None
示例#3
0
 def get_framed_ipaddr(self):
     try:
         return tools.DecodeAddress(self.get(8)[0])
     except:
         return None