def get_bcast(self): try: return pyw.ifaddrget(self.card)[2] except: return None
def get_ip(self): try: return pyw.ifaddrget(self.card)[0] except: return None
def test_inetgetset(self): self.assertEquals(None,pyw.ifaddrset(self.card,pri['ip'],pri['mask'],pri['bcast'])) self.assertEqual(pri['ip'],pyw.ifaddrget(self.card)[0])
def get_mask(self): try: return pyw.ifaddrget(self.card)[1] except: return None
def test_inetgetset(self): self.assertEquals( None, pyw.ifaddrset(self.card, pri['ip'], pri['mask'], pri['bcast'])) self.assertEqual(pri['ip'], pyw.ifaddrget(self.card)[0])
def get_bcast(self): return pyw.ifaddrget(self.card)[2]
def get_mask(self): return pyw.ifaddrget(self.card)[1]
def get_ip(self): return pyw.ifaddrget(self.card)[0]
def get_ipaddr(self): try: w = pyw.getcard(self._interface) return pyw.ifaddrget(w) except pyric.error as e: logger.error(e)
def ipaddress(self): return pyw.ifaddrget(self._card)[0]