'worker'

def work(self):

    self.check_params()
    self.ospf_info = self.get_ospf_dict()
    self.get_existing()
    self.get_proposed()
    if (self.state == 'present'):
        if ((not self.ospf_info) or (not self.ospf_info['interface'])):
            self.set_ospf_interface()
        else:
            self.merge_ospf_interface()
    elif (self.ospf_info and self.ospf_info['interface']):
        self.unset_ospf_interface()
    self.get_end_state()
    self.results['changed'] = self.changed
    self.results['proposed'] = self.proposed
    self.results['existing'] = self.existing
    self.results['end_state'] = self.end_state
    if self.changed:
        self.results['updates'] = self.updates_cmd
    else:
        self.results['updates'] = list()
    self.module.exit_json(**self.results)
