XEN configuration

Overview

Forward declaration to avoid header inclusion More…

// global functions

te_errno tapi_cfg_xen_get_path(char const* ta, char* path);
te_errno tapi_cfg_xen_set_path(char const* ta, char const* path);
te_errno tapi_cfg_xen_get_rcf_port(char const* ta, unsigned int* port);
te_errno tapi_cfg_xen_set_rcf_port(char const* ta, unsigned int port);
te_errno tapi_cfg_xen_get_rpc_br(char const* ta, char* br_name);
te_errno tapi_cfg_xen_set_rpc_br(char const* ta, char const* br_name);
te_errno tapi_cfg_xen_get_rpc_if(char const* ta, char* if_name);
te_errno tapi_cfg_xen_set_rpc_if(char const* ta, char const* if_name);
te_errno tapi_cfg_xen_get_base_mac_addr(char const* ta, uint8_t* mac);
te_errno tapi_cfg_xen_set_base_mac_addr(char const* ta, uint8_t const* mac);
te_errno tapi_cfg_xen_get_accel(char const* ta, te_bool* accel);
te_errno tapi_cfg_xen_set_accel(char const* ta, te_bool accel);
te_errno tapi_cfg_xen_set_init(char const* ta, te_bool init);
te_errno tapi_cfg_xen_create_dom_u(char const* ta, char const* dom_u);
te_errno tapi_cfg_xen_destroy_dom_u(char const* ta, char const* dom_u);
te_errno tapi_cfg_xen_dom_u_get_status(char const* ta, char const* dom_u, char* status);
te_errno tapi_cfg_xen_dom_u_set_status(char const* ta, char const* dom_u, char const* status);
te_errno tapi_cfg_xen_dom_u_get_memory_size(char const* ta, char const* dom_u, unsigned int* size);
te_errno tapi_cfg_xen_dom_u_set_memory_size(char const* ta, char const* dom_u, unsigned int size);
te_errno tapi_cfg_xen_dom_u_get_ip_addr(char const* ta, char const* dom_u, struct sockaddr* ip_addr);
te_errno tapi_cfg_xen_dom_u_set_ip_addr(char const* ta, char const* dom_u, struct sockaddr const* ip_addr);
te_errno tapi_cfg_xen_dom_u_get_mac_addr(char const* ta, char const* dom_u, uint8_t* mac);
te_errno tapi_cfg_xen_dom_u_set_mac_addr(char const* ta, char const* dom_u, uint8_t const* mac);
te_errno tapi_cfg_xen_dom_u_add_bridge(char const* ta, char const* dom_u, char const* bridge, char const* if_name);
te_errno tapi_cfg_xen_dom_u_del_bridge(char const* ta, char const* dom_u, char const* bridge);
te_errno tapi_cfg_xen_dom_u_bridge_get_if_name(char const* ta, char const* dom_u, char const* bridge, char* if_name);
te_errno tapi_cfg_xen_dom_u_bridge_set_if_name(char const* ta, char const* dom_u, char const* bridge, char const* if_name);
te_errno tapi_cfg_xen_dom_u_bridge_get_ip_addr(char const* ta, char const* dom_u, char const* bridge, struct sockaddr* ip_addr);
te_errno tapi_cfg_xen_dom_u_bridge_set_ip_addr(char const* ta, char const* dom_u, char const* bridge, struct sockaddr const* ip_addr);
te_errno tapi_cfg_xen_dom_u_bridge_get_mac_addr(char const* ta, char const* dom_u, char const* bridge, uint8_t* mac);
te_errno tapi_cfg_xen_dom_u_bridge_set_mac_addr(char const* ta, char const* dom_u, char const* bridge, uint8_t const* mac);
te_errno tapi_cfg_xen_dom_u_bridge_get_accel(char const* ta, char const* dom_u, char const* bridge, te_bool* accel);
te_errno tapi_cfg_xen_dom_u_bridge_set_accel(char const* ta, char const* dom_u, char const* bridge, te_bool accel);
te_errno tapi_cfg_xen_dom_u_migrate(char const* from_ta, char const* to_ta, char const* dom_u, char const* host, te_bool live);

Detailed Documentation

Forward declaration to avoid header inclusion

Global Functions

te_errno tapi_cfg_xen_get_path(char const* ta, char* path)

Get XEN storage path for templates of domU disk images and where domUs are cloned.

Parameters:

ta

Test Agent running withing dom0

path

Storage to accept path

Returns:

Status code

te_errno tapi_cfg_xen_set_path(char const* ta, char const* path)

Set XEN storage path for templates of domU disk images and where domUs are cloned.

Parameters:

ta

Test Agent running withing dom0

path

New XEN path

Returns:

Status code

te_errno tapi_cfg_xen_get_rcf_port(char const* ta, unsigned int* port)

Get IP address of ‘eth0’ of domU.

Parameters:

ta

Test Agent running withing dom0

dom_u

Name of domU to get status of

size

