'Get updatede commands'

def get_update_cmd(self):

    if self.same_conf:
        return
    if (self.state == 'present'):
        if (self.enable and (self.enable != self.dldp_intf_conf['dldpEnable'])):
            if (self.enable == 'enable'):
                self.updates_cmd.append('dldp    enable')
            elif (self.enable == 'disable'):
                self.updates_cmd.append('undo    dldp    enable')
        if (self.mode_enable and (self.mode_enable != self.dldp_intf_conf['dldpCompatibleEnable'])):
            if (self.mode_enable == 'enable'):
                self.updates_cmd.append('dldp    compatible-mode    enable')
            else:
                self.updates_cmd.append('undo    dldp    compatible-mode    enable')
        if self.local_mac:
            flag = judge_is_mac_same(self.local_mac, self.dldp_intf_conf['dldpLocalMac'])
            if (not flag):
                self.updates_cmd.append(('dldp    compatible-mode    local-mac    %s' % self.local_mac))
        if (self.reset and (self.reset == 'enable')):
            self.updates_cmd.append('dldp    reset')
    elif self.changed:
        self.updates_cmd.append('undo    dldp    compatible-mode    local-mac')
