Skip to content

Commit 9ec47bf

Browse files
committed
update documentation
1 parent 3717cad commit 9ec47bf

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

website/docs/r/nic.html.markdown

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,17 @@ resource "cloudstack_nic" "test" {
2222
}
2323
```
2424

25+
With MAC address:
26+
27+
```hcl
28+
resource "cloudstack_nic" "test" {
29+
network_id = "6eb22f91-7454-4107-89f4-36afcdf33021"
30+
ip_address = "192.168.1.1"
31+
mac_address = "02:1a:4b:3c:5d:6e"
32+
virtual_machine_id = "f8141e2f-4e7e-4c63-9362-986c908b7ea7"
33+
}
34+
```
35+
2536
## Argument Reference
2637

2738
The following arguments are supported:
@@ -32,6 +43,10 @@ The following arguments are supported:
3243
* `ip_address` - (Optional) The IP address to assign to the NIC. Changing this
3344
forces a new resource to be created.
3445

46+
* `mac_address` - (Optional) The MAC address to assign to the NIC. If not specified,
47+
a MAC address will be automatically generated. Changing this forces a new resource
48+
to be created.
49+
3550
* `virtual_machine_id` - (Required) The ID of the virtual machine to which to
3651
attach the NIC. Changing this forces a new resource to be created.
3752

@@ -41,3 +56,4 @@ The following attributes are exported:
4156

4257
* `id` - The ID of the NIC.
4358
* `ip_address` - The assigned IP address.
59+
* `mac_address` - The assigned MAC address.

0 commit comments

Comments
 (0)