|
| 1 | +--- |
| 2 | +# generated by https://github.com/hashicorp/terraform-plugin-docs |
| 3 | +page_title: "iosxr_l2vpn_pw_class Resource - terraform-provider-iosxr" |
| 4 | +subcategory: "L2VPN" |
| 5 | +description: |- |
| 6 | + This resource can manage the L2VPN PW Class configuration. |
| 7 | +--- |
| 8 | + |
| 9 | +# iosxr_l2vpn_pw_class (Resource) |
| 10 | + |
| 11 | +This resource can manage the L2VPN PW Class configuration. |
| 12 | + |
| 13 | +## Example Usage |
| 14 | + |
| 15 | +```terraform |
| 16 | +resource "iosxr_l2vpn_pw_class" "example" { |
| 17 | + name = "PWC1" |
| 18 | + encapsulation_mpls = true |
| 19 | + encapsulation_mpls_transport_mode_ethernet = true |
| 20 | + encapsulation_mpls_transport_mode_vlan = false |
| 21 | + encapsulation_mpls_transport_mode_passthrough = false |
| 22 | + encapsulation_mpls_load_balancing_pw_label = true |
| 23 | + encapsulation_mpls_load_balancing_flow_label_both = true |
| 24 | + encapsulation_mpls_load_balancing_flow_label_both_static = true |
| 25 | + encapsulation_mpls_load_balancing_flow_label_code_one7 = true |
| 26 | + encapsulation_mpls_load_balancing_flow_label_code_one7_disable = true |
| 27 | +} |
| 28 | +``` |
| 29 | + |
| 30 | +<!-- schema generated by tfplugindocs --> |
| 31 | +## Schema |
| 32 | + |
| 33 | +### Required |
| 34 | + |
| 35 | +- `name` (String) Pseudowire class template |
| 36 | + |
| 37 | +### Optional |
| 38 | + |
| 39 | +- `delete_mode` (String) Configure behavior when deleting/destroying the resource. Either delete the entire object (YANG container) being managed, or only delete the individual resource attributes configured explicitly and leave everything else as-is. Default value is `all`. |
| 40 | + - Choices: `all`, `attributes` |
| 41 | +- `device` (String) A device name from the provider configuration. |
| 42 | +- `encapsulation_mpls` (Boolean) Set pseudowire encapsulation to MPLS |
| 43 | +- `encapsulation_mpls_load_balancing_flow_label_both` (Boolean) Insert/Discard Flow label on transmit/recceive |
| 44 | +- `encapsulation_mpls_load_balancing_flow_label_both_static` (Boolean) Set Flow label parameters statically |
| 45 | +- `encapsulation_mpls_load_balancing_flow_label_code_one7` (Boolean) Legacy code value |
| 46 | +- `encapsulation_mpls_load_balancing_flow_label_code_one7_disable` (Boolean) Disables sending code 17 TLV |
| 47 | +- `encapsulation_mpls_load_balancing_flow_label_receive` (Boolean) Discard Flow label on receive |
| 48 | +- `encapsulation_mpls_load_balancing_flow_label_receive_static` (Boolean) Set Flow label parameters statically |
| 49 | +- `encapsulation_mpls_load_balancing_flow_label_transmit` (Boolean) Insert Flow label on transmit |
| 50 | +- `encapsulation_mpls_load_balancing_flow_label_transmit_static` (Boolean) Set Flow label parameters statically |
| 51 | +- `encapsulation_mpls_load_balancing_pw_label` (Boolean) Enable PW VC label based load balancing |
| 52 | +- `encapsulation_mpls_transport_mode_ethernet` (Boolean) Ethernet port mode |
| 53 | +- `encapsulation_mpls_transport_mode_passthrough` (Boolean) passthrough incoming tags |
| 54 | +- `encapsulation_mpls_transport_mode_vlan` (Boolean) Vlan tagged mode |
| 55 | + |
| 56 | +### Read-Only |
| 57 | + |
| 58 | +- `id` (String) The path of the object. |
| 59 | + |
| 60 | +## Import |
| 61 | + |
| 62 | +Import is supported using the following syntax: |
| 63 | + |
| 64 | +```shell |
| 65 | +terraform import iosxr_l2vpn_pw_class.example "Cisco-IOS-XR-um-l2vpn-cfg:/l2vpn/pw-classes/pw-class[pw-class-name=PWC1]" |
| 66 | +``` |
0 commit comments