hmc_add_network_adapter
Add a Virtual Ethernet adapter to an LPAR, specifying the LPAR and VLAN ID to connect it to a virtual network.
Instructions
Add a Virtual Ethernet (client network) adapter to an LPAR.
lpar_name_or_uuid: accepts either a PartitionName or a UUID (find it with hmc_lpars). port_vlan_id is the PVID / VLAN the adapter connects to (this is how the adapter is attached to a VirtualNetwork — match the network's VLAN ID and vSwitch). slot_number is the virtual slot (auto-assigned if omitted). tagged=True makes it a VLAN-tagged (trunking) adapter; mac_address pins the MAC (otherwise the HMC generates one). Modifying a running LPAR is a DLPAR operation and needs active RMC.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tagged | No | ||
| mac_address | No | ||
| slot_number | No | ||
| port_vlan_id | Yes | ||
| lpar_name_or_uuid | Yes | ||
| virtual_switch_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |