|
| 1 | +--- |
| 2 | +name: Device HA Pair Physical Interface MAC Address |
| 3 | +rest_endpoint: /api/fmc_config/v1/domain/{DOMAIN_UUID}/devicehapairs/ftddevicehapairs/%v/failoverinterfacemacaddressconfigs |
| 4 | +doc_category: Devices |
| 5 | +test_tags: [TF_VAR_device_ha_id, TF_VAR_interface_name] |
| 6 | +skip_minimum_test: true |
| 7 | +attributes: |
| 8 | + - tf_name: device_id |
| 9 | + type: String |
| 10 | + reference: true |
| 11 | + description: Id of the parent HA Pair device. |
| 12 | + example: 76d24097-41c4-4558-a4d0-a8c07ac08470 |
| 13 | + test_value: var.device_ha_id |
| 14 | + requires_replace: true |
| 15 | + - model_name: type |
| 16 | + type: String |
| 17 | + computed: true |
| 18 | + description: Type of the resource; This is always `FailoverInterfaceMacAddressConfig`. |
| 19 | + # General |
| 20 | + - model_name: name |
| 21 | + data_path: ["physicalInterface"] |
| 22 | + tf_name: interface_name |
| 23 | + mandatory: true |
| 24 | + description: Interface physical name. |
| 25 | + type: String |
| 26 | + example: "GigabitEthernet0/0" |
| 27 | + data_source_query: true |
| 28 | + requires_replace: true |
| 29 | + test_value: data.fmc_device_physical_interface.test.name |
| 30 | + - model_name: id |
| 31 | + data_path: ["physicalInterface"] |
| 32 | + tf_name: interface_id |
| 33 | + mandatory: true |
| 34 | + description: Id of the interface. |
| 35 | + type: String |
| 36 | + example: "76d24097-41c4-4558-a4d0-a8c07ac08470" |
| 37 | + requires_replace: true |
| 38 | + test_value: data.fmc_device_physical_interface.test.id |
| 39 | + - model_name: type |
| 40 | + data_path: ["physicalInterface"] |
| 41 | + type: String |
| 42 | + value: "PhysicalInterface" |
| 43 | + - model_name: failoverActiveMac |
| 44 | + tf_name: active_mac_address |
| 45 | + mandatory: true |
| 46 | + type: String |
| 47 | + description: MAC address of the active interface. |
| 48 | + example: c460.15e4.0edd |
| 49 | + - model_name: failoverStandbyMac |
| 50 | + tf_name: standby_mac_address |
| 51 | + mandatory: true |
| 52 | + type: String |
| 53 | + description: MAC address of the standby interface. |
| 54 | + example: c460.15e4.0ed0 |
| 55 | + |
| 56 | +test_prerequisites: |- |
| 57 | + data "fmc_device_physical_interface" "test" { |
| 58 | + device_id = var.device_id |
| 59 | + name = var.interface_name |
| 60 | + } |
| 61 | +
|
| 62 | + variable "device_ha_id" { default = null } // tests will set $TF_VAR_device_ha_id |
| 63 | + variable "interface_name" {default = null} // tests will set $TF_VAR_interface_name |
0 commit comments