Create Controller With Custom Connection
Creates a controller instance and registers it in the diagnostic manager.
Arguments Description
name (str): Controller name. diag_address (str): The target adress. diag_protocol (str): The diag protocol. *kwargs : Parameters for the custom connection such as: src_ip_addr, dest_ip_addr, source_addr, inner_vlan, outer_vlan…
Returns
The Controller instance (EthDiagController or CanDiagController)
Example
${controller}= Create Controller Test_Controller ${TARGET_ADDR} ${DIAG_PROTOCOL}… src_ip_addr=${SRC_IP} … dest_ip_addr=${DEST_IP} … source_addr=${SOURCE_ADDR} … inner_vlan=${INNER_VLAN} … outer_vlan=${OUTER_VLAN}
Note
The parameters ${TARGET_ADDR}, ${DIAG_PROTOCOL}, ${SRC_IP}, ${DEST_IP}, etc …
are declared as variables in the robot testcase - These parameters are not required and their default values are defined as below:
src_mac_addr (str): Defaults to “aa:bb:cc:dd:ee:ff”
port_src (int): Defaults to 0
dest_port (int): Defaults to 13400
protocol_version (int): Defaults to 3
is_ipv6 (bool): Defaults to False