Storage to accept domU ‘eth0’ memory size

Returns:

Status code

te_errno tapi_cfg_xen_set_rcf_port(char const* ta, unsigned int port)

Set IP address of ‘eth0’ of domU.

Parameters:

ta

Test Agent running withing dom0

dom_u

Name of domU to get memory size of

size

New domU ‘eth0’ memory size

Returns:

Status code

te_errno tapi_cfg_xen_get_rpc_br(char const* ta, char* br_name)

Get the name of the bridge that is used for RCF/RPC communication.

Parameters:

ta

Test Agent running withing dom0

dom_u

Name of domU to get bridge name of

br_name

Storage to accept bridge name

Returns:

Status code

te_errno tapi_cfg_xen_set_rpc_br(char const* ta, char const* br_name)

Set the name of the bridge that is used for RCF/RPC communication.

Parameters:

ta

Test Agent running withing dom0

br_name

New domU bridge name

Returns:

Status code

te_errno tapi_cfg_xen_get_rpc_if(char const* ta, char* if_name)

Get the name of the interface that is used for RCF/RPC communication.

Parameters:

ta

Test Agent running withing dom0

if_name

Storage to accept interface name

Returns:

Status code

te_errno tapi_cfg_xen_set_rpc_if(char const* ta, char const* if_name)

Set the name of the interface that is used for RCF/RPC communication.

Parameters:

ta

Test Agent running withing dom0

if_name

New domU interface name

Returns:

Status code

te_errno tapi_cfg_xen_get_base_mac_addr(char const* ta, uint8_t* mac)

Get MAC address that is used as base one for domUs.

Parameters:

ta

Test Agent running withing dom0

mac

Storage to accept base MAC address

Returns:

Status code

te_errno tapi_cfg_xen_set_base_mac_addr(char const* ta, uint8_t const* mac)

Set MAC address that is used as base one for domUs.

Parameters:

ta

Test Agent running withing dom0

mac

New base MAC address

Returns:

Status code

te_errno tapi_cfg_xen_get_accel(char const* ta, te_bool* accel)

Get dom0 acceleration.

Parameters:

ta

Test Agent running withing dom0

accel

Storage to accept dom0 acceleration

Returns:

Status code

te_errno tapi_cfg_xen_set_accel(char const* ta, te_bool accel)

Set dom0 acceleration.

Parameters:

ta

Test Agent running withing dom0

accel

New acceleration value

Returns:

Status code

te_errno tapi_cfg_xen_set_init(char const* ta, te_bool init)

Perform dom0 initialization/cleanup.

Parameters:

ta

Test Agent running withing dom0

init

Initialization (TRUE) or clean up (FALSE)?

Returns:

Status code

te_errno tapi_cfg_xen_create_dom_u(char const* ta, char const* dom_u)

Create new domU.

Parameters:

ta

Test Agent running withing dom0

dom_u

Name of domU to create

Returns:

Status code

te_errno tapi_cfg_xen_destroy_dom_u(char const* ta, char const* dom_u)

Destroy new domU.

Parameters:

ta

Test Agent running withing dom0

dom_u

Name of domU to destroy

Returns:

Status code

te_errno tapi_cfg_xen_dom_u_get_status(char const* ta, char const* dom_u, char* status)

Get status of domU.

Parameters:

ta

Test Agent running withing dom0

dom_u

Name of domU to get status of

status

Storage to accept status

Returns:

Status code

te_errno tapi_cfg_xen_dom_u_set_status(char const* ta, char const* dom_u, char const* status)

Set status of domU.

Parameters:

ta

Test Agent running withing dom0

dom_u

Name of domU to get status of

status

New domU status

Returns:

Status code

te_errno tapi_cfg_xen_dom_u_get_memory_size(char const* ta, char const* dom_u, unsigned int* size)

Get memory size that wiil be specified in creation of domU.

Parameters:

ta

Test Agent running withing dom0

dom_u

Name of domU to get status of

size

Storage to accept domU memory size

Returns:

Status code

te_errno tapi_cfg_xen_dom_u_set_memory_size(char const* ta, char const* dom_u, unsigned int size)

Set memory size that wiil be specified in creation of domU.

Parameters:

ta

Test Agent running withing dom0

dom_u

Name of domU to get memory size of

size

New domU memory size

Returns:

Status code

te_errno tapi_cfg_xen_dom_u_get_ip_addr(char const* ta, char const* dom_u, struct sockaddr* ip_addr)

Get IP address of the interface that is used for RCF/RPC communication.

Parameters:

ta

Test Agent running withing dom0

dom_u

Name of domU to get IP address of

ip_addr

Storage to accept domU ‘eth0’ IP address

Returns:

Status code

te_errno tapi_cfg_xen_dom_u_set_ip_addr(char const* ta, char const* dom_u, struct sockaddr const* ip_addr)

Set IP address of the interface that is used for RCF/RPC communication.

Parameters:

ta

Test Agent running withing dom0

dom_u

