L2 Virtual Ethernet Clients
dvn_l2veth
create, update, or destroy DVN L2 Virtual Ethernet Clients
Synopsis
- Create a new L2VethClient
- Delete an existing L2VethClient
- Update an exiting L2VethClient
Options
| Parameter | Required? | Default | Choices | Comments |
|---|---|---|---|---|
| username | service-prov administrator username. If not specified as a parameter, the environment variable DVNREST_USER will be used. | |||
| password | service-prov password If not specified as a parameter, the environment variable DVNREST_PASSWORD will be used. | |||
| url | service-prov url. If not specified as a parameter, the environment variable DVNREST_URL will be used. | |||
| validate_certs | True | Check certs. Use false to allow self-signed. If not specified as a parameter, the environment variable VALIDATE_CERTS will be used. | ||
| state | present |
|
Specify state of the L2Veth Client | |
| tag_id | yes | Unique ID for L2 service group | ||
| vtc_id | yes | Unique ID for VTC object | ||
| local_ip | 0.0.0.0 | Static IP address for L2VethClient. Only applies if DHCP is disabled. | ||
| url | service-prov url. If not specified as a parameter, the environment variable DVNREST_URL will be used. | |||
| local_netmask | 255.255.255.0 | Netmask for L2VethClient. Only applies if DHCP is disabled. | ||
| dhcp | True | Enable/disable DHCP for L2VethClient |
Examples
- name: change l2veth
dvn_l2veth:
tag_id: test-sg
vtc_id: test-vtc
dhcp: off
local_ip: 10.50.2.22