### Complete Example Source: https://github.com/netascode/terraform-aci-nac-aci/blob/main/modules/terraform-aci-redirect-backup-policy/examples/complete/README.md This is a complete example of how to use the terraform-aci-redirect-backup-policy module. ```bash $ terraform init $ terraform plan $ terraform apply ``` ```hcl module "aci_redirect_backup_policy" { source = "netascode/nac-aci/aci//modules/terraform-aci-redirect-backup-policy" version = ">= 0.8.0" tenant = "ABC" name = "REDIRECT1" description = "My Description" l3_destinations = [{ name = "DEST1" description = "L3 description" ip = "1.1.1.1" ip_2 = "1.1.1.2" mac = "00:01:02:03:04:05" redirect_health_group = "HEALTH_GRP1" }] } ``` -------------------------------- ### Multi-device mode example Source: https://github.com/netascode/terraform-aci-nac-aci/blob/main/modules/terraform-aci-device-selection-policy/examples/complete/README.md Terraform configuration for a multi-device mode setup. ```hcl # Multi-device mode example module "aci_device_selection_policy_multi" { source = "netascode/nac-aci/aci//modules/terraform-aci-device-selection-policy" version = "> 1.2.0" tenant = "ABC" contract = "CON2" service_graph_template = "SGT2" devices = [ { name = "FW1" tenant = "COMMON" node_name = "FW1_NODE" consumer = { l3_destination = true permit_logging = false logical_interface = "CONSUMER_INT" redirect_policy = { name = "REDIR_CONSUMER" tenant = "ABC" } } provider = { l3_destination = true permit_logging = false logical_interface = "PROVIDER_INT" redirect_policy = { name = "REDIR_PROVIDER" tenant = "ABC" } } }, { name = "LB1" node_name = "LB1_NODE" consumer = { logical_interface = "LB_CONSUMER_INT" bridge_domain = { name = "BD_CONSUMER" tenant = "ABC" } } provider = { logical_interface = "LB_PROVIDER_INT" external_endpoint_group = { tenant = "ABC" l3out = "L3OUT1" name = "EXTEPG1" redistribute = { bgp = true connected = true } } } } ] } ``` -------------------------------- ### Complete Example Source: https://github.com/netascode/terraform-aci-nac-aci/blob/main/modules/terraform-aci-tenant-netflow-record/examples/complete/README.md This is a complete example of the tenant netflow record module. ```bash $ terraform init $ terraform plan $ terraform apply ``` ```hcl module "aci_tenant_netflow_record" { source = "netascode/nac-aci/aci//modules/terraform-aci-tenant-netflow-record" version = "> 1.1.0" name = "RECORD1" description = "Netflow record 1" match_parameters = ["dst-ip", "src-ip"] } ``` -------------------------------- ### Complete Keyring Module Example Source: https://github.com/netascode/terraform-aci-nac-aci/blob/main/modules/terraform-aci-keyring/examples/complete/README.md Example of a complete ACI Keyring Terraform module configuration. ```hcl module "aci_keyring" { source = "netascode/nac-aci/aci//modules/terraform-aci-keyring" version = ">= 0.8.0" name = "KEYRING1" description = "My Description" ca_certificate = "CA1" certificate = <<-EOT -----BEGIN CERTIFICATE----- MIICyzCCAbMCCQCUc/SvuffglTANBgkqhkiG9w0BAQsFADAvMQswCQYDVQQGEwJE RTERMA8GA1UEBwwITGFMYUxhbmQxDTALBgNVBAoMBENTQ08wHhcNMjAwNzAxMTQw ODI1WhcNMjYwMjA4MTQwODI1WjAgMQswCQYDVQQGEwJERTERMA8GA1UEBwwITGFM YUxhbmQwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQC2KTuvhTSK3bYC 8thn47aI6Hj0HLLDkqS72M7KSF6kCEFn2lxC8yKQ1PpHEyRxEeqKD5+V3ndC5Nun wqRPwA+qHyAJ+qKMqrmbE98KxuKeavyGfroLvMYRb7UUnCPsLOUpwimm3jWw2Jvz Mevb8q5kXJuPPWGIZ6DoUliJKRwiW62qlY/zq+wbweij4NzzMM+Xiaw9KzGnn0GY meeKEDdO4Q0gLo89FLXpoEBptfhqYWWqrlQNYUizew7MCKhYNjOn8D/clvD7Qynn kFlHEnAugR8TWgXiujZAZuUFvImu++KDdzCX1PTa7Q1NN1hjuaK1WgEqeUEQWmOD 68FdILFrAgMBAAEwDQYJKoZIhvcNAQELBQADggEBAA7BcY4rMsc2kggoZ6MQv0Pc lPpM+cowoRWhUaKMveLrUJoAtUshLn8MneDWopPFx2tXWw+RfBlsbcQUWkonEFb1 oVdbBIoLT3VH/VKDUNdYa43KuugKe2nCba7Fpya54HCC2jtIv+W7SIZuAhu1937x OF3O8itHhBMW5/teX/Uo3JPjE4JoFPoQ7P6KmertvWAIFvQB/1oFQhJ6rmkNYjKY f4n71cuGmduTWzKv7UoG4nf5YoKC0tZQfOCYU9W7ywnvJThaSN0ZUf3Dqa2WB4Zx 91bgkeI6vpJLPnjyAsmbNRePNj1xgXC5YMcN5LiGhsMiep9yBqJR1Knq80J0DwE= -----END CERTIFICATE----- EOT private_key = <<-EOT -----BEGIN RSA PRIVATE KEY----- MIIEpAIBAAKCAQEAtik7r4U0it22AvLYZ+O2iOh49Byyw5Kku9jOykhepAhBZ9pc QvMikNT6RxMkcRHqig+fld53QuTbp8KkT8APqh8gCfqijKq5mxPfCsbinmr8hn66 C7zGEW+1FJwj7CzlKcIppt41sNib8zHr2/KuZFybjz1hiGeg6FJYiSkcIlutqpWP 86vsG8Hoo+Dc8zDPl4msPSsxp59BmJnnihA3TuENIC6PPRS16aBAabX4amFlqq5U DWFIs3sOzAioWDYzp/A/3Jbw+0Mp55BZRxJwLoEfE1oF4ro2QGblBbyJrvvig3cw l9T02u0NTTdYY7mitVoBKnlBEFpjg+vBXSCxawIDAQABAoIBAQCKtjFWAdg12ojM DAKQcc1Ayc25DdVuqc85n+owDRXMUOEFZTkWXjC3GwcOclwwodT4ltcN957XWJCP Wd9nPzhuck8iajG3bhXyKhqRCUvuGEf9XqjrYS9ufaLlc9TC9pj2yHyRLeqypO90 LFKPZWg40nA+jh4kEc1su6/hmmVrHxwUdf7bdZwYqBW3xedQGWHZtZxmbY8pLT7n iJnv/EC8mrAQdxiNOcO9z2aWQY14hBsqD2hQkjSSVuhAnzeonU9VrCg0v/VQmX+/ VhGF48aVQbG1yfh0IxBbX2tbl1tSvh2Vtb6r29mywKRDaKmxRd/Qr6iImSM8A/fz m6UpLTzRAoGBAO/zIpxan454J9qh4qaPybhdBwfUMr4HAJtUiWJnLJ2CMvJa8rOA Xf7QS9ddTE78rUSe1dS2a/RUJ/a1JwI5rj3Un2C9L13YXmWwRHolsjz/lC1pDC87 sqDG/PT4y5qxQ8r5zJ5+XaJxN37ojtHZipfIYuVAlH+whlInWoUgq6dzAoGBAMJY iG7sxLx8mXE+U2630HIbTw/jZwKUVPcjMMYDqc97qfDgAVFN3lkKxqHjSW7bUsdF DLiwuzlluVuRiAFRFwy256P8yHhfHigCzKuFLGhXuzTGdn7gdvlKsXfgPKOIMcHx lpAPU7lIIh3xmoVUWWtHqXGMXqY2Jz3f5BJWWaApAoGAHvAYbFR68iGn8dahpJwx hCXqfCXuDPZWK7DwrdFjvUNGUl1Lob1RYUN2I+SRrDWEGa7pHy4OKUiYhoTA7NaH Es3RZuW9r7nwIehiS+WEX70MW/aJbaWi2HwPrX5Osjlc5lTi/ySH6iPy5dgSYhhM eFmL9scm3nfiOcF9OGEIAOUCgYBmrN9nuy81ZZ6rdYIevH4jysm6WynQ8wzwhGcA Nm9AbtUZrT8E9V7DLC5E2Q+yway6GoDeEoDXkiabegegqnbDAN7ghGxlK9uCx/fZ pkIP3knJWBDCd1Rj4FJiQtXGj+25ySkCcxaIjNN5fmtkhWu4gePDWaWnqnSQ+/hC t9wiAQKBgQCkVuIjhK82p3OJXZPaq8jrGy8hvHM02zj9tZxK98wDApafZBA4VRW+ KAh7qxM2mhQsDwKplp5noW9pXlQfgBniDmCFK/4xcEaD+UwYF/Ao7RlLjLL2MfsP 40igT6oadbESZNx815FBttdPkKc3zWRgv40MdZNdTQ9BlShqN9jTQw== -----END RSA PRIVATE KEY----- EOT } ``` -------------------------------- ### Legacy single-device mode example Source: https://github.com/netascode/terraform-aci-nac-aci/blob/main/modules/terraform-aci-device-selection-policy/examples/complete/README.md Terraform configuration for a legacy single-device mode setup. ```hcl # Legacy single-device mode example module "aci_device_selection_policy" { source = "netascode/nac-aci/aci//modules/terraform-aci-device-selection-policy" version = ">= 0.8.0" tenant = "ABC" contract = "CON1" service_graph_template = "SGT1" sgt_device_name = "DEV1" consumer_l3_destination = true consumer_permit_logging = true consumer_logical_interface = "INT1" consumer_redirect_policy = "REDIR1" consumer_bridge_domain = "BD1" consumer_service_epg_policy = "SEPGP1" consumer_custom_qos_policy = "QOSP1" provider_l3_destination = true provider_permit_logging = true provider_logical_interface = "INT2" provider_external_endpoint_group = "EXTEPG1" provider_external_endpoint_group_l3out = "L3OUT1" provider_external_endpoint_group_redistribute_bgp = true provider_external_endpoint_group_redistribute_ospf = true provider_external_endpoint_group_redistribute_connected = true provider_external_endpoint_group_redistribute_static = true provider_service_epg_policy = "SEPGP1" provider_custom_qos_policy = "QOSP1" } ``` -------------------------------- ### Complete VRF Example Source: https://github.com/netascode/terraform-aci-nac-aci/blob/main/modules/terraform-aci-vrf/examples/complete/README.md This is a complete example of how to configure a VRF using the terraform-aci-vrf module. ```bash $ terraform init $ terraform plan $ terraform apply ``` ```hcl module "aci_vrf" { source = "netascode/nac-aci/aci//modules/terraform-aci-vrf" version = ">= 0.9.2" tenant = "ABC" name = "VRF1" alias = "VRF1-ALIAS" description = "My Description" enforcement_direction = "egress" enforcement_preference = "unenforced" data_plane_learning = false preferred_group = true transit_route_tag_policy = "TRP1" endpoint_retention_policy = "ERP1" bgp_timer_policy = "BGP1" bgp_ipv4_address_family_context_policy = "BGP_AF_IPV4" bgp_ipv6_address_family_context_policy = "BGP_AF_IPV6" bgp_ipv4_import_route_target = ["route-target:as2-nn2:10:10", "route-target:as2-nn2:10:11"] bgp_ipv4_export_route_target = ["route-target:as2-nn2:10:12", "route-target:as2-nn2:10:13"] bgp_ipv6_import_route_target = ["route-target:as2-nn2:10:14", "route-target:as2-nn2:10:15"] bgp_ipv6_export_route_target = ["route-target:as2-nn2:10:16", "route-target:as2-nn2:10:17"] dns_labels = ["DNS1"] contract_consumers = ["CON1"] contract_providers = ["CON1"] contract_imported_consumers = ["I_CON1"] vxlan_enabled = false border_gateway_set = "GorderGatewayPolicySet" vxlan_import_route_map = "RM-Import" vxlan_export_route_map = "RM-Export" pim_enabled = true pim_mtu = 9200 pim_fast_convergence = true pim_strict_rfc = true pim_max_multicast_entries = 1000 pim_reserved_multicast_entries = "undefined" snmp_context_name = "SNMP-CTX" snmp_context_community_profiles = [ { name = "Community-Profile1" description = "Community Profile 1 Description" }, { name = "Community-Profile2" } ] pim_static_rps = [ { ip = "1.1.1.1" multicast_route_map = "TEST_RM" }, { ip = "1.1.1.2" } ] pim_fabric_rps = [ { ip = "2.2.2.1" multicast_route_map = "TEST_RM" }, { ip = "2.2.2.2" } ] pim_bsr_listen_updates = true pim_bsr_forward_updates = true pim_bsr_filter_multicast_route_map = "MCAST_RM1" pim_auto_rp_listen_updates = true pim_auto_rp_forward_updates = true pim_auto_rp_filter_multicast_route_map = "MCAST_RM2" pim_asm_shared_range_multicast_route_map = "MCAST_RM3" pim_asm_sg_expiry = 1800 pim_asm_sg_expiry_multicast_route_map = "MCAST_RM4" pim_asm_traffic_registry_max_rate = 10 pim_asm_traffic_registry_source_ip = "1.1.1.1" pim_ssm_group_range_multicast_route_map = "MCAST_RM5" pim_inter_vrf_policies = [ { tenant = "TEN2" vrf = "VRF1" multicast_route_map = "MCAST_RM6" } ] pim_igmp_ssm_translate_policies = [ { group_prefix = "228.0.0.0/8" source_address = "3.3.3.3" }, { group_prefix = "229.0.0.0/8" source_address = "4.4.4.4" } ] # EPG/BD Subnets (leakInternalSubnet) leaked_internal_subnets = [{ prefix = "10.1.0.0/16" public = true destinations = [{ description = "Leak to VRF2" tenant = "ABC" vrf = "VRF2" public = false }] }] # Internal Prefixes (leakInternalPrefix) - prefix-level scope requires APIC 6.1+ leaked_internal_prefixes = [{ prefix = "10.0.0.0/8" public = true from_prefix_length = 16 to_prefix_length = 24 destinations = [{ description = "Leak to VRF2" tenant = "ABC" vrf = "VRF2" public = false }] }] leaked_external_prefixes = [{ prefix = "2.2.0.0/16" from_prefix_length = 24 to_prefix_length = 32 destinations = [{ description = "Leak to VRF2" tenant = "ABC" vrf = "VRF2" }] }] route_summarization_policies = [{ name = "RSP1" nodes = [{ id = 105 pod = 2 }] subnets = [{ prefix = "1.1.0.0/16" bgp_route_summarization_policy = "ABC" }] }] } ``` -------------------------------- ### Complete Example Source: https://github.com/netascode/terraform-aci-nac-aci/blob/main/modules/terraform-aci-access-fex-interface-selector/examples/complete/README.md This is a complete example of how to use the terraform-aci-access-fex-interface-selector module. ```bash $ terraform init $ terraform plan $ terraform apply ``` ```hcl module "aci_access_fex_interface_selector" { source = "netascode/nac-aci/aci//modules/terraform-aci-access-fex-interface-selector" version = ">= 0.8.0" interface_profile = "FEX101" name = "1-2" policy_group_type = "access" policy_group = "ACC1" port_blocks = [{ name = "PB1" description = "My Description" from_port = 1 to_port = 2 }] } ``` -------------------------------- ### Complete Usage Example Source: https://github.com/netascode/terraform-aci-nac-aci/blob/main/modules/terraform-aci-access-leaf-interface-profile/examples/complete/README.md This is a complete usage example for the aci_access_leaf_interface_profile module. ```hcl module "aci_access_leaf_interface_profile" { source = "netascode/nac-aci/aci//modules/terraform-aci-access-leaf-interface-profile" version = ">= 0.8.0" name = "INT-PROF1" description = "Interface profile 101" } ``` -------------------------------- ### Complete Example Source: https://github.com/netascode/terraform-aci-nac-aci/blob/main/modules/terraform-aci-forwarding-scale-policy/examples/complete/README.md This example shows how to configure a forwarding scale policy with the terraform-aci-forwarding-scale-policy module. ```hcl module "aci_forwarding_scale_policy" { source = "netascode/nac-aci/aci//modules/terraform-aci-forwarding-scale-policy" version = ">= 0.8.0" name = "HIGH-DUAL-STACK" profile = "high-dual-stack" } ``` -------------------------------- ### Complete Usage Example Source: https://github.com/netascode/terraform-aci-nac-aci/blob/main/modules/terraform-aci-bgp-route-summarization-policy/examples/complete/README.md This example demonstrates the complete usage of the aci_bgp_route_summarization_policy module. ```bash $ terraform init $ terraform plan $ terraform apply ``` ```hcl module "aci_bgp_route_summarization_policy" { source = "netascode/nac-aci/aci//modules/terraform-aci-bgp-route-summarization-policy" version = ">= 0.8.0" name = "ABC" tenant = "TEN1" description = "My Description" as_set = true summary_only = false af_mcast = false af_ucast = true } ``` -------------------------------- ### Terraform Commands Source: https://github.com/netascode/terraform-aci-nac-aci/blob/main/modules/terraform-aci-application-profile/examples/complete/README.md Commands to initialize, plan, and apply the Terraform configuration. ```bash $ terraform init $ terraform plan $ terraform apply ``` -------------------------------- ### Complete Example Source: https://github.com/netascode/terraform-aci-nac-aci/blob/main/modules/terraform-aci-oob-external-management-instance/examples/complete/README.md This example shows how to configure the OOB External Management Instance module with all required parameters. ```hcl module "aci_oob_external_management_instance" { source = "netascode/nac-aci/aci//modules/terraform-aci-oob-external-management-instance" version = ">= 0.8.0" name = "INST1" subnets = ["0.0.0.0/0"] oob_contract_consumers = ["CON1"] } ``` -------------------------------- ### Terraform Configuration for Pod Setup Source: https://github.com/netascode/terraform-aci-nac-aci/blob/main/modules/terraform-aci-pod-setup/examples/complete/README.md This HCL code block defines the Terraform configuration for setting up an ACI pod, including pod ID, TEP pool, external TEP pools, and remote pools. ```hcl module "aci_pod_setup" { source = "netascode/nac-aci/aci//modules/terraform-aci-pod-setup" version = ">= 0.8.0" pod_id = 2 tep_pool = "10.2.0.0/16" external_tep_pools = [ { prefix = "172.16.18.0/24" reserved_address_count = 4 }, { prefix = "172.16.17.0/24" reserved_address_count = 2 } ] remote_pools = [ { id = 1 remote_pool = "10.191.200.0/24" }, { id = 2 remote_pool = "10.191.202.0/24" } ] } ``` -------------------------------- ### Terraform Commands Source: https://github.com/netascode/terraform-aci-nac-aci/blob/main/examples/vlan_pool_yaml/README.md Commands to initialize, plan, and apply the Terraform configuration. ```bash terraform init terraform plan terraform apply ``` -------------------------------- ### Execution Commands Source: https://github.com/netascode/terraform-aci-nac-aci/blob/main/modules/terraform-aci-l3out-node-profile/examples/complete/README.md Commands to initialize, plan, and apply the Terraform configuration. ```bash $ terraform init $ terraform plan $ terraform apply ``` -------------------------------- ### Complete Example Source: https://github.com/netascode/terraform-aci-nac-aci/blob/main/modules/terraform-aci-external-endpoint-group/examples/complete/README.md This is a complete example of how to use the aci_external_endpoint_group module. ```hcl module "aci_external_endpoint_group" { source = "../.." tenant = "TF" l3out = "L3OUT1" name = "EXTEPG1" alias = "EXTEPG1-ALIAS" description = "My Description" preferred_group = true qos_class = "level3" target_dscp = "CS0" contract_consumers = ["CON1"] contract_providers = ["CON1"] contract_imported_consumers = ["IMPORTED-CON1"] route_control_profiles = [{ name = "RCP1" direction = "export" }] subnets = [ { name = "SUBNET1" prefix = "10.1.1.0/24" description = "Subnet with BGP route summarization" import_route_control = true export_route_control = true shared_route_control = true import_security = true shared_security = false aggregate_import_route_control = true aggregate_export_route_control = true aggregate_shared_route_control = true bgp_route_summarization = true bgp_route_summarization_policy = "my-custom-bgp-policy" route_control_profiles = [{ name = "RCP1" direction = "import" }] }, { name = "SUBNET2" prefix = "10.2.0.0/16" description = "Subnet with OSPF route summarization - custom policy" export_route_control = true ospf_route_summarization = true ospf_route_summarization_policy = "my-custom-ospf-policy" }, { name = "SUBNET3" prefix = "10.3.0.0/16" description = "Subnet with OSPF route summarization - default policy" export_route_control = true ospf_route_summarization = true # ospf_route_summarization_policy not specified, will use default }, { name = "SUBNET4" prefix = "10.4.0.0/16" description = "Subnet with EIGRP route summarization" export_route_control = true eigrp_route_summarization = true } ] } ``` -------------------------------- ### Complete Example Source: https://github.com/netascode/terraform-aci-nac-aci/blob/main/modules/terraform-aci-endpoint-retention-policy/examples/complete/README.md This is a complete example of how to use the aci_end_point_retention_policy module. ```bash $ terraform init $ terraform plan $ terraform apply ``` ```hcl module "aci_end_point_retention_policy" { source = "netascode/nac-aci/aci//modules/terraform-aci-endpoint-retention-policy" version = ">= 0.9.4" name = "ERP1" descr = "Terraform" hold_interval = 6 bounce_entry_aging_interval = 630 local_endpoint_aging_interval = 900 remote_endpoint_aging_interval = 300 move_frequency = 256 } ``` -------------------------------- ### Complete QoS Custom Policy Example Source: https://github.com/netascode/terraform-aci-nac-aci/blob/main/modules/terraform-aci-qos-policy/examples/complete/README.md This example demonstrates the configuration of a complete QoS custom policy, including DSCP and 802.1p mappings. ```bash $ terraform init $ terraform plan $ terraform apply ``` ```hcl module "aci_qos_policy" { source = "netascode/nac-aci/aci//modules/terraform-aci-qos-policy" version = ">= 0.8.0" name = "ABC" tenant = "TEN1" description = "My Custom Policy" alias = "MyAlias" dscp_priority_maps = [ { dscp_from = "AF12" dscp_to = "AF13" priority = "level5" dscp_target = "CS0" cos_target = 5 } ] dot1p_classifiers = [ { dot1p_from = 3 dot1p_to = 4 priority = "level5" dscp_target = "CS0" cos_target = 5 } ] } ``` -------------------------------- ### Complete Example Source: https://github.com/netascode/terraform-aci-nac-aci/blob/main/modules/terraform-aci-endpoint-mac-tag-policy/examples/complete/README.md This is a complete example of how to use the aci_endpoint_mac_tag_policy module. ```bash $ terraform init $ terraform plan $ terraform apply ``` ```hcl module "aci_endpoint_mac_tag_policy" { source = "netascode/nac-aci/aci//modules/terraform-aci-endpoint-mac-tag-policy" version = "> 0.9.3" tenant = "TEN1" mac = "AB:CD:EF:DC:BA" bridge_domain = "all" vrf = "TEN1-VRF" tags = [{ key = "Environment" value = "PROD" }] } ``` -------------------------------- ### Complete Access Leaf Switch Profile Example Source: https://github.com/netascode/terraform-aci-nac-aci/blob/main/modules/terraform-aci-access-leaf-switch-profile/examples/complete/README.md This example shows how to configure an access leaf switch profile with interface profiles and selectors. ```bash $ terraform init $ terraform plan $ terraform apply ``` ```hcl module "aci_access_leaf_switch_profile" { source = "netascode/nac-aci/aci//modules/terraform-aci-access-leaf-switch-profile" version = ">= 0.8.0" name = "LEAF101" interface_profiles = ["PROF1"] selectors = [{ name = "SEL1" policy_group = "POL1" node_blocks = [{ name = "BLOCK1" from = 101 to = 101 }] }] } ``` -------------------------------- ### Complete Syslog Policy Example Source: https://github.com/netascode/terraform-aci-nac-aci/blob/main/modules/terraform-aci-syslog-policy/examples/complete/README.md This example shows a complete configuration for a Syslog Policy, including destinations. ```bash $ terraform init $ terraform plan $ terraform apply ``` ```hcl module "aci_syslog_policy" { source = "netascode/nac-aci/aci//modules/terraform-aci-syslog-policy" version = ">= 0.8.0" name = "SYSLOG1" description = "My Description" format = "nxos" show_millisecond = true show_timezone = true admin_state = true local_admin_state = false local_severity = "errors" console_admin_state = false console_severity = "critical" destinations = [{ name = "DEST1" hostname_ip = "1.1.1.1" protocol = "tcp" port = 1514 admin_state = false format = "nxos" facility = "local1" severity = "information" mgmt_epg_type = "oob" mgmt_epg_name = "OOB1" }] } ``` -------------------------------- ### Complete Usage Example Source: https://github.com/netascode/terraform-aci-nac-aci/blob/main/modules/terraform-aci-tenant-netflow-exporter/examples/complete/README.md This is a complete usage example for the terraform-aci-tenant-netflow-exporter module. ```bash $ terraform init $ terraform plan $ terraform apply ``` ```hcl module "aci_tenant_netflow_exporter" { source = "netascode/nac-aci/aci//modules/terraform-aci-tenant-netflow-exporter" version = "> 1.1.0" name = "EXPORTER1" description = "Netflow exporter 1" source_type = "custom-src-ip" source_ip = "172.16.0.0/20" destination_port = "1234" destination_ip = "10.1.1.1" dscp = "AF12" epg_type = "epg" tenant = "ABC" application_profile = "AP1" endpoint_group = "EPG1" vrf = "VRF1" } ``` -------------------------------- ### Complete Example Source: https://github.com/netascode/terraform-aci-nac-aci/blob/main/modules/terraform-aci-infra-dhcp-relay-policy/examples/complete/README.md This is a complete example of how to use the aci_infra_dhcp_relay_policy module. ```bash $ terraform init $ terraform plan $ terraform apply ``` ```hcl module "aci_infra_dhcp_relay_policy" { source = "netascode/nac-aci/aci//modules/terraform-aci-infra-dhcp-relay-policy" version = ">= 0.8.0" name = "DHCP-RELAY1" description = "My Description" providers_ = [{ ip = "10.1.1.1" type = "epg" tenant = "ABC" application_profile = "AP1" endpoint_group = "EPG1" }] } ``` -------------------------------- ### Complete BGP Timer Policy Example Source: https://github.com/netascode/terraform-aci-nac-aci/blob/main/modules/terraform-aci-bgp-timer-policy/examples/complete/README.md This example demonstrates the complete configuration of the BGP Timer Policy module. ```bash $ terraform init $ terraform plan $ terraform apply ``` ```hcl module "aci_bgp_timer_policy" { source = "netascode/nac-aci/aci//modules/terraform-aci-bgp-timer-policy" version = ">= 0.8.0" tenant = "ABC" name = "BGP1" description = "My Description" graceful_restart_helper = false hold_interval = 60 keepalive_interval = 30 maximum_as_limit = 20 stale_interval = "120" } ``` -------------------------------- ### Complete OSPF Timer Policy Example Source: https://github.com/netascode/terraform-aci-nac-aci/blob/main/modules/terraform-aci-ospf-timer-policy/examples/complete/README.md This example shows how to configure an OSPF Timer Policy with all available parameters. ```bash $ terraform init $ terraform plan $ terraform apply ``` ```hcl module "aci_ospf_timer_policy" { source = "netascode/nac-aci/aci//modules/terraform-aci-ospf-timer-policy" version = ">= 0.8.0" tenant = "ABC" name = "OSPFT1" description = "My Description" reference_bandwidth = 10000 distance = 105 max_ecmp = 4 spf_init_interval = 100 spf_hold_interval = 500 spf_max_interval = 2500 max_lsa_reset_interval = 20 max_lsa_sleep_count = 10 max_lsa_sleep_interval = 10 lsa_arrival_interval = 500 lsa_group_pacing_interval = 20 lsa_hold_interval = 2500 lsa_start_interval = 10 lsa_max_interval = 2500 max_lsa_num = 40000 max_lsa_threshold = 100 max_lsa_action = "log" graceful_restart = true router_id_lookup = true prefix_suppression = true } ``` -------------------------------- ### Complete Example Source: https://github.com/netascode/terraform-aci-nac-aci/blob/main/modules/terraform-aci-fabric-leaf-switch-profile/examples/complete/README.md This is a complete example of how to use the terraform-aci-fabric-leaf-switch-profile module. ```bash $ terraform init $ terraform plan $ terraform apply ``` ```hcl module "aci_fabric_leaf_switch_profile" { source = "netascode/nac-aci/aci//modules/terraform-aci-fabric-leaf-switch-profile" version = ">= 0.8.0" name = "LEAF101" interface_profiles = ["PROF1"] selectors = [{ name = "SEL1" policy_group = "POL1" node_blocks = [{ name = "BLOCK1" from = 101 to = 101 }] }] } ``` -------------------------------- ### Complete Example Source: https://github.com/netascode/terraform-aci-nac-aci/blob/main/modules/terraform-aci-remote-vxlan-fabric-policy/examples/complete/README.md This example demonstrates the complete configuration for the terraform-aci-remote-vxlan-fabric-policy module. ```bash $ terraform init $ terraform plan $ terraform apply ``` ```hcl module "terraform-aci-remote-vxlan-fabric-policy" { source = "netascode/nac-aci/aci/modules/terraform-aci-remote-vxlan-fabric-policy" version = ">= 0.9.1" name = "REMOTE_VXLAN_POLICY" border_gateway_set = "BGW1" remote_evpn_peers = [ { ip = "10.1.1.1" description = "Remote EVPN Peer 1" remote_as = "65001" admin_state = true allow_self_as = false disable_peer_as_check = false password = "secret123" ttl = 10 peer_prefix_policy = "PREFIX_POLICY1" as_propagate = "none" local_as = 65000 } ] } ```