def remove_address(self, address): if address not in self.addresses: print "doesn't have the address to remove" else: self.prop_dict["addresses"].remove( TypeConvert.ip4address_native2net(address))
def remove_address(self, address): if address not in self.addresses: print "doesn't have the address to remove" else: self.prop_dict["addresses"].remove(TypeConvert.ip4address_native2net(address))
def add_address(self, address): if address in self.addresses: print "already have the address" else: self.prop_dict["addresses"].append( TypeConvert.ip4address_native2net(address))
def add_address(self, address): if address in self.addresses: print "already have the address" else: self.prop_dict["addresses"].append(TypeConvert.ip4address_native2net(address))