Name of domU to get IP address of

ip_addr

New domU ‘eth0’ IP address

Returns:

Status code

te_errno tapi_cfg_xen_dom_u_get_mac_addr(char const* ta, char const* dom_u, uint8_t* mac)

Get MAC address of ‘eth0’ of domU.

Parameters:

ta

Test Agent running withing dom0

dom_u

Name of domU to get MAC address of

mac

Storage to accept domU ‘eth0’ MAC address

Returns:

Status code

te_errno tapi_cfg_xen_dom_u_set_mac_addr(char const* ta, char const* dom_u, uint8_t const* mac)

Set MAC address of ‘eth0’ of domU.

Parameters:

ta

Test Agent running withing dom0

dom_u

Name of domU to get MAC address of

mac

New domU ‘eth0’ MAC address

Returns:

Status code

te_errno tapi_cfg_xen_dom_u_add_bridge(char const* ta, char const* dom_u, char const* bridge, char const* if_name)

Add new bridge to domU.

Parameters:

ta

Test Agent running withing dom0

dom_u

Name of domU to create

bridge

Bridge name

if_name

Interface name

Returns:

Status code

te_errno tapi_cfg_xen_dom_u_del_bridge(char const* ta, char const* dom_u, char const* bridge)

Delete bridge from domU.

Parameters:

ta

Test Agent running withing dom0

dom_u

Name of domU to destroy

bridge

Bridge name

Returns:

Status code

te_errno tapi_cfg_xen_dom_u_bridge_get_if_name(char const* ta, char const* dom_u, char const* bridge, char* if_name)

Get the name of the interface that is used for testing communication.

Parameters:

ta

Test Agent running withing dom0

dom_u

Name of domU to get bridge name of

bridge

DomU bridge name

if_name

Storage to accept interface name

Returns:

Status code

te_errno tapi_cfg_xen_dom_u_bridge_set_if_name(char const* ta, char const* dom_u, char const* bridge, char const* if_name)

Set the name of the interface that is used for testing communication.

Parameters:

ta

Test Agent running withing dom0

dom_u

Name of domU to get bridge name of

bridge

DomU bridge name

if_name

Interface name

Returns:

Status code

te_errno tapi_cfg_xen_dom_u_bridge_get_ip_addr(char const* ta, char const* dom_u, char const* bridge, struct sockaddr* ip_addr)

Get IP address of the interface that is used for RCF/RPC communication.

Parameters:

ta

Test Agent running withing dom0

dom_u

Name of domU

bridge

Name of the bridge interface is added to

ip_addr

Storage to accept IP address

Returns:

Status code

te_errno tapi_cfg_xen_dom_u_bridge_set_ip_addr(char const* ta, char const* dom_u, char const* bridge, struct sockaddr const* ip_addr)

Set IP address of the interface that is used for RCF/RPC communication.

Parameters:

ta

Test Agent running withing dom0

dom_u

Name of domU to get IP address of

ip_addr

New domU ‘eth0’ IP address

Returns:

Status code

te_errno tapi_cfg_xen_dom_u_bridge_get_mac_addr(char const* ta, char const* dom_u, char const* bridge, uint8_t* mac)

Get MAC address of ‘eth0’ of domU.

Parameters:

ta

Test Agent running withing dom0

dom_u

Name of domU to get MAC address of

mac

Storage to accept domU ‘eth0’ MAC address

Returns:

Status code

te_errno tapi_cfg_xen_dom_u_bridge_set_mac_addr(char const* ta, char const* dom_u, char const* bridge, uint8_t const* mac)

Set MAC address of ‘eth0’ of domU.

Parameters:

ta

Test Agent running withing dom0

dom_u

Name of domU to get MAC address of

mac

New domU ‘eth0’ MAC address

Returns:

Status code

te_errno tapi_cfg_xen_dom_u_bridge_get_accel(char const* ta, char const* dom_u, char const* bridge, te_bool* accel)

Get acceleration specification sign of a tested interface of domU.

Parameters:

ta

Test Agent running withing dom0

dom_u

Name of domU to get MAC address of

accel

Storage to accept domU tested iface accel sign

Returns:

Status code

te_errno tapi_cfg_xen_dom_u_bridge_set_accel(char const* ta, char const* dom_u, char const* bridge, te_bool accel)

Set acceleration specification sign of a tested interface of domU.

Parameters:

ta

Test Agent running withing dom0

dom_u

Name of domU to get tested iface accel sign of

accel

New domU tested iface accel sign

Returns:

Status code

te_errno tapi_cfg_xen_dom_u_migrate(char const* from_ta, char const* to_ta, char const* dom_u, char const* host, te_bool live)

Set MAC address of ‘eth0’ of domU.

Parameters:

from_ta

Test Agent running withing source dom0

to_ta

Test Agent running withing target dom0

dom_u

Name of domU to migrate

host

Host name or IP address to migrate to

live

Kind of migration to perform (live/non-live)

Returns:

Status code