8.2.2.2. Management Address
8.2.2.2.1. IP Address
The network configuration parameters of the chassis management port.
Corresponding low-level API class: C_IPADDRESS
import ipaddress
# IP Address
await tester.management_interface.ip_address.set(
ipv4_address=ipaddress.IPv4Address("10.10.10.10"),
subnet_mask=ipaddress.IPv4Address("255.255.255.0"),
gateway=ipaddress.IPv4Address("10.10.10.1"))
resp = await tester.management_interface.ip_address.get()
resp.ipv4_address
resp.subnet_mask
resp.gateway
8.2.2.2.2. MAC Address
Get the MAC address for the chassis management port.
Corresponding low-level API class: C_MACADDRESS
# MAC Address
resp = await tester.management_interface.macaddress.get()
resp.mac_address
8.2.2.2.3. Hostname
Get or set the chassis hostname used when DHCP is enabled.
Corresponding low-level API class: C_HOSTNAME
# Hostname
await tester.management_interface.hostname.set(hostname="name")
resp = await tester.management_interface.hostname.get()
resp.hostname
8.2.2.2.4. DHCP
Controls whether the chassis will use DHCP to get the management IP address.
Corresponding low-level API class: C_DHCP
# DHCP
await tester.management_interface.dhcp.set(on_off=enums.OnOff.ON)
await tester.management_interface.dhcp.set_on()
await tester.management_interface.dhcp.set(on_off=enums.OnOff.OFF)
await tester.management_interface.dhcp.set_off()
resp = await tester.management_interface.dhcp.get()
resp.on_off