'Get updated commands'

def get_update_cmd(self):

    cli_str = ''
    if (self.state == 'present'):
        cli_str = ('ntp    authentication-keyid    %s    authentication-mode    %s    ' % (self.key_id, self.auth_mode))
        if (self.auth_type == 'encrypt'):
            cli_str = ('%s    cipher    %s' % (cli_str, self.password))
        else:
            cli_str = ('%s    %s' % (cli_str, self.password))
    else:
        cli_str = ('undo    ntp    authentication-keyid    %s' % self.key_id)
    self.updates_cmd.append(cli_str)
    if self.authentication:
        cli_str = ''
        if (self.ntp_auth_conf['authentication'] != self.authentication):
            if (self.authentication == 'enable'):
                cli_str = 'ntp    authentication    enable'
            else:
                cli_str = 'undo    ntp    authentication    enable'
        if (cli_str != ''):
            self.updates_cmd.append(cli_str)
    cli_str = ''
    if (self.state == 'present'):
        if (self.trusted_key != self.cur_trusted_key):
            if (self.trusted_key == 'enable'):
                cli_str = ('ntp    trusted    authentication-keyid    %s' % self.key_id)
            else:
                cli_str = ('undo    ntp    trusted    authentication-keyid    %s' % self.key_id)
    else:
        cli_str = ('undo    ntp    trusted    authentication-keyid    %s' % self.key_id)
    if (cli_str != ''):
        self.updates_cmd.append(cli_str)
