def METHOD_NAME(new_params):
    seq = [
        ('hostname %s' % str(new_params['hostname']), [r'\(config\)#']),
        ('vrf definition MGMT', [r'\(config-vrf-MGMT\)#']),
        ('rd 1:1', [r'\(config-vrf-MGMT\)#']),
        ('exit', [r'\(config\)#']),
        ('ip routing vrf MGMT', [r'\(config\)#']),
        ('interface management 1', [r'\(config-if-Ma1\)#']),
        ('no shutdown', [r'\(config-if-Ma1\)#']),
        ('vrf forwarding MGMT', [r'\(config-if-Ma1\)#']),
        ('ip address %s' %
         str(new_params['mgmt_ip']), [r'\(config-if-Ma1\)#']),
        ('exit', [r'\(config\)#']),
        ('ip route vrf MGMT 0.0.0.0/0 %s' %
         str(new_params['mgmt_gw']), [r'\(config\)#']),
        ('username %s privilege 15 role network-admin secret 0 %s' %
         (str(new_params['new_login']), str(new_params['new_password'])), [r'\(config\)#']),
        ('aaa root secret 0 %s' %
         str(new_params['new_root_password']), [r'\(config\)#']),
    ]
    ss = SerialSession(new_params['telnet_port'])
    ss.login(new_params['login'], new_params['password'])
    ss.enable()
    ss.wait_for_warmup()
    ss.rename_boot(seq)  # FIXME: do we need this rename?
    ss.configure(seq)
    ss.wait_for_warmup()
    ss.logout()
    ss.cleanup()
    return