High level TAPI to configure network

Overview

This API can be used to set up network configurations like resources reservation, assigning IP addresses etc with minimum efforts. More…

// global functions

void tapi_network_setup(bool ipv6_supp);
te_errno tapi_neight_flush(rcf_rpc_server* rpcs, const char* ifname);
te_errno tapi_neight_flush_ta(rcf_rpc_server* rpcs);

Detailed Documentation

This API can be used to set up network configurations like resources reservation, assigning IP addresses etc with minimum efforts.

Copyright (C) 2004-2022 OKTET Labs Ltd. All rights reserved.

Global Functions

void tapi_network_setup(bool ipv6_supp)

Reserve resources, set IP addresses and static ARP (if required) in accordance to the current Configurator configuration.

The function jumps to cleanup in case of failure.

Parameters:

ipv6_supp

true if IPv6 addressing is supported.

te_errno tapi_neight_flush(rcf_rpc_server* rpcs, const char* ifname)

Flush ARP table for the interface ifname.

Parameters:

rpcs

RPC server handle

ifname

Interface name

Returns:

Status code.

te_errno tapi_neight_flush_ta(rcf_rpc_server* rpcs)

Flush ARP table for all interfaces on test agent rpcs->ta.

Parameters:

rpcs

RPC server handle

Returns:

Status code.