def _run_vtysh_config(frr_config_file):
    vtysh_command = 'copy {} running-config'.format(frr_config_file)
    full_args = ['/usr/bin/vtysh', '--vty_socket', constants.FRR_SOCKET_PATH, '-c', vtysh_command]
    try:
        return processutils.execute(*full_args, run_as_root=True)
    except Exception as e:
        print('Unable to execute vtysh with {}. Exception: {}'.format(full_args, e))
        raise
def _run_vtysh_config(frr_config_file):
    vtysh_command = 'copy {} running-config'.format(frr_config_file)
    full_args = ['/usr/bin/vtysh', '--vty_socket', constants.FRR_SOCKET_PATH, '-c', vtysh_command]
    try:
        return processutils.execute(*full_args, run_as_root=True)
    except Exception as e:
        print('Unable to execute vtysh with {}. Exception: {}'.format(full_args, e))
        raise