def METHOD_NAME(self):
    """
    Set the resource label property.
    """
    try:
         self.get_mask()
    except ex.Error:
         pass
    try:
        self.getaddr()
        addr = self.addr
    except ex.Error:
        addr = self.ipname
    self.label = "%s/%s %s/%s" % (addr, to_cidr(self.netmask), self.ipdev, self.ipdevext)
    if self.ipname != addr:
        self.label += " " + self.ipname