def METHOD_NAME(self, value):
    if value:
        self.idata()['redundant_state'] = "PRIMARY"
    else:
        self.idata()['redundant_state'] = "BACKUP"
    self.idata()['redundant_primary'] = value