cpm_interface_config
Set network interface parameters in WTI OOB and PDU devices
Collection: wti.remote
Full Name: wti.remote.cpm_interface_config
Synopsis
Set network interface parameters in WTI OOB and PDU devices
Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| cpm_url | string | yes | WTI device host or host:port | |
| cpm_username | string | yes | WTI username; an empty username selects an API token | |
| cpm_password | string | yes | WTI password or API token | |
| interface | string | Ethernet port to configure | ||
| negotiation | int | Link negotiation mode | ||
| ipv4address | string | IPv4 address | ||
| ipv4netmask | string | IPv4 netmask | ||
| ipv4gateway | string | IPv4 gateway | ||
| ipv4dhcpenable | int | Enable the IPv4 DHCP client | ||
| ipv4dhcphostname | string | DHCP client hostname | ||
| ipv4dhcplease | int | DHCP lease mode | ||
| ipv4dhcpobdns | int | Obtain DNS from DHCP | ||
| ipv4dhcpupdns | int | Update DNS from DHCP | ||
| ipv4dhcpdefgateway | int | Obtain the default gateway from DHCP | ||
| ipv6address | string | IPv6 address | ||
| ipv6subnetprefix | string | IPv6 subnet prefix | ||
| ipv6gateway | string | IPv6 gateway | ||
| use_https | bool | true | Use HTTPS instead of HTTP | |
| validate_certs | bool | true | Validate the device TLS certificate | |
| use_proxy | bool | false | Observe HTTP proxy environment variables |
Example
yaml
- name: Set eth0 IPv4 parameters on a WTI device
wti.remote.cpm_interface_config:
cpm_url: nonexist.wti.com
cpm_username: super
cpm_password: super
interface: eth0
ipv4address: 192.168.0.14
ipv4netmask: 255.255.255.0
ipv4gateway: 192.168.0.1
negotiation: 0
use_https: true
validate_certs: false