├── examples ├── data-sources │ ├── nxos_bgp │ │ └── data-source.tf │ ├── nxos_hmm │ │ └── data-source.tf │ ├── nxos_pim │ │ └── data-source.tf │ ├── nxos_evpn │ │ └── data-source.tf │ ├── nxos_isis │ │ └── data-source.tf │ ├── nxos_ospf │ │ └── data-source.tf │ ├── nxos_ethernet │ │ └── data-source.tf │ ├── nxos_icmpv4 │ │ └── data-source.tf │ ├── nxos_ospfv3 │ │ └── data-source.tf │ ├── nxos_system │ │ └── data-source.tf │ ├── nxos_vpc_domain │ │ └── data-source.tf │ ├── nxos_bgp_instance │ │ └── data-source.tf │ ├── nxos_feature_bfd │ │ └── data-source.tf │ ├── nxos_feature_bgp │ │ └── data-source.tf │ ├── nxos_feature_dhcp │ │ └── data-source.tf │ ├── nxos_feature_evpn │ │ └── data-source.tf │ ├── nxos_feature_hmm │ │ └── data-source.tf │ ├── nxos_feature_hsrp │ │ └── data-source.tf │ ├── nxos_feature_isis │ │ └── data-source.tf │ ├── nxos_feature_lacp │ │ └── data-source.tf │ ├── nxos_feature_lldp │ │ └── data-source.tf │ ├── nxos_feature_ngoam │ │ └── data-source.tf │ ├── nxos_feature_ospf │ │ └── data-source.tf │ ├── nxos_feature_pim │ │ └── data-source.tf │ ├── nxos_feature_ptp │ │ └── data-source.tf │ ├── nxos_feature_pvlan │ │ └── data-source.tf │ ├── nxos_feature_ssh │ │ └── data-source.tf │ ├── nxos_feature_udld │ │ └── data-source.tf │ ├── nxos_feature_vpc │ │ └── data-source.tf │ ├── nxos_hmm_instance │ │ └── data-source.tf │ ├── nxos_nve_interface │ │ └── data-source.tf │ ├── nxos_pim_instance │ │ └── data-source.tf │ ├── nxos_vpc_instance │ │ └── data-source.tf │ ├── nxos_vpc_keepalive │ │ └── data-source.tf │ ├── nxos_vpc_peerlink │ │ └── data-source.tf │ ├── nxos_vrf │ │ └── data-source.tf │ ├── nxos_feature_macsec │ │ └── data-source.tf │ ├── nxos_feature_netflow │ │ └── data-source.tf │ ├── nxos_feature_ngmvpn │ │ └── data-source.tf │ ├── nxos_feature_ospfv3 │ │ └── data-source.tf │ ├── nxos_feature_tacacs │ │ └── data-source.tf │ ├── nxos_feature_telnet │ │ └── data-source.tf │ ├── nxos_icmpv4_instance │ │ └── data-source.tf │ ├── nxos_feature_nv_overlay │ │ └── data-source.tf │ ├── nxos_feature_vn_segment │ │ └── data-source.tf │ ├── nxos_ipv4_vrf │ │ └── data-source.tf │ ├── nxos_ipv6_vrf │ │ └── data-source.tf │ ├── nxos_nve_vni │ │ └── data-source.tf │ ├── nxos_nve_vni_container │ │ └── data-source.tf │ ├── nxos_pim_vrf │ │ └── data-source.tf │ ├── nxos_vrf_domain │ │ └── data-source.tf │ ├── nxos_vrf_routing │ │ └── data-source.tf │ ├── nxos_evpn_vni │ │ └── data-source.tf │ ├── nxos_feature_interface_vlan │ │ └── data-source.tf │ ├── nxos_icmpv4_vrf │ │ └── data-source.tf │ ├── nxos_ntp_server │ │ └── data-source.tf │ ├── nxos_rest │ │ └── data-source.tf │ ├── nxos_vrf_container │ │ └── data-source.tf │ ├── nxos_isis_instance │ │ └── data-source.tf │ ├── nxos_ospf_instance │ │ └── data-source.tf │ ├── nxos_route_map_rule │ │ └── data-source.tf │ ├── nxos_hmm_interface │ │ └── data-source.tf │ ├── nxos_ipv4_access_list │ │ └── data-source.tf │ ├── nxos_ospfv3_instance │ │ └── data-source.tf │ ├── nxos_pim_anycast_rp │ │ └── data-source.tf │ ├── nxos_pim_ssm_policy │ │ └── data-source.tf │ ├── nxos_pim_ssm_range │ │ └── data-source.tf │ ├── nxos_vpc_interface │ │ └── data-source.tf │ ├── nxos_bgp_instance_domain │ │ └── data-source.tf │ ├── nxos_bgp_vrf │ │ └── data-source.tf │ ├── nxos_bridge_domain │ │ └── data-source.tf │ ├── nxos_isis_interface │ │ └── data-source.tf │ ├── nxos_queuing_qos_policy_system_out │ │ └── data-source.tf │ ├── nxos_subinterface │ │ └── data-source.tf │ ├── nxos_svi_interface │ │ └── data-source.tf │ ├── nxos_default_qos_class_map │ │ └── data-source.tf │ ├── nxos_default_qos_policy_map │ │ └── data-source.tf │ ├── nxos_ipv4_prefix_list_rule │ │ └── data-source.tf │ ├── nxos_loopback_interface │ │ └── data-source.tf │ ├── nxos_ospfv3_interface │ │ └── data-source.tf │ ├── nxos_queuing_qos_policy_map │ │ └── data-source.tf │ ├── nxos_svi_interface_vrf │ │ └── data-source.tf │ ├── nxos_dhcp_relay_interface │ │ └── data-source.tf │ ├── nxos_physical_interface │ │ └── data-source.tf │ ├── nxos_pim_static_rp_policy │ │ └── data-source.tf │ ├── nxos_port_channel_interface │ │ └── data-source.tf │ ├── nxos_subinterface_vrf │ │ └── data-source.tf │ ├── nxos_vrf_domain_af │ │ └── data-source.tf │ ├── nxos_bgp_route_control │ │ └── data-source.tf │ ├── nxos_loopback_interface_vrf │ │ └── data-source.tf │ ├── nxos_nve_vni_ingress_replication │ │ └── data-source.tf │ ├── nxos_ospf_vrf │ │ └── data-source.tf │ ├── nxos_physical_interface_vrf │ │ └── data-source.tf │ ├── nxos_spanning_tree_interface │ │ └── data-source.tf │ ├── nxos_isis_vrf │ │ └── data-source.tf │ ├── nxos_pim_static_rp │ │ └── data-source.tf │ ├── nxos_port_channel_interface_vrf │ │ └── data-source.tf │ ├── nxos_queuing_qos_policy_system_out_policy_map │ │ └── data-source.tf │ ├── nxos_bgp_graceful_restart │ │ └── data-source.tf │ ├── nxos_ospfv3_vrf │ │ └── data-source.tf │ ├── nxos_bgp_instance_domain_af │ │ └── data-source.tf │ ├── nxos_icmpv4_interface │ │ └── data-source.tf │ ├── nxos_ipv4_interface │ │ └── data-source.tf │ ├── nxos_ipv4_static_route │ │ └── data-source.tf │ ├── nxos_ipv6_interface │ │ └── data-source.tf │ ├── nxos_isis_overload │ │ └── data-source.tf │ ├── nxos_pim_interface │ │ └── data-source.tf │ ├── nxos_route_map_rule_entry │ │ └── data-source.tf │ ├── nxos_bgp_instance_domain_graceful_restart │ │ └── data-source.tf │ ├── nxos_bgp_instance_domain_gracefulrestart │ │ └── data-source.tf │ ├── nxos_bgp_peer │ │ └── data-source.tf │ ├── nxos_bgp_peer_local_asn │ │ └── data-source.tf │ ├── nxos_default_qos_policy_interface_in │ │ └── data-source.tf │ ├── nxos_ospfv3_interface_authentication │ │ └── data-source.tf │ ├── nxos_bgp_peer_template │ │ └── data-source.tf │ ├── nxos_ipv4_prefix_list_rule_entry │ │ └── data-source.tf │ ├── nxos_bgp_instance_domain_peer │ │ └── data-source.tf │ ├── nxos_ipv4_access_list_entry │ │ └── data-source.tf │ ├── nxos_vrf_address_family │ │ └── data-source.tf │ ├── nxos_default_qos_class_map_dscp │ │ └── data-source.tf │ ├── nxos_ipv4_access_list_policy_egress_interface │ │ └── data-source.tf │ ├── nxos_ospf_area │ │ └── data-source.tf │ ├── nxos_route_map_rule_entry_match_route │ │ └── data-source.tf │ ├── nxos_default_qos_policy_interface_in_policy_map │ │ └── data-source.tf │ ├── nxos_ipv4_access_list_policy_ingress_interface │ │ └── data-source.tf │ ├── nxos_ipv6_static_route │ │ └── data-source.tf │ ├── nxos_ospf_interface │ │ └── data-source.tf │ ├── nxos_ospfv3_area │ │ └── data-source.tf │ ├── nxos_dhcp_relay_address │ │ └── data-source.tf │ ├── nxos_evpn_vni_route_target_direction │ │ └── data-source.tf │ ├── nxos_vrf_domain_af_control │ │ └── data-source.tf │ ├── nxos_isis_address_family │ │ └── data-source.tf │ ├── nxos_ospf_authentication │ │ └── data-source.tf │ ├── nxos_route_map_rule_entry_match_tag │ │ └── data-source.tf │ ├── nxos_route_map_rule_entry_set_regular_community │ │ └── data-source.tf │ ├── nxos_bgp_address_family │ │ └── data-source.tf │ ├── nxos_bgp_instance_domain_peer_container │ │ └── data-source.tf │ ├── nxos_bgp_instance_domain_peercontainer │ │ └── data-source.tf │ ├── nxos_port_channel_interface_member │ │ └── data-source.tf │ ├── nxos_default_qos_policy_map_match_class_map │ │ └── data-source.tf │ ├── nxos_pim_static_rp_group_list │ │ └── data-source.tf │ ├── nxos_queuing_qos_policy_map_match_class_map │ │ └── data-source.tf │ ├── nxos_ipv4_interface_address │ │ └── data-source.tf │ ├── nxos_pim_anycast_rp_peer │ │ └── data-source.tf │ ├── nxos_default_qos_policy_map_match_class_map_police │ │ └── data-source.tf │ ├── nxos_evpn_vni_route_target │ │ └── data-source.tf │ ├── nxos_bgp_peer_template_max_prefix │ │ └── data-source.tf │ ├── nxos_queuing_qos_policy_map_match_class_map_priority │ │ └── data-source.tf │ ├── nxos_default_qos_policy_map_match_class_map_set_qos_group │ │ └── data-source.tf │ ├── nxos_bgp_peer_template_address_family │ │ └── data-source.tf │ ├── nxos_ipv6_interface_address │ │ └── data-source.tf │ ├── nxos_ospfv3_vrf_address_family │ │ └── data-source.tf │ ├── nxos_bgp_instance_domain_peercontainer_af │ │ └── data-source.tf │ ├── nxos_vrf_domain_af_control_direction │ │ └── data-source.tf │ ├── nxos_bgp_instance_domain_peer_container_af │ │ └── data-source.tf │ ├── nxos_queuing_qos_policy_map_match_class_map_remaining_bandwidth │ │ └── data-source.tf │ ├── nxos_bgp_advertised_prefix │ │ └── data-source.tf │ ├── nxos_bgp_peer_address_family │ │ └── data-source.tf │ ├── nxos_ospfv3_area_address_family │ │ └── data-source.tf │ ├── nxos_route_map_rule_entry_set_regular_community_item │ │ └── data-source.tf │ ├── nxos_bgp_instance_domain_peercontainer_af_maxprefix │ │ └── data-source.tf │ ├── nxos_route_map_rule_entry_match_route_prefix_list │ │ └── data-source.tf │ ├── nxos_bgp_instance_domain_peer_container_af_max_prefix │ │ └── data-source.tf │ ├── nxos_vrf_route_target_address_family │ │ └── data-source.tf │ ├── nxos_bgp_route_redistribution │ │ └── data-source.tf │ ├── nxos_vrf_domain_af_control_direction_rt │ │ └── data-source.tf │ ├── nxos_bgp_peer_address_family_route_control │ │ └── data-source.tf │ ├── nxos_vrf_route_target_direction │ │ └── data-source.tf │ ├── nxos_bgp_peer_address_family_prefix_list_control │ │ └── data-source.tf │ └── nxos_vrf_route_target │ │ └── data-source.tf ├── resources │ ├── nxos_bgp │ │ ├── import.sh │ │ └── resource.tf │ ├── nxos_evpn │ │ ├── import.sh │ │ └── resource.tf │ ├── nxos_hmm │ │ ├── import.sh │ │ └── resource.tf │ ├── nxos_isis │ │ ├── import.sh │ │ └── resource.tf │ ├── nxos_ospf │ │ ├── import.sh │ │ └── resource.tf │ ├── nxos_pim │ │ ├── import.sh │ │ └── resource.tf │ ├── nxos_system │ │ ├── import.sh │ │ └── resource.tf │ ├── nxos_save_config │ │ └── resource.tf │ ├── nxos_vrf │ │ ├── import.sh │ │ └── resource.tf │ ├── nxos_icmpv4 │ │ ├── import.sh │ │ └── resource.tf │ ├── nxos_ospfv3 │ │ ├── import.sh │ │ └── resource.tf │ ├── nxos_ethernet │ │ ├── import.sh │ │ └── resource.tf │ ├── nxos_bgp_instance │ │ ├── import.sh │ │ └── resource.tf │ ├── nxos_feature_bfd │ │ ├── import.sh │ │ └── resource.tf │ ├── nxos_feature_bgp │ │ ├── import.sh │ │ └── resource.tf │ ├── nxos_feature_dhcp │ │ ├── import.sh │ │ └── resource.tf │ ├── nxos_feature_evpn │ │ ├── import.sh │ │ └── resource.tf │ ├── nxos_feature_hmm │ │ ├── import.sh │ │ └── resource.tf │ ├── nxos_feature_hsrp │ │ ├── import.sh │ │ └── resource.tf │ ├── nxos_feature_isis │ │ ├── import.sh │ │ └── resource.tf │ ├── nxos_feature_lacp │ │ ├── import.sh │ │ └── resource.tf │ ├── nxos_feature_lldp │ │ ├── import.sh │ │ └── resource.tf │ ├── nxos_feature_ospf │ │ ├── import.sh │ │ └── resource.tf │ ├── nxos_feature_pim │ │ ├── import.sh │ │ └── resource.tf │ ├── nxos_feature_ptp │ │ ├── import.sh │ │ └── resource.tf │ ├── nxos_feature_ssh │ │ ├── import.sh │ │ └── resource.tf │ ├── nxos_feature_udld │ │ ├── import.sh │ │ └── resource.tf │ ├── nxos_feature_vpc │ │ ├── import.sh │ │ └── resource.tf │ ├── nxos_pim_instance │ │ ├── import.sh │ │ └── resource.tf │ ├── nxos_vpc_domain │ │ └── import.sh │ ├── nxos_vpc_instance │ │ ├── import.sh │ │ └── resource.tf │ ├── nxos_bgp_vrf │ │ ├── import.sh │ │ └── resource.tf │ ├── nxos_feature_macsec │ │ ├── import.sh │ │ └── resource.tf │ ├── nxos_feature_ngmvpn │ │ ├── import.sh │ │ └── resource.tf │ ├── nxos_feature_ngoam │ │ ├── import.sh │ │ └── resource.tf │ ├── nxos_feature_ospfv3 │ │ ├── import.sh │ │ └── resource.tf │ ├── nxos_feature_pvlan │ │ ├── import.sh │ │ └── resource.tf │ ├── nxos_feature_telnet │ │ ├── import.sh │ │ └── resource.tf │ ├── nxos_hmm_instance │ │ ├── import.sh │ │ └── resource.tf │ ├── nxos_ipv4_vrf │ │ ├── import.sh │ │ └── resource.tf │ ├── nxos_ipv6_vrf │ │ ├── import.sh │ │ └── resource.tf │ ├── nxos_nve_vni_container │ │ ├── resource.tf │ │ └── import.sh │ ├── nxos_pim_vrf │ │ ├── import.sh │ │ └── resource.tf │ ├── nxos_rest │ │ ├── import.sh │ │ └── resource.tf │ ├── nxos_bridge_domain │ │ ├── import.sh │ │ └── resource.tf │ ├── nxos_evpn_vni │ │ ├── import.sh │ │ └── resource.tf │ ├── nxos_feature_netflow │ │ ├── import.sh │ │ └── resource.tf │ ├── nxos_feature_nv_overlay │ │ ├── import.sh │ │ └── resource.tf │ ├── nxos_feature_tacacs │ │ ├── import.sh │ │ └── resource.tf │ ├── nxos_icmpv4_instance │ │ ├── import.sh │ │ └── resource.tf │ ├── nxos_icmpv4_vrf │ │ ├── import.sh │ │ └── resource.tf │ ├── nxos_ntp_server │ │ ├── import.sh │ │ └── resource.tf │ ├── nxos_nve_interface │ │ ├── import.sh │ │ └── resource.tf │ ├── nxos_vrf_domain │ │ ├── import.sh │ │ └── resource.tf │ ├── nxos_isis_instance │ │ ├── import.sh │ │ └── resource.tf │ ├── nxos_isis_interface │ │ └── import.sh │ ├── nxos_isis_vrf │ │ ├── import.sh │ │ └── resource.tf │ ├── nxos_nve_vni │ │ ├── import.sh │ │ └── resource.tf │ ├── nxos_ospf_instance │ │ ├── import.sh │ │ └── resource.tf │ ├── nxos_ospf_vrf │ │ ├── import.sh │ │ └── resource.tf │ ├── nxos_route_map_rule │ │ ├── import.sh │ │ └── resource.tf │ ├── nxos_svi_interface │ │ ├── import.sh │ │ └── resource.tf │ ├── nxos_vpc_interface │ │ ├── import.sh │ │ └── resource.tf │ ├── nxos_vrf_container │ │ ├── import.sh │ │ └── resource.tf │ ├── nxos_vrf_routing │ │ ├── import.sh │ │ └── resource.tf │ ├── nxos_feature_vn_segment │ │ ├── import.sh │ │ └── resource.tf │ ├── nxos_hmm_interface │ │ ├── import.sh │ │ └── resource.tf │ ├── nxos_ipv4_access_list │ │ ├── import.sh │ │ └── resource.tf │ ├── nxos_loopback_interface │ │ ├── import.sh │ │ └── resource.tf │ ├── nxos_ospfv3_instance │ │ ├── import.sh │ │ └── resource.tf │ ├── nxos_ospfv3_interface │ │ ├── import.sh │ │ └── resource.tf │ ├── nxos_subinterface │ │ ├── import.sh │ │ └── resource.tf │ ├── nxos_vpc_keepalive │ │ ├── import.sh │ │ └── resource.tf │ ├── nxos_bgp_peer │ │ ├── import.sh │ │ └── resource.tf │ ├── nxos_feature_interface_vlan │ │ ├── import.sh │ │ └── resource.tf │ ├── nxos_ospfv3_vrf │ │ ├── import.sh │ │ └── resource.tf │ ├── nxos_physical_interface │ │ ├── import.sh │ │ └── resource.tf │ ├── nxos_pim_ssm_policy │ │ ├── import.sh │ │ └── resource.tf │ ├── nxos_queuing_qos_policy_system_out │ │ ├── resource.tf │ │ └── import.sh │ ├── nxos_vpc_peerlink │ │ ├── import.sh │ │ └── resource.tf │ ├── nxos_bgp_instance_domain │ │ ├── import.sh │ │ └── resource.tf │ ├── nxos_ipv4_prefix_list_rule │ │ ├── resource.tf │ │ └── import.sh │ ├── nxos_ospf_area │ │ ├── import.sh │ │ └── resource.tf │ ├── nxos_pim_anycast_rp │ │ ├── import.sh │ │ └── resource.tf │ ├── nxos_pim_interface │ │ ├── import.sh │ │ └── resource.tf │ ├── nxos_pim_ssm_range │ │ ├── import.sh │ │ └── resource.tf │ ├── nxos_port_channel_interface │ │ ├── import.sh │ │ └── resource.tf │ ├── nxos_svi_interface_vrf │ │ ├── import.sh │ │ └── resource.tf │ ├── nxos_bgp_graceful_restart │ │ ├── import.sh │ │ └── resource.tf │ ├── nxos_bgp_route_control │ │ ├── import.sh │ │ └── resource.tf │ ├── nxos_default_qos_class_map │ │ ├── import.sh │ │ └── resource.tf │ ├── nxos_default_qos_policy_map │ │ ├── import.sh │ │ └── resource.tf │ ├── nxos_dhcp_relay_interface │ │ ├── import.sh │ │ └── resource.tf │ ├── nxos_icmpv4_interface │ │ ├── import.sh │ │ └── resource.tf │ ├── nxos_ipv4_interface │ │ ├── import.sh │ │ └── resource.tf │ ├── nxos_ipv6_interface │ │ ├── import.sh │ │ └── resource.tf │ ├── nxos_isis_overload │ │ ├── import.sh │ │ └── resource.tf │ ├── nxos_route_map_rule_entry │ │ ├── import.sh │ │ └── resource.tf │ ├── nxos_spanning_tree_interface │ │ ├── import.sh │ │ └── resource.tf │ ├── nxos_subinterface_vrf │ │ ├── import.sh │ │ └── resource.tf │ ├── nxos_vrf_domain_af │ │ ├── import.sh │ │ └── resource.tf │ ├── nxos_loopback_interface_vrf │ │ ├── import.sh │ │ └── resource.tf │ ├── nxos_ospf_interface │ │ ├── import.sh │ │ └── resource.tf │ ├── nxos_physical_interface_vrf │ │ ├── import.sh │ │ └── resource.tf │ ├── nxos_pim_static_rp │ │ ├── import.sh │ │ └── resource.tf │ ├── nxos_pim_static_rp_policy │ │ ├── import.sh │ │ └── resource.tf │ ├── nxos_queuing_qos_policy_map │ │ ├── import.sh │ │ └── resource.tf │ ├── nxos_bgp_address_family │ │ └── import.sh │ ├── nxos_ipv4_access_list_entry │ │ └── import.sh │ ├── nxos_ipv4_static_route │ │ ├── import.sh │ │ └── resource.tf │ ├── nxos_isis_address_family │ │ ├── import.sh │ │ └── resource.tf │ ├── nxos_ospfv3_area │ │ ├── import.sh │ │ └── resource.tf │ ├── nxos_port_channel_interface_vrf │ │ ├── import.sh │ │ └── resource.tf │ ├── nxos_vrf_address_family │ │ ├── import.sh │ │ └── resource.tf │ ├── nxos_bgp_instance_domain_af │ │ ├── import.sh │ │ └── resource.tf │ ├── nxos_bgp_peer_template │ │ ├── import.sh │ │ └── resource.tf │ ├── nxos_bgp_peer_local_asn │ │ ├── import.sh │ │ └── resource.tf │ ├── nxos_default_qos_class_map_dscp │ │ ├── import.sh │ │ └── resource.tf │ ├── nxos_dhcp_relay_address │ │ ├── import.sh │ │ └── resource.tf │ ├── nxos_ipv4_prefix_list_rule_entry │ │ ├── import.sh │ │ └── resource.tf │ ├── nxos_ospf_authentication │ │ ├── import.sh │ │ └── resource.tf │ ├── nxos_ospfv3_interface_authentication │ │ ├── import.sh │ │ └── resource.tf │ ├── nxos_bgp_instance_domain_peer │ │ ├── import.sh │ │ └── resource.tf │ ├── nxos_default_qos_policy_interface_in │ │ ├── resource.tf │ │ └── import.sh │ ├── nxos_nve_vni_ingress_replication │ │ ├── import.sh │ │ └── resource.tf │ ├── nxos_bgp_instance_domain_graceful_restart │ │ ├── import.sh │ │ └── resource.tf │ ├── nxos_bgp_instance_domain_gracefulrestart │ │ ├── import.sh │ │ └── resource.tf │ ├── nxos_route_map_rule_entry_match_route │ │ ├── import.sh │ │ └── resource.tf │ ├── nxos_evpn_vni_route_target_direction │ │ ├── import.sh │ │ └── resource.tf │ ├── nxos_ipv4_interface_address │ │ ├── import.sh │ │ └── resource.tf │ ├── nxos_ospfv3_vrf_address_family │ │ ├── import.sh │ │ └── resource.tf │ ├── nxos_route_map_rule_entry_match_tag │ │ ├── import.sh │ │ └── resource.tf │ ├── nxos_vrf_domain_af_control │ │ ├── import.sh │ │ └── resource.tf │ ├── nxos_bgp_advertised_prefix │ │ ├── import.sh │ │ └── resource.tf │ ├── nxos_bgp_peer_address_family │ │ ├── import.sh │ │ └── resource.tf │ ├── nxos_ipv6_static_route │ │ ├── import.sh │ │ └── resource.tf │ ├── nxos_bgp_instance_domain_peercontainer │ │ ├── import.sh │ │ └── resource.tf │ ├── nxos_default_qos_policy_map_match_class_map │ │ ├── import.sh │ │ └── resource.tf │ ├── nxos_evpn_vni_route_target │ │ ├── import.sh │ │ └── resource.tf │ ├── nxos_pim_anycast_rp_peer │ │ ├── import.sh │ │ └── resource.tf │ ├── nxos_port_channel_interface_member │ │ ├── import.sh │ │ └── resource.tf │ ├── nxos_queuing_qos_policy_system_out_policy_map │ │ ├── resource.tf │ │ └── import.sh │ ├── nxos_bgp_instance_domain_peer_container │ │ ├── import.sh │ │ └── resource.tf │ ├── nxos_ipv4_access_list_policy_egress_interface │ │ ├── import.sh │ │ └── resource.tf │ ├── nxos_pim_static_rp_group_list │ │ ├── import.sh │ │ └── resource.tf │ ├── nxos_bgp_route_redistribution │ │ ├── import.sh │ │ └── resource.tf │ ├── nxos_ipv4_access_list_policy_ingress_interface │ │ ├── import.sh │ │ └── resource.tf │ ├── nxos_ospfv3_area_address_family │ │ ├── import.sh │ │ └── resource.tf │ ├── nxos_queuing_qos_policy_map_match_class_map │ │ ├── import.sh │ │ └── resource.tf │ ├── nxos_route_map_rule_entry_set_regular_community │ │ ├── import.sh │ │ └── resource.tf │ ├── nxos_vrf_route_target_address_family │ │ ├── import.sh │ │ └── resource.tf │ ├── nxos_vrf_route_target_direction │ │ ├── import.sh │ │ └── resource.tf │ ├── nxos_bgp_peer_template_address_family │ │ ├── import.sh │ │ └── resource.tf │ ├── nxos_bgp_peer_template_max_prefix │ │ ├── import.sh │ │ └── resource.tf │ ├── nxos_default_qos_policy_interface_in_policy_map │ │ ├── import.sh │ │ └── resource.tf │ ├── nxos_ipv6_interface_address │ │ ├── import.sh │ │ └── resource.tf │ ├── nxos_vrf_domain_af_control_direction │ │ ├── import.sh │ │ └── resource.tf │ ├── nxos_bgp_instance_domain_peer_container_af │ │ ├── import.sh │ │ └── resource.tf │ ├── nxos_bgp_instance_domain_peercontainer_af │ │ ├── import.sh │ │ └── resource.tf │ ├── nxos_default_qos_policy_map_match_class_map_police │ │ └── import.sh │ ├── nxos_vrf_route_target │ │ ├── import.sh │ │ └── resource.tf │ ├── nxos_queuing_qos_policy_map_match_class_map_priority │ │ ├── import.sh │ │ └── resource.tf │ ├── nxos_bgp_peer_address_family_route_control │ │ ├── import.sh │ │ └── resource.tf │ ├── nxos_default_qos_policy_map_match_class_map_set_qos_group │ │ ├── import.sh │ │ └── resource.tf │ ├── nxos_bgp_peer_address_family_prefix_list_control │ │ ├── import.sh │ │ └── resource.tf │ ├── nxos_bgp_instance_domain_peercontainer_af_maxprefix │ │ ├── import.sh │ │ └── resource.tf │ ├── nxos_route_map_rule_entry_match_route_prefix_list │ │ ├── import.sh │ │ └── resource.tf │ ├── nxos_route_map_rule_entry_set_regular_community_item │ │ ├── import.sh │ │ └── resource.tf │ ├── nxos_bgp_instance_domain_peer_container_af_max_prefix │ │ ├── import.sh │ │ └── resource.tf │ ├── nxos_queuing_qos_policy_map_match_class_map_remaining_bandwidth │ │ ├── import.sh │ │ └── resource.tf │ └── nxos_vrf_domain_af_control_direction_rt │ │ ├── import.sh │ │ └── resource.tf ├── provider │ └── provider.tf └── README.md ├── gen ├── templates │ ├── import.sh │ ├── changelog.md.tmpl │ ├── data-source.tf │ ├── resource.tf │ └── supported_objects.md.tmpl └── definitions │ ├── queuing_qos_policy_system_out.yaml │ ├── system.yaml │ ├── ipv6_vrf.yaml │ ├── ipv4_access_list.yaml │ ├── ipv4_vrf.yaml │ ├── route_map_rule.yaml │ ├── feature_bfd.yaml │ ├── feature_bgp.yaml │ ├── feature_pim.yaml │ ├── feature_ptp.yaml │ ├── feature_ssh.yaml │ ├── feature_vpc.yaml │ ├── ipv4_prefix_list_rule.yaml │ ├── feature_dhcp.yaml │ ├── feature_hsrp.yaml │ ├── feature_isis.yaml │ ├── feature_lacp.yaml │ ├── feature_lldp.yaml │ ├── feature_ospf.yaml │ ├── feature_udld.yaml │ ├── feature_pvlan.yaml │ ├── feature_ospfv3.yaml │ ├── feature_telnet.yaml │ ├── icmpv4.yaml │ ├── feature_nv_overlay.yaml │ ├── feature_tacacs.yaml │ ├── feature_ngmvpn.yaml │ ├── feature_macsec.yaml │ ├── feature_vn_segment.yaml │ ├── feature_evpn.yaml │ ├── feature_netflow.yaml │ ├── feature_interface_vlan.yaml │ ├── feature_ngoam.yaml │ ├── default_qos_policy_interface_in.yaml │ ├── pim.yaml │ ├── bgp.yaml │ ├── vpc_instance.yaml │ ├── ospf.yaml │ ├── ospfv3.yaml │ ├── isis.yaml │ ├── vrf.yaml │ ├── default_qos_class_map.yaml │ ├── ethernet.yaml │ ├── default_qos_policy_map.yaml │ ├── queuing_qos_policy_map.yaml │ ├── icmpv4_instance.yaml │ ├── pim_instance.yaml │ ├── dhcp_relay_interface.yaml │ ├── bridge_domain.yaml │ ├── feature_hmm.yaml │ ├── ipv4_access_list_policy_egress_interface.yaml │ ├── ipv4_access_list_policy_ingress_interface.yaml │ ├── evpn.yaml │ ├── icmpv4_vrf.yaml │ ├── hmm.yaml │ ├── loopback_interface.yaml │ ├── default_qos_class_map_dscp.yaml │ └── nve_vni_container.yaml ├── terraform-registry-manifest.json ├── GNUmakefile ├── .github └── dependabot.yml ├── .gitignore ├── docs ├── resources │ └── save_config.md └── data-sources │ ├── pim.md │ ├── system.md │ ├── vpc_instance.md │ └── pim_instance.md └── tools └── tools.go /examples/data-sources/nxos_bgp/data-source.tf: -------------------------------------------------------------------------------- 1 | data "nxos_bgp" "example" { 2 | } 3 | -------------------------------------------------------------------------------- /examples/data-sources/nxos_hmm/data-source.tf: -------------------------------------------------------------------------------- 1 | data "nxos_hmm" "example" { 2 | } 3 | -------------------------------------------------------------------------------- /examples/data-sources/nxos_pim/data-source.tf: -------------------------------------------------------------------------------- 1 | data "nxos_pim" "example" { 2 | } 3 | -------------------------------------------------------------------------------- /examples/data-sources/nxos_evpn/data-source.tf: -------------------------------------------------------------------------------- 1 | data "nxos_evpn" "example" { 2 | } 3 | -------------------------------------------------------------------------------- /examples/data-sources/nxos_isis/data-source.tf: -------------------------------------------------------------------------------- 1 | data "nxos_isis" "example" { 2 | } 3 | -------------------------------------------------------------------------------- /examples/data-sources/nxos_ospf/data-source.tf: -------------------------------------------------------------------------------- 1 | data "nxos_ospf" "example" { 2 | } 3 | -------------------------------------------------------------------------------- /examples/resources/nxos_bgp/import.sh: -------------------------------------------------------------------------------- 1 | terraform import nxos_bgp.example "sys/bgp" 2 | -------------------------------------------------------------------------------- /examples/resources/nxos_evpn/import.sh: -------------------------------------------------------------------------------- 1 | terraform import nxos_evpn.example "sys/evpn" 2 | -------------------------------------------------------------------------------- /examples/resources/nxos_hmm/import.sh: -------------------------------------------------------------------------------- 1 | terraform import nxos_hmm.example "sys/hmm" 2 | -------------------------------------------------------------------------------- /examples/resources/nxos_isis/import.sh: -------------------------------------------------------------------------------- 1 | terraform import nxos_isis.example "sys/isis" 2 | -------------------------------------------------------------------------------- /examples/resources/nxos_ospf/import.sh: -------------------------------------------------------------------------------- 1 | terraform import nxos_ospf.example "sys/ospf" 2 | -------------------------------------------------------------------------------- /examples/resources/nxos_pim/import.sh: -------------------------------------------------------------------------------- 1 | terraform import nxos_pim.example "sys/pim" 2 | -------------------------------------------------------------------------------- /examples/resources/nxos_system/import.sh: -------------------------------------------------------------------------------- 1 | terraform import nxos_system.example "sys" 2 | -------------------------------------------------------------------------------- /examples/data-sources/nxos_ethernet/data-source.tf: -------------------------------------------------------------------------------- 1 | data "nxos_ethernet" "example" { 2 | } 3 | -------------------------------------------------------------------------------- /examples/data-sources/nxos_icmpv4/data-source.tf: -------------------------------------------------------------------------------- 1 | data "nxos_icmpv4" "example" { 2 | } 3 | -------------------------------------------------------------------------------- /examples/data-sources/nxos_ospfv3/data-source.tf: -------------------------------------------------------------------------------- 1 | data "nxos_ospfv3" "example" { 2 | } 3 | -------------------------------------------------------------------------------- /examples/data-sources/nxos_system/data-source.tf: -------------------------------------------------------------------------------- 1 | data "nxos_system" "example" { 2 | } 3 | -------------------------------------------------------------------------------- /examples/resources/nxos_save_config/resource.tf: -------------------------------------------------------------------------------- 1 | resource "nxos_save_config" "example" { 2 | } -------------------------------------------------------------------------------- /examples/resources/nxos_vrf/import.sh: -------------------------------------------------------------------------------- 1 | terraform import nxos_vrf.example "sys/inst-[VRF1]" 2 | -------------------------------------------------------------------------------- /examples/data-sources/nxos_vpc_domain/data-source.tf: -------------------------------------------------------------------------------- 1 | data "nxos_vpc_domain" "example" { 2 | } 3 | -------------------------------------------------------------------------------- /examples/resources/nxos_icmpv4/import.sh: -------------------------------------------------------------------------------- 1 | terraform import nxos_icmpv4.example "sys/icmpv4" 2 | -------------------------------------------------------------------------------- /examples/resources/nxos_ospfv3/import.sh: -------------------------------------------------------------------------------- 1 | terraform import nxos_ospfv3.example "sys/ospfv3" 2 | -------------------------------------------------------------------------------- /examples/data-sources/nxos_bgp_instance/data-source.tf: -------------------------------------------------------------------------------- 1 | data "nxos_bgp_instance" "example" { 2 | } 3 | -------------------------------------------------------------------------------- /examples/data-sources/nxos_feature_bfd/data-source.tf: -------------------------------------------------------------------------------- 1 | data "nxos_feature_bfd" "example" { 2 | } 3 | -------------------------------------------------------------------------------- /examples/data-sources/nxos_feature_bgp/data-source.tf: -------------------------------------------------------------------------------- 1 | data "nxos_feature_bgp" "example" { 2 | } 3 | -------------------------------------------------------------------------------- /examples/data-sources/nxos_feature_dhcp/data-source.tf: -------------------------------------------------------------------------------- 1 | data "nxos_feature_dhcp" "example" { 2 | } 3 | -------------------------------------------------------------------------------- /examples/data-sources/nxos_feature_evpn/data-source.tf: -------------------------------------------------------------------------------- 1 | data "nxos_feature_evpn" "example" { 2 | } 3 | -------------------------------------------------------------------------------- /examples/data-sources/nxos_feature_hmm/data-source.tf: -------------------------------------------------------------------------------- 1 | data "nxos_feature_hmm" "example" { 2 | } 3 | -------------------------------------------------------------------------------- /examples/data-sources/nxos_feature_hsrp/data-source.tf: -------------------------------------------------------------------------------- 1 | data "nxos_feature_hsrp" "example" { 2 | } 3 | -------------------------------------------------------------------------------- /examples/data-sources/nxos_feature_isis/data-source.tf: -------------------------------------------------------------------------------- 1 | data "nxos_feature_isis" "example" { 2 | } 3 | -------------------------------------------------------------------------------- /examples/data-sources/nxos_feature_lacp/data-source.tf: -------------------------------------------------------------------------------- 1 | data "nxos_feature_lacp" "example" { 2 | } 3 | -------------------------------------------------------------------------------- /examples/data-sources/nxos_feature_lldp/data-source.tf: -------------------------------------------------------------------------------- 1 | data "nxos_feature_lldp" "example" { 2 | } 3 | -------------------------------------------------------------------------------- /examples/data-sources/nxos_feature_ngoam/data-source.tf: -------------------------------------------------------------------------------- 1 | data "nxos_feature_ngoam" "example" { 2 | } 3 | -------------------------------------------------------------------------------- /examples/data-sources/nxos_feature_ospf/data-source.tf: -------------------------------------------------------------------------------- 1 | data "nxos_feature_ospf" "example" { 2 | } 3 | -------------------------------------------------------------------------------- /examples/data-sources/nxos_feature_pim/data-source.tf: -------------------------------------------------------------------------------- 1 | data "nxos_feature_pim" "example" { 2 | } 3 | -------------------------------------------------------------------------------- /examples/data-sources/nxos_feature_ptp/data-source.tf: -------------------------------------------------------------------------------- 1 | data "nxos_feature_ptp" "example" { 2 | } 3 | -------------------------------------------------------------------------------- /examples/data-sources/nxos_feature_pvlan/data-source.tf: -------------------------------------------------------------------------------- 1 | data "nxos_feature_pvlan" "example" { 2 | } 3 | -------------------------------------------------------------------------------- /examples/data-sources/nxos_feature_ssh/data-source.tf: -------------------------------------------------------------------------------- 1 | data "nxos_feature_ssh" "example" { 2 | } 3 | -------------------------------------------------------------------------------- /examples/data-sources/nxos_feature_udld/data-source.tf: -------------------------------------------------------------------------------- 1 | data "nxos_feature_udld" "example" { 2 | } 3 | -------------------------------------------------------------------------------- /examples/data-sources/nxos_feature_vpc/data-source.tf: -------------------------------------------------------------------------------- 1 | data "nxos_feature_vpc" "example" { 2 | } 3 | -------------------------------------------------------------------------------- /examples/data-sources/nxos_hmm_instance/data-source.tf: -------------------------------------------------------------------------------- 1 | data "nxos_hmm_instance" "example" { 2 | } 3 | -------------------------------------------------------------------------------- /examples/data-sources/nxos_nve_interface/data-source.tf: -------------------------------------------------------------------------------- 1 | data "nxos_nve_interface" "example" { 2 | } 3 | -------------------------------------------------------------------------------- /examples/data-sources/nxos_pim_instance/data-source.tf: -------------------------------------------------------------------------------- 1 | data "nxos_pim_instance" "example" { 2 | } 3 | -------------------------------------------------------------------------------- /examples/data-sources/nxos_vpc_instance/data-source.tf: -------------------------------------------------------------------------------- 1 | data "nxos_vpc_instance" "example" { 2 | } 3 | -------------------------------------------------------------------------------- /examples/data-sources/nxos_vpc_keepalive/data-source.tf: -------------------------------------------------------------------------------- 1 | data "nxos_vpc_keepalive" "example" { 2 | } 3 | -------------------------------------------------------------------------------- /examples/data-sources/nxos_vpc_peerlink/data-source.tf: -------------------------------------------------------------------------------- 1 | data "nxos_vpc_peerlink" "example" { 2 | } 3 | -------------------------------------------------------------------------------- /examples/data-sources/nxos_vrf/data-source.tf: -------------------------------------------------------------------------------- 1 | data "nxos_vrf" "example" { 2 | name = "VRF1" 3 | } 4 | -------------------------------------------------------------------------------- /examples/resources/nxos_ethernet/import.sh: -------------------------------------------------------------------------------- 1 | terraform import nxos_ethernet.example "sys/ethpm/inst" 2 | -------------------------------------------------------------------------------- /examples/data-sources/nxos_feature_macsec/data-source.tf: -------------------------------------------------------------------------------- 1 | data "nxos_feature_macsec" "example" { 2 | } 3 | -------------------------------------------------------------------------------- /examples/data-sources/nxos_feature_netflow/data-source.tf: -------------------------------------------------------------------------------- 1 | data "nxos_feature_netflow" "example" { 2 | } 3 | -------------------------------------------------------------------------------- /examples/data-sources/nxos_feature_ngmvpn/data-source.tf: -------------------------------------------------------------------------------- 1 | data "nxos_feature_ngmvpn" "example" { 2 | } 3 | -------------------------------------------------------------------------------- /examples/data-sources/nxos_feature_ospfv3/data-source.tf: -------------------------------------------------------------------------------- 1 | data "nxos_feature_ospfv3" "example" { 2 | } 3 | -------------------------------------------------------------------------------- /examples/data-sources/nxos_feature_tacacs/data-source.tf: -------------------------------------------------------------------------------- 1 | data "nxos_feature_tacacs" "example" { 2 | } 3 | -------------------------------------------------------------------------------- /examples/data-sources/nxos_feature_telnet/data-source.tf: -------------------------------------------------------------------------------- 1 | data "nxos_feature_telnet" "example" { 2 | } 3 | -------------------------------------------------------------------------------- /examples/data-sources/nxos_icmpv4_instance/data-source.tf: -------------------------------------------------------------------------------- 1 | data "nxos_icmpv4_instance" "example" { 2 | } 3 | -------------------------------------------------------------------------------- /examples/resources/nxos_bgp_instance/import.sh: -------------------------------------------------------------------------------- 1 | terraform import nxos_bgp_instance.example "sys/bgp/inst" 2 | -------------------------------------------------------------------------------- /examples/resources/nxos_feature_bfd/import.sh: -------------------------------------------------------------------------------- 1 | terraform import nxos_feature_bfd.example "sys/fm/bfd" 2 | -------------------------------------------------------------------------------- /examples/resources/nxos_feature_bgp/import.sh: -------------------------------------------------------------------------------- 1 | terraform import nxos_feature_bgp.example "sys/fm/bgp" 2 | -------------------------------------------------------------------------------- /examples/resources/nxos_feature_dhcp/import.sh: -------------------------------------------------------------------------------- 1 | terraform import nxos_feature_dhcp.example "sys/fm/dhcp" 2 | -------------------------------------------------------------------------------- /examples/resources/nxos_feature_evpn/import.sh: -------------------------------------------------------------------------------- 1 | terraform import nxos_feature_evpn.example "sys/fm/evpn" 2 | -------------------------------------------------------------------------------- /examples/resources/nxos_feature_hmm/import.sh: -------------------------------------------------------------------------------- 1 | terraform import nxos_feature_hmm.example "sys/fm/hmm" 2 | -------------------------------------------------------------------------------- /examples/resources/nxos_feature_hsrp/import.sh: -------------------------------------------------------------------------------- 1 | terraform import nxos_feature_hsrp.example "sys/fm/hsrp" 2 | -------------------------------------------------------------------------------- /examples/resources/nxos_feature_isis/import.sh: -------------------------------------------------------------------------------- 1 | terraform import nxos_feature_isis.example "sys/fm/isis" 2 | -------------------------------------------------------------------------------- /examples/resources/nxos_feature_lacp/import.sh: -------------------------------------------------------------------------------- 1 | terraform import nxos_feature_lacp.example "sys/fm/lacp" 2 | -------------------------------------------------------------------------------- /examples/resources/nxos_feature_lldp/import.sh: -------------------------------------------------------------------------------- 1 | terraform import nxos_feature_lldp.example "sys/fm/lldp" 2 | -------------------------------------------------------------------------------- /examples/resources/nxos_feature_ospf/import.sh: -------------------------------------------------------------------------------- 1 | terraform import nxos_feature_ospf.example "sys/fm/ospf" 2 | -------------------------------------------------------------------------------- /examples/resources/nxos_feature_pim/import.sh: -------------------------------------------------------------------------------- 1 | terraform import nxos_feature_pim.example "sys/fm/pim" 2 | -------------------------------------------------------------------------------- /examples/resources/nxos_feature_ptp/import.sh: -------------------------------------------------------------------------------- 1 | terraform import nxos_feature_ptp.example "sys/fm/ptp" 2 | -------------------------------------------------------------------------------- /examples/resources/nxos_feature_ssh/import.sh: -------------------------------------------------------------------------------- 1 | terraform import nxos_feature_ssh.example "sys/fm/ssh" 2 | -------------------------------------------------------------------------------- /examples/resources/nxos_feature_udld/import.sh: -------------------------------------------------------------------------------- 1 | terraform import nxos_feature_udld.example "sys/fm/udld" 2 | -------------------------------------------------------------------------------- /examples/resources/nxos_feature_vpc/import.sh: -------------------------------------------------------------------------------- 1 | terraform import nxos_feature_vpc.example "sys/fm/vpc" 2 | -------------------------------------------------------------------------------- /examples/resources/nxos_pim_instance/import.sh: -------------------------------------------------------------------------------- 1 | terraform import nxos_pim_instance.example "sys/pim/inst" 2 | -------------------------------------------------------------------------------- /examples/resources/nxos_system/resource.tf: -------------------------------------------------------------------------------- 1 | resource "nxos_system" "example" { 2 | name = "LEAF1" 3 | } 4 | -------------------------------------------------------------------------------- /examples/resources/nxos_vpc_domain/import.sh: -------------------------------------------------------------------------------- 1 | terraform import nxos_vpc_domain.example "sys/vpc/inst/dom" 2 | -------------------------------------------------------------------------------- /examples/resources/nxos_vpc_instance/import.sh: -------------------------------------------------------------------------------- 1 | terraform import nxos_vpc_instance.example "sys/vpc/inst" 2 | -------------------------------------------------------------------------------- /examples/data-sources/nxos_feature_nv_overlay/data-source.tf: -------------------------------------------------------------------------------- 1 | data "nxos_feature_nv_overlay" "example" { 2 | } 3 | -------------------------------------------------------------------------------- /examples/data-sources/nxos_feature_vn_segment/data-source.tf: -------------------------------------------------------------------------------- 1 | data "nxos_feature_vn_segment" "example" { 2 | } 3 | -------------------------------------------------------------------------------- /examples/data-sources/nxos_ipv4_vrf/data-source.tf: -------------------------------------------------------------------------------- 1 | data "nxos_ipv4_vrf" "example" { 2 | name = "VRF1" 3 | } 4 | -------------------------------------------------------------------------------- /examples/data-sources/nxos_ipv6_vrf/data-source.tf: -------------------------------------------------------------------------------- 1 | data "nxos_ipv6_vrf" "example" { 2 | name = "VRF1" 3 | } 4 | -------------------------------------------------------------------------------- /examples/data-sources/nxos_nve_vni/data-source.tf: -------------------------------------------------------------------------------- 1 | data "nxos_nve_vni" "example" { 2 | vni = 103100 3 | } 4 | -------------------------------------------------------------------------------- /examples/data-sources/nxos_nve_vni_container/data-source.tf: -------------------------------------------------------------------------------- 1 | data "nxos_nve_vni_container" "example" { 2 | } 3 | -------------------------------------------------------------------------------- /examples/resources/nxos_bgp/resource.tf: -------------------------------------------------------------------------------- 1 | resource "nxos_bgp" "example" { 2 | admin_state = "enabled" 3 | } 4 | -------------------------------------------------------------------------------- /examples/resources/nxos_bgp_vrf/import.sh: -------------------------------------------------------------------------------- 1 | terraform import nxos_bgp_vrf.example "sys/bgp/inst/dom-[default]" 2 | -------------------------------------------------------------------------------- /examples/resources/nxos_evpn/resource.tf: -------------------------------------------------------------------------------- 1 | resource "nxos_evpn" "example" { 2 | admin_state = "enabled" 3 | } 4 | -------------------------------------------------------------------------------- /examples/resources/nxos_feature_macsec/import.sh: -------------------------------------------------------------------------------- 1 | terraform import nxos_feature_macsec.example "sys/fm/macsec" 2 | -------------------------------------------------------------------------------- /examples/resources/nxos_feature_ngmvpn/import.sh: -------------------------------------------------------------------------------- 1 | terraform import nxos_feature_ngmvpn.example "sys/fm/ngmvpn" 2 | -------------------------------------------------------------------------------- /examples/resources/nxos_feature_ngoam/import.sh: -------------------------------------------------------------------------------- 1 | terraform import nxos_feature_ngoam.example "sys/fm/ngoam" 2 | -------------------------------------------------------------------------------- /examples/resources/nxos_feature_ospfv3/import.sh: -------------------------------------------------------------------------------- 1 | terraform import nxos_feature_ospfv3.example "sys/fm/ospfv3" 2 | -------------------------------------------------------------------------------- /examples/resources/nxos_feature_pvlan/import.sh: -------------------------------------------------------------------------------- 1 | terraform import nxos_feature_pvlan.example "sys/fm/pvlan" 2 | -------------------------------------------------------------------------------- /examples/resources/nxos_feature_telnet/import.sh: -------------------------------------------------------------------------------- 1 | terraform import nxos_feature_telnet.example "sys/fm/telnet" 2 | -------------------------------------------------------------------------------- /examples/resources/nxos_hmm/resource.tf: -------------------------------------------------------------------------------- 1 | resource "nxos_hmm" "example" { 2 | admin_state = "enabled" 3 | } 4 | -------------------------------------------------------------------------------- /examples/resources/nxos_hmm_instance/import.sh: -------------------------------------------------------------------------------- 1 | terraform import nxos_hmm_instance.example "sys/hmm/fwdinst" 2 | -------------------------------------------------------------------------------- /examples/resources/nxos_ipv4_vrf/import.sh: -------------------------------------------------------------------------------- 1 | terraform import nxos_ipv4_vrf.example "sys/ipv4/inst/dom-[VRF1]" 2 | -------------------------------------------------------------------------------- /examples/resources/nxos_ipv4_vrf/resource.tf: -------------------------------------------------------------------------------- 1 | resource "nxos_ipv4_vrf" "example" { 2 | name = "VRF1" 3 | } 4 | -------------------------------------------------------------------------------- /examples/resources/nxos_ipv6_vrf/import.sh: -------------------------------------------------------------------------------- 1 | terraform import nxos_ipv6_vrf.example "sys/ipv6/inst/dom-[VRF1]" 2 | -------------------------------------------------------------------------------- /examples/resources/nxos_ipv6_vrf/resource.tf: -------------------------------------------------------------------------------- 1 | resource "nxos_ipv6_vrf" "example" { 2 | name = "VRF1" 3 | } 4 | -------------------------------------------------------------------------------- /examples/resources/nxos_isis/resource.tf: -------------------------------------------------------------------------------- 1 | resource "nxos_isis" "example" { 2 | admin_state = "enabled" 3 | } 4 | -------------------------------------------------------------------------------- /examples/resources/nxos_nve_vni_container/resource.tf: -------------------------------------------------------------------------------- 1 | resource "nxos_nve_vni_container" "example" { 2 | } 3 | -------------------------------------------------------------------------------- /examples/resources/nxos_ospf/resource.tf: -------------------------------------------------------------------------------- 1 | resource "nxos_ospf" "example" { 2 | admin_state = "enabled" 3 | } 4 | -------------------------------------------------------------------------------- /examples/resources/nxos_pim/resource.tf: -------------------------------------------------------------------------------- 1 | resource "nxos_pim" "example" { 2 | admin_state = "enabled" 3 | } 4 | -------------------------------------------------------------------------------- /examples/resources/nxos_pim_vrf/import.sh: -------------------------------------------------------------------------------- 1 | terraform import nxos_pim_vrf.example "sys/pim/inst/dom-[default]" 2 | -------------------------------------------------------------------------------- /examples/resources/nxos_rest/import.sh: -------------------------------------------------------------------------------- 1 | terraform import "nxos_rest.l1PhysIf" "l1PhysIf:sys/intf/phys-[eth1/1]" -------------------------------------------------------------------------------- /gen/templates/import.sh: -------------------------------------------------------------------------------- 1 | terraform import nxos_{{snakeCase .Name}}.example "{{getExampleDn .Dn .Attributes}}" 2 | -------------------------------------------------------------------------------- /examples/data-sources/nxos_pim_vrf/data-source.tf: -------------------------------------------------------------------------------- 1 | data "nxos_pim_vrf" "example" { 2 | name = "default" 3 | } 4 | -------------------------------------------------------------------------------- /examples/data-sources/nxos_vrf_domain/data-source.tf: -------------------------------------------------------------------------------- 1 | data "nxos_vrf_domain" "example" { 2 | vrf = "VRF1" 3 | } 4 | -------------------------------------------------------------------------------- /examples/data-sources/nxos_vrf_routing/data-source.tf: -------------------------------------------------------------------------------- 1 | data "nxos_vrf_routing" "example" { 2 | vrf = "VRF1" 3 | } 4 | -------------------------------------------------------------------------------- /examples/resources/nxos_bridge_domain/import.sh: -------------------------------------------------------------------------------- 1 | terraform import nxos_bridge_domain.example "sys/bd/bd-[vlan-10]" 2 | -------------------------------------------------------------------------------- /examples/resources/nxos_evpn_vni/import.sh: -------------------------------------------------------------------------------- 1 | terraform import nxos_evpn_vni.example "sys/evpn/bdevi-[vxlan-123456]" 2 | -------------------------------------------------------------------------------- /examples/resources/nxos_feature_netflow/import.sh: -------------------------------------------------------------------------------- 1 | terraform import nxos_feature_netflow.example "sys/fm/netflow" 2 | -------------------------------------------------------------------------------- /examples/resources/nxos_feature_nv_overlay/import.sh: -------------------------------------------------------------------------------- 1 | terraform import nxos_feature_nv_overlay.example "sys/fm/nvo" 2 | -------------------------------------------------------------------------------- /examples/resources/nxos_feature_tacacs/import.sh: -------------------------------------------------------------------------------- 1 | terraform import nxos_feature_tacacs.example "sys/fm/tacacsplus" 2 | -------------------------------------------------------------------------------- /examples/resources/nxos_icmpv4/resource.tf: -------------------------------------------------------------------------------- 1 | resource "nxos_icmpv4" "example" { 2 | admin_state = "enabled" 3 | } 4 | -------------------------------------------------------------------------------- /examples/resources/nxos_icmpv4_instance/import.sh: -------------------------------------------------------------------------------- 1 | terraform import nxos_icmpv4_instance.example "sys/icmpv4/inst" 2 | -------------------------------------------------------------------------------- /examples/resources/nxos_icmpv4_vrf/import.sh: -------------------------------------------------------------------------------- 1 | terraform import nxos_icmpv4_vrf.example "sys/icmpv4/inst/dom-[VRF1]" 2 | -------------------------------------------------------------------------------- /examples/resources/nxos_ntp_server/import.sh: -------------------------------------------------------------------------------- 1 | terraform import nxos_ntp_server.example "sys/time/prov-[1.2.3.4]" 2 | -------------------------------------------------------------------------------- /examples/resources/nxos_nve_interface/import.sh: -------------------------------------------------------------------------------- 1 | terraform import nxos_nve_interface.example "sys/eps/epId-[1]" 2 | -------------------------------------------------------------------------------- /examples/resources/nxos_ospfv3/resource.tf: -------------------------------------------------------------------------------- 1 | resource "nxos_ospfv3" "example" { 2 | admin_state = "enabled" 3 | } 4 | -------------------------------------------------------------------------------- /examples/resources/nxos_vrf_domain/import.sh: -------------------------------------------------------------------------------- 1 | terraform import nxos_vrf_domain.example "sys/inst-[VRF1]/dom-[VRF1]" 2 | -------------------------------------------------------------------------------- /examples/data-sources/nxos_evpn_vni/data-source.tf: -------------------------------------------------------------------------------- 1 | data "nxos_evpn_vni" "example" { 2 | encap = "vxlan-123456" 3 | } 4 | -------------------------------------------------------------------------------- /examples/data-sources/nxos_feature_interface_vlan/data-source.tf: -------------------------------------------------------------------------------- 1 | data "nxos_feature_interface_vlan" "example" { 2 | } 3 | -------------------------------------------------------------------------------- /examples/data-sources/nxos_icmpv4_vrf/data-source.tf: -------------------------------------------------------------------------------- 1 | data "nxos_icmpv4_vrf" "example" { 2 | vrf_name = "VRF1" 3 | } 4 | -------------------------------------------------------------------------------- /examples/data-sources/nxos_ntp_server/data-source.tf: -------------------------------------------------------------------------------- 1 | data "nxos_ntp_server" "example" { 2 | name = "1.2.3.4" 3 | } 4 | -------------------------------------------------------------------------------- /examples/data-sources/nxos_rest/data-source.tf: -------------------------------------------------------------------------------- 1 | data "nxos_rest" "l1PhysIf" { 2 | dn = "sys/intf/phys-[eth1/1]" 3 | } 4 | -------------------------------------------------------------------------------- /examples/data-sources/nxos_vrf_container/data-source.tf: -------------------------------------------------------------------------------- 1 | data "nxos_vrf_container" "example" { 2 | name = "VRF1" 3 | } 4 | -------------------------------------------------------------------------------- /examples/resources/nxos_icmpv4_vrf/resource.tf: -------------------------------------------------------------------------------- 1 | resource "nxos_icmpv4_vrf" "example" { 2 | vrf_name = "VRF1" 3 | } 4 | -------------------------------------------------------------------------------- /examples/resources/nxos_isis_instance/import.sh: -------------------------------------------------------------------------------- 1 | terraform import nxos_isis_instance.example "sys/isis/inst-[ISIS1]" 2 | -------------------------------------------------------------------------------- /examples/resources/nxos_isis_interface/import.sh: -------------------------------------------------------------------------------- 1 | terraform import nxos_isis_interface.example "sys/isis/if-[eth1/10]" 2 | -------------------------------------------------------------------------------- /examples/resources/nxos_isis_vrf/import.sh: -------------------------------------------------------------------------------- 1 | terraform import nxos_isis_vrf.example "sys/isis/inst-[ISIS1]/dom-[default]" 2 | -------------------------------------------------------------------------------- /examples/resources/nxos_nve_vni/import.sh: -------------------------------------------------------------------------------- 1 | terraform import nxos_nve_vni.example "sys/eps/epId-[1]/nws/vni-[103100]" 2 | -------------------------------------------------------------------------------- /examples/resources/nxos_ospf_instance/import.sh: -------------------------------------------------------------------------------- 1 | terraform import nxos_ospf_instance.example "sys/ospf/inst-[OSPF1]" 2 | -------------------------------------------------------------------------------- /examples/resources/nxos_ospf_vrf/import.sh: -------------------------------------------------------------------------------- 1 | terraform import nxos_ospf_vrf.example "sys/ospf/inst-[OSPF1]/dom-[VRF1]" 2 | -------------------------------------------------------------------------------- /examples/resources/nxos_route_map_rule/import.sh: -------------------------------------------------------------------------------- 1 | terraform import nxos_route_map_rule.example "sys/rpm/rtmap-[RULE1]" 2 | -------------------------------------------------------------------------------- /examples/resources/nxos_svi_interface/import.sh: -------------------------------------------------------------------------------- 1 | terraform import nxos_svi_interface.example "sys/intf/svi-[vlan293]" 2 | -------------------------------------------------------------------------------- /examples/resources/nxos_vpc_interface/import.sh: -------------------------------------------------------------------------------- 1 | terraform import nxos_vpc_interface.example "sys/vpc/inst/dom/if-[1]" 2 | -------------------------------------------------------------------------------- /examples/resources/nxos_vrf_container/import.sh: -------------------------------------------------------------------------------- 1 | terraform import nxos_vrf_container.example "sys/ipv4/inst/dom-[VRF1]" 2 | -------------------------------------------------------------------------------- /examples/resources/nxos_vrf_container/resource.tf: -------------------------------------------------------------------------------- 1 | resource "nxos_vrf_container" "example" { 2 | name = "VRF1" 3 | } 4 | -------------------------------------------------------------------------------- /examples/resources/nxos_vrf_routing/import.sh: -------------------------------------------------------------------------------- 1 | terraform import nxos_vrf_routing.example "sys/inst-[VRF1]/dom-[VRF1]" 2 | -------------------------------------------------------------------------------- /examples/data-sources/nxos_isis_instance/data-source.tf: -------------------------------------------------------------------------------- 1 | data "nxos_isis_instance" "example" { 2 | name = "ISIS1" 3 | } 4 | -------------------------------------------------------------------------------- /examples/data-sources/nxos_ospf_instance/data-source.tf: -------------------------------------------------------------------------------- 1 | data "nxos_ospf_instance" "example" { 2 | name = "OSPF1" 3 | } 4 | -------------------------------------------------------------------------------- /examples/data-sources/nxos_route_map_rule/data-source.tf: -------------------------------------------------------------------------------- 1 | data "nxos_route_map_rule" "example" { 2 | name = "RULE1" 3 | } 4 | -------------------------------------------------------------------------------- /examples/resources/nxos_feature_bfd/resource.tf: -------------------------------------------------------------------------------- 1 | resource "nxos_feature_bfd" "example" { 2 | admin_state = "enabled" 3 | } 4 | -------------------------------------------------------------------------------- /examples/resources/nxos_feature_bgp/resource.tf: -------------------------------------------------------------------------------- 1 | resource "nxos_feature_bgp" "example" { 2 | admin_state = "enabled" 3 | } 4 | -------------------------------------------------------------------------------- /examples/resources/nxos_feature_hmm/resource.tf: -------------------------------------------------------------------------------- 1 | resource "nxos_feature_hmm" "example" { 2 | admin_state = "enabled" 3 | } 4 | -------------------------------------------------------------------------------- /examples/resources/nxos_feature_pim/resource.tf: -------------------------------------------------------------------------------- 1 | resource "nxos_feature_pim" "example" { 2 | admin_state = "enabled" 3 | } 4 | -------------------------------------------------------------------------------- /examples/resources/nxos_feature_ptp/resource.tf: -------------------------------------------------------------------------------- 1 | resource "nxos_feature_ptp" "example" { 2 | admin_state = "enabled" 3 | } 4 | -------------------------------------------------------------------------------- /examples/resources/nxos_feature_ssh/resource.tf: -------------------------------------------------------------------------------- 1 | resource "nxos_feature_ssh" "example" { 2 | admin_state = "enabled" 3 | } 4 | -------------------------------------------------------------------------------- /examples/resources/nxos_feature_vn_segment/import.sh: -------------------------------------------------------------------------------- 1 | terraform import nxos_feature_vn_segment.example "sys/fm/vnsegment" 2 | -------------------------------------------------------------------------------- /examples/resources/nxos_feature_vpc/resource.tf: -------------------------------------------------------------------------------- 1 | resource "nxos_feature_vpc" "example" { 2 | admin_state = "enabled" 3 | } 4 | -------------------------------------------------------------------------------- /examples/resources/nxos_hmm_interface/import.sh: -------------------------------------------------------------------------------- 1 | terraform import nxos_hmm_interface.example "sys/hmm/fwdinst/if-[vlan10]" 2 | -------------------------------------------------------------------------------- /examples/resources/nxos_ipv4_access_list/import.sh: -------------------------------------------------------------------------------- 1 | terraform import nxos_ipv4_access_list.example "sys/acl/ipv4/name-[ACL1]" 2 | -------------------------------------------------------------------------------- /examples/resources/nxos_ipv4_access_list/resource.tf: -------------------------------------------------------------------------------- 1 | resource "nxos_ipv4_access_list" "example" { 2 | name = "ACL1" 3 | } 4 | -------------------------------------------------------------------------------- /examples/resources/nxos_loopback_interface/import.sh: -------------------------------------------------------------------------------- 1 | terraform import nxos_loopback_interface.example "sys/intf/lb-[lo123]" 2 | -------------------------------------------------------------------------------- /examples/resources/nxos_nve_vni_container/import.sh: -------------------------------------------------------------------------------- 1 | terraform import nxos_nve_vni_container.example "sys/eps/epId-[1]/nws" 2 | -------------------------------------------------------------------------------- /examples/resources/nxos_ospfv3_instance/import.sh: -------------------------------------------------------------------------------- 1 | terraform import nxos_ospfv3_instance.example "sys/ospfv3/inst-[OSPFv3]" 2 | -------------------------------------------------------------------------------- /examples/resources/nxos_ospfv3_interface/import.sh: -------------------------------------------------------------------------------- 1 | terraform import nxos_ospfv3_interface.example "sys/ospfv3/if-[eth1/10]" 2 | -------------------------------------------------------------------------------- /examples/resources/nxos_route_map_rule/resource.tf: -------------------------------------------------------------------------------- 1 | resource "nxos_route_map_rule" "example" { 2 | name = "RULE1" 3 | } 4 | -------------------------------------------------------------------------------- /examples/resources/nxos_subinterface/import.sh: -------------------------------------------------------------------------------- 1 | terraform import nxos_subinterface.example "sys/intf/encrtd-[eth1/10.124]" 2 | -------------------------------------------------------------------------------- /examples/resources/nxos_vpc_keepalive/import.sh: -------------------------------------------------------------------------------- 1 | terraform import nxos_vpc_keepalive.example "sys/vpc/inst/dom/keepalive" 2 | -------------------------------------------------------------------------------- /examples/data-sources/nxos_hmm_interface/data-source.tf: -------------------------------------------------------------------------------- 1 | data "nxos_hmm_interface" "example" { 2 | interface_id = "vlan10" 3 | } 4 | -------------------------------------------------------------------------------- /examples/data-sources/nxos_ipv4_access_list/data-source.tf: -------------------------------------------------------------------------------- 1 | data "nxos_ipv4_access_list" "example" { 2 | name = "ACL1" 3 | } 4 | -------------------------------------------------------------------------------- /examples/data-sources/nxos_ospfv3_instance/data-source.tf: -------------------------------------------------------------------------------- 1 | data "nxos_ospfv3_instance" "example" { 2 | name = "OSPFv3" 3 | } 4 | -------------------------------------------------------------------------------- /examples/data-sources/nxos_pim_anycast_rp/data-source.tf: -------------------------------------------------------------------------------- 1 | data "nxos_pim_anycast_rp" "example" { 2 | vrf_name = "default" 3 | } 4 | -------------------------------------------------------------------------------- /examples/data-sources/nxos_pim_ssm_policy/data-source.tf: -------------------------------------------------------------------------------- 1 | data "nxos_pim_ssm_policy" "example" { 2 | vrf_name = "default" 3 | } 4 | -------------------------------------------------------------------------------- /examples/data-sources/nxos_pim_ssm_range/data-source.tf: -------------------------------------------------------------------------------- 1 | data "nxos_pim_ssm_range" "example" { 2 | vrf_name = "default" 3 | } 4 | -------------------------------------------------------------------------------- /examples/data-sources/nxos_vpc_interface/data-source.tf: -------------------------------------------------------------------------------- 1 | data "nxos_vpc_interface" "example" { 2 | vpc_interface_id = 1 3 | } 4 | -------------------------------------------------------------------------------- /examples/resources/nxos_bgp_peer/import.sh: -------------------------------------------------------------------------------- 1 | terraform import nxos_bgp_peer.example "sys/bgp/inst/dom-[default]/peer-[192.168.0.1]" 2 | -------------------------------------------------------------------------------- /examples/resources/nxos_feature_dhcp/resource.tf: -------------------------------------------------------------------------------- 1 | resource "nxos_feature_dhcp" "example" { 2 | admin_state = "enabled" 3 | } 4 | -------------------------------------------------------------------------------- /examples/resources/nxos_feature_evpn/resource.tf: -------------------------------------------------------------------------------- 1 | resource "nxos_feature_evpn" "example" { 2 | admin_state = "enabled" 3 | } 4 | -------------------------------------------------------------------------------- /examples/resources/nxos_feature_hsrp/resource.tf: -------------------------------------------------------------------------------- 1 | resource "nxos_feature_hsrp" "example" { 2 | admin_state = "enabled" 3 | } 4 | -------------------------------------------------------------------------------- /examples/resources/nxos_feature_interface_vlan/import.sh: -------------------------------------------------------------------------------- 1 | terraform import nxos_feature_interface_vlan.example "sys/fm/ifvlan" 2 | -------------------------------------------------------------------------------- /examples/resources/nxos_feature_isis/resource.tf: -------------------------------------------------------------------------------- 1 | resource "nxos_feature_isis" "example" { 2 | admin_state = "enabled" 3 | } 4 | -------------------------------------------------------------------------------- /examples/resources/nxos_feature_lacp/resource.tf: -------------------------------------------------------------------------------- 1 | resource "nxos_feature_lacp" "example" { 2 | admin_state = "enabled" 3 | } 4 | -------------------------------------------------------------------------------- /examples/resources/nxos_feature_lldp/resource.tf: -------------------------------------------------------------------------------- 1 | resource "nxos_feature_lldp" "example" { 2 | admin_state = "enabled" 3 | } 4 | -------------------------------------------------------------------------------- /examples/resources/nxos_feature_macsec/resource.tf: -------------------------------------------------------------------------------- 1 | resource "nxos_feature_macsec" "example" { 2 | admin_state = "enabled" 3 | } 4 | -------------------------------------------------------------------------------- /examples/resources/nxos_feature_ngmvpn/resource.tf: -------------------------------------------------------------------------------- 1 | resource "nxos_feature_ngmvpn" "example" { 2 | admin_state = "enabled" 3 | } 4 | -------------------------------------------------------------------------------- /examples/resources/nxos_feature_ngoam/resource.tf: -------------------------------------------------------------------------------- 1 | resource "nxos_feature_ngoam" "example" { 2 | admin_state = "enabled" 3 | } 4 | -------------------------------------------------------------------------------- /examples/resources/nxos_feature_ospf/resource.tf: -------------------------------------------------------------------------------- 1 | resource "nxos_feature_ospf" "example" { 2 | admin_state = "enabled" 3 | } 4 | -------------------------------------------------------------------------------- /examples/resources/nxos_feature_ospfv3/resource.tf: -------------------------------------------------------------------------------- 1 | resource "nxos_feature_ospfv3" "example" { 2 | admin_state = "enabled" 3 | } 4 | -------------------------------------------------------------------------------- /examples/resources/nxos_feature_pvlan/resource.tf: -------------------------------------------------------------------------------- 1 | resource "nxos_feature_pvlan" "example" { 2 | admin_state = "enabled" 3 | } 4 | -------------------------------------------------------------------------------- /examples/resources/nxos_feature_tacacs/resource.tf: -------------------------------------------------------------------------------- 1 | resource "nxos_feature_tacacs" "example" { 2 | admin_state = "enabled" 3 | } 4 | -------------------------------------------------------------------------------- /examples/resources/nxos_feature_telnet/resource.tf: -------------------------------------------------------------------------------- 1 | resource "nxos_feature_telnet" "example" { 2 | admin_state = "enabled" 3 | } 4 | -------------------------------------------------------------------------------- /examples/resources/nxos_feature_udld/resource.tf: -------------------------------------------------------------------------------- 1 | resource "nxos_feature_udld" "example" { 2 | admin_state = "enabled" 3 | } 4 | -------------------------------------------------------------------------------- /examples/resources/nxos_ospfv3_vrf/import.sh: -------------------------------------------------------------------------------- 1 | terraform import nxos_ospfv3_vrf.example "sys/ospfv3/inst-[nac-ospfv3]/dom-[VRF1]" 2 | -------------------------------------------------------------------------------- /examples/resources/nxos_physical_interface/import.sh: -------------------------------------------------------------------------------- 1 | terraform import nxos_physical_interface.example "sys/intf/phys-[eth1/10]" 2 | -------------------------------------------------------------------------------- /examples/resources/nxos_pim_instance/resource.tf: -------------------------------------------------------------------------------- 1 | resource "nxos_pim_instance" "example" { 2 | admin_state = "enabled" 3 | } 4 | -------------------------------------------------------------------------------- /examples/resources/nxos_pim_ssm_policy/import.sh: -------------------------------------------------------------------------------- 1 | terraform import nxos_pim_ssm_policy.example "sys/pim/inst/dom-[default]/ssm" 2 | -------------------------------------------------------------------------------- /examples/resources/nxos_queuing_qos_policy_system_out/resource.tf: -------------------------------------------------------------------------------- 1 | resource "nxos_queuing_qos_policy_system_out" "example" { 2 | } 3 | -------------------------------------------------------------------------------- /examples/resources/nxos_vpc_instance/resource.tf: -------------------------------------------------------------------------------- 1 | resource "nxos_vpc_instance" "example" { 2 | admin_state = "enabled" 3 | } 4 | -------------------------------------------------------------------------------- /examples/resources/nxos_vpc_peerlink/import.sh: -------------------------------------------------------------------------------- 1 | terraform import nxos_vpc_peerlink.example "sys/vpc/inst/dom/keepalive/peerlink" 2 | -------------------------------------------------------------------------------- /examples/resources/nxos_vpc_peerlink/resource.tf: -------------------------------------------------------------------------------- 1 | resource "nxos_vpc_peerlink" "example" { 2 | port_channel_id = "po1" 3 | } 4 | -------------------------------------------------------------------------------- /examples/data-sources/nxos_bgp_instance_domain/data-source.tf: -------------------------------------------------------------------------------- 1 | data "nxos_bgp_instance_domain" "example" { 2 | vrf = "default" 3 | } 4 | -------------------------------------------------------------------------------- /examples/data-sources/nxos_bgp_vrf/data-source.tf: -------------------------------------------------------------------------------- 1 | data "nxos_bgp_vrf" "example" { 2 | asn = "65001" 3 | name = "default" 4 | } 5 | -------------------------------------------------------------------------------- /examples/data-sources/nxos_bridge_domain/data-source.tf: -------------------------------------------------------------------------------- 1 | data "nxos_bridge_domain" "example" { 2 | fabric_encap = "vlan-10" 3 | } 4 | -------------------------------------------------------------------------------- /examples/data-sources/nxos_isis_interface/data-source.tf: -------------------------------------------------------------------------------- 1 | data "nxos_isis_interface" "example" { 2 | interface_id = "eth1/10" 3 | } 4 | -------------------------------------------------------------------------------- /examples/data-sources/nxos_queuing_qos_policy_system_out/data-source.tf: -------------------------------------------------------------------------------- 1 | data "nxos_queuing_qos_policy_system_out" "example" { 2 | } 3 | -------------------------------------------------------------------------------- /examples/data-sources/nxos_subinterface/data-source.tf: -------------------------------------------------------------------------------- 1 | data "nxos_subinterface" "example" { 2 | interface_id = "eth1/10.124" 3 | } 4 | -------------------------------------------------------------------------------- /examples/data-sources/nxos_svi_interface/data-source.tf: -------------------------------------------------------------------------------- 1 | data "nxos_svi_interface" "example" { 2 | interface_id = "vlan293" 3 | } 4 | -------------------------------------------------------------------------------- /examples/resources/nxos_bgp_instance_domain/import.sh: -------------------------------------------------------------------------------- 1 | terraform import nxos_bgp_instance_domain.example "sys/bgp/inst/dom-[default]" 2 | -------------------------------------------------------------------------------- /examples/resources/nxos_feature_netflow/resource.tf: -------------------------------------------------------------------------------- 1 | resource "nxos_feature_netflow" "example" { 2 | admin_state = "enabled" 3 | } 4 | -------------------------------------------------------------------------------- /examples/resources/nxos_icmpv4_instance/resource.tf: -------------------------------------------------------------------------------- 1 | resource "nxos_icmpv4_instance" "example" { 2 | admin_state = "enabled" 3 | } 4 | -------------------------------------------------------------------------------- /examples/resources/nxos_ipv4_prefix_list_rule/resource.tf: -------------------------------------------------------------------------------- 1 | resource "nxos_ipv4_prefix_list_rule" "example" { 2 | name = "RULE1" 3 | } 4 | -------------------------------------------------------------------------------- /examples/resources/nxos_ospf_area/import.sh: -------------------------------------------------------------------------------- 1 | terraform import nxos_ospf_area.example "sys/ospf/inst-[OSPF1]/dom-[VRF1]/area-[0.0.0.10]" 2 | -------------------------------------------------------------------------------- /examples/resources/nxos_pim_anycast_rp/import.sh: -------------------------------------------------------------------------------- 1 | terraform import nxos_pim_anycast_rp.example "sys/pim/inst/dom-[default]/acastrpfunc" 2 | -------------------------------------------------------------------------------- /examples/resources/nxos_pim_interface/import.sh: -------------------------------------------------------------------------------- 1 | terraform import nxos_pim_interface.example "sys/pim/inst/dom-[default]/if-[eth1/10]" 2 | -------------------------------------------------------------------------------- /examples/resources/nxos_pim_ssm_range/import.sh: -------------------------------------------------------------------------------- 1 | terraform import nxos_pim_ssm_range.example "sys/pim/inst/dom-[default]/ssm/range" 2 | -------------------------------------------------------------------------------- /examples/resources/nxos_port_channel_interface/import.sh: -------------------------------------------------------------------------------- 1 | terraform import nxos_port_channel_interface.example "sys/intf/aggr-[po1]" 2 | -------------------------------------------------------------------------------- /examples/resources/nxos_svi_interface_vrf/import.sh: -------------------------------------------------------------------------------- 1 | terraform import nxos_svi_interface_vrf.example "sys/intf/svi-[vlan293]/rtvrfMbr" 2 | -------------------------------------------------------------------------------- /examples/data-sources/nxos_default_qos_class_map/data-source.tf: -------------------------------------------------------------------------------- 1 | data "nxos_default_qos_class_map" "example" { 2 | name = "Voice" 3 | } 4 | -------------------------------------------------------------------------------- /examples/data-sources/nxos_default_qos_policy_map/data-source.tf: -------------------------------------------------------------------------------- 1 | data "nxos_default_qos_policy_map" "example" { 2 | name = "PM1" 3 | } 4 | -------------------------------------------------------------------------------- /examples/data-sources/nxos_ipv4_prefix_list_rule/data-source.tf: -------------------------------------------------------------------------------- 1 | data "nxos_ipv4_prefix_list_rule" "example" { 2 | name = "RULE1" 3 | } 4 | -------------------------------------------------------------------------------- /examples/data-sources/nxos_loopback_interface/data-source.tf: -------------------------------------------------------------------------------- 1 | data "nxos_loopback_interface" "example" { 2 | interface_id = "lo123" 3 | } 4 | -------------------------------------------------------------------------------- /examples/data-sources/nxos_ospfv3_interface/data-source.tf: -------------------------------------------------------------------------------- 1 | data "nxos_ospfv3_interface" "example" { 2 | interface_id = "eth1/10" 3 | } 4 | -------------------------------------------------------------------------------- /examples/data-sources/nxos_queuing_qos_policy_map/data-source.tf: -------------------------------------------------------------------------------- 1 | data "nxos_queuing_qos_policy_map" "example" { 2 | name = "PM1" 3 | } 4 | -------------------------------------------------------------------------------- /examples/data-sources/nxos_svi_interface_vrf/data-source.tf: -------------------------------------------------------------------------------- 1 | data "nxos_svi_interface_vrf" "example" { 2 | interface_id = "vlan293" 3 | } 4 | -------------------------------------------------------------------------------- /examples/resources/nxos_bgp_graceful_restart/import.sh: -------------------------------------------------------------------------------- 1 | terraform import nxos_bgp_graceful_restart.example "sys/bgp/inst/dom-[default]/gr" 2 | -------------------------------------------------------------------------------- /examples/resources/nxos_bgp_route_control/import.sh: -------------------------------------------------------------------------------- 1 | terraform import nxos_bgp_route_control.example "sys/bgp/inst/dom-[default]/rtctrl" 2 | -------------------------------------------------------------------------------- /examples/resources/nxos_default_qos_class_map/import.sh: -------------------------------------------------------------------------------- 1 | terraform import nxos_default_qos_class_map.example "sys/ipqos/dflt/c/name-[Voice]" 2 | -------------------------------------------------------------------------------- /examples/resources/nxos_default_qos_policy_map/import.sh: -------------------------------------------------------------------------------- 1 | terraform import nxos_default_qos_policy_map.example "sys/ipqos/dflt/p/name-[PM1]" 2 | -------------------------------------------------------------------------------- /examples/resources/nxos_dhcp_relay_interface/import.sh: -------------------------------------------------------------------------------- 1 | terraform import nxos_dhcp_relay_interface.example "sys/dhcp/inst/relayif-[eth1/10]" 2 | -------------------------------------------------------------------------------- /examples/resources/nxos_feature_nv_overlay/resource.tf: -------------------------------------------------------------------------------- 1 | resource "nxos_feature_nv_overlay" "example" { 2 | admin_state = "enabled" 3 | } 4 | -------------------------------------------------------------------------------- /examples/resources/nxos_feature_vn_segment/resource.tf: -------------------------------------------------------------------------------- 1 | resource "nxos_feature_vn_segment" "example" { 2 | admin_state = "enabled" 3 | } 4 | -------------------------------------------------------------------------------- /examples/resources/nxos_icmpv4_interface/import.sh: -------------------------------------------------------------------------------- 1 | terraform import nxos_icmpv4_interface.example "sys/icmpv4/inst/dom-[VRF1]/if-[vlan10]" 2 | -------------------------------------------------------------------------------- /examples/resources/nxos_ipv4_interface/import.sh: -------------------------------------------------------------------------------- 1 | terraform import nxos_ipv4_interface.example "sys/ipv4/inst/dom-[default]/if-[eth1/10]" 2 | -------------------------------------------------------------------------------- /examples/resources/nxos_ipv4_prefix_list_rule/import.sh: -------------------------------------------------------------------------------- 1 | terraform import nxos_ipv4_prefix_list_rule.example "sys/rpm/pfxlistv4-[RULE1]" 2 | -------------------------------------------------------------------------------- /examples/resources/nxos_ipv6_interface/import.sh: -------------------------------------------------------------------------------- 1 | terraform import nxos_ipv6_interface.example "sys/ipv6/inst/dom-[default]/if-[eth1/10]" 2 | -------------------------------------------------------------------------------- /examples/resources/nxos_isis_overload/import.sh: -------------------------------------------------------------------------------- 1 | terraform import nxos_isis_overload.example "sys/isis/inst-[ISIS1]/dom-[default]/overload" 2 | -------------------------------------------------------------------------------- /examples/resources/nxos_route_map_rule_entry/import.sh: -------------------------------------------------------------------------------- 1 | terraform import nxos_route_map_rule_entry.example "sys/rpm/rtmap-[RULE1]/ent-[10]" 2 | -------------------------------------------------------------------------------- /examples/resources/nxos_spanning_tree_interface/import.sh: -------------------------------------------------------------------------------- 1 | terraform import nxos_spanning_tree_interface.example "sys/stp/inst/if-[eth1/9]" 2 | -------------------------------------------------------------------------------- /examples/resources/nxos_subinterface_vrf/import.sh: -------------------------------------------------------------------------------- 1 | terraform import nxos_subinterface_vrf.example "sys/intf/encrtd-[eth1/10.124]/rtvrfMbr" 2 | -------------------------------------------------------------------------------- /examples/resources/nxos_vrf_domain/resource.tf: -------------------------------------------------------------------------------- 1 | resource "nxos_vrf_domain" "example" { 2 | vrf = "VRF1" 3 | rd = "rd:unknown:0:0" 4 | } 5 | -------------------------------------------------------------------------------- /examples/resources/nxos_vrf_domain_af/import.sh: -------------------------------------------------------------------------------- 1 | terraform import nxos_vrf_domain_af.example "sys/inst-[VRF1]/dom-[VRF1]/af-[ipv4-ucast]" 2 | -------------------------------------------------------------------------------- /terraform-registry-manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "version": 1, 3 | "metadata": { 4 | "protocol_versions": ["6.0"] 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /examples/data-sources/nxos_dhcp_relay_interface/data-source.tf: -------------------------------------------------------------------------------- 1 | data "nxos_dhcp_relay_interface" "example" { 2 | interface_id = "eth1/10" 3 | } 4 | -------------------------------------------------------------------------------- /examples/data-sources/nxos_physical_interface/data-source.tf: -------------------------------------------------------------------------------- 1 | data "nxos_physical_interface" "example" { 2 | interface_id = "eth1/10" 3 | } 4 | -------------------------------------------------------------------------------- /examples/data-sources/nxos_pim_static_rp_policy/data-source.tf: -------------------------------------------------------------------------------- 1 | data "nxos_pim_static_rp_policy" "example" { 2 | vrf_name = "default" 3 | } 4 | -------------------------------------------------------------------------------- /examples/data-sources/nxos_port_channel_interface/data-source.tf: -------------------------------------------------------------------------------- 1 | data "nxos_port_channel_interface" "example" { 2 | interface_id = "po1" 3 | } 4 | -------------------------------------------------------------------------------- /examples/data-sources/nxos_subinterface_vrf/data-source.tf: -------------------------------------------------------------------------------- 1 | data "nxos_subinterface_vrf" "example" { 2 | interface_id = "eth1/10.124" 3 | } 4 | -------------------------------------------------------------------------------- /examples/data-sources/nxos_vrf_domain_af/data-source.tf: -------------------------------------------------------------------------------- 1 | data "nxos_vrf_domain_af" "example" { 2 | vrf = "VRF1" 3 | af = "ipv4-ucast" 4 | } 5 | -------------------------------------------------------------------------------- /examples/provider/provider.tf: -------------------------------------------------------------------------------- 1 | provider "nxos" { 2 | username = "admin" 3 | password = "password" 4 | url = "https://10.1.1.1" 5 | } 6 | -------------------------------------------------------------------------------- /examples/resources/nxos_dhcp_relay_interface/resource.tf: -------------------------------------------------------------------------------- 1 | resource "nxos_dhcp_relay_interface" "example" { 2 | interface_id = "eth1/10" 3 | } 4 | -------------------------------------------------------------------------------- /examples/resources/nxos_loopback_interface_vrf/import.sh: -------------------------------------------------------------------------------- 1 | terraform import nxos_loopback_interface_vrf.example "sys/intf/lb-[lo123]/rtvrfMbr" 2 | -------------------------------------------------------------------------------- /examples/resources/nxos_ospf_interface/import.sh: -------------------------------------------------------------------------------- 1 | terraform import nxos_ospf_interface.example "sys/ospf/inst-[OSPF1]/dom-[VRF1]/if-[eth1/10]" 2 | -------------------------------------------------------------------------------- /examples/resources/nxos_physical_interface_vrf/import.sh: -------------------------------------------------------------------------------- 1 | terraform import nxos_physical_interface_vrf.example "sys/intf/phys-[eth1/10]/rtvrfMbr" 2 | -------------------------------------------------------------------------------- /examples/resources/nxos_pim_static_rp/import.sh: -------------------------------------------------------------------------------- 1 | terraform import nxos_pim_static_rp.example "sys/pim/inst/dom-[default]/staticrp/rp-[1.2.3.4]" 2 | -------------------------------------------------------------------------------- /examples/resources/nxos_pim_static_rp_policy/import.sh: -------------------------------------------------------------------------------- 1 | terraform import nxos_pim_static_rp_policy.example "sys/pim/inst/dom-[default]/staticrp" 2 | -------------------------------------------------------------------------------- /examples/resources/nxos_queuing_qos_policy_map/import.sh: -------------------------------------------------------------------------------- 1 | terraform import nxos_queuing_qos_policy_map.example "sys/ipqos/queuing/p/name-[PM1]" 2 | -------------------------------------------------------------------------------- /examples/resources/nxos_vrf_domain_af/resource.tf: -------------------------------------------------------------------------------- 1 | resource "nxos_vrf_domain_af" "example" { 2 | vrf = "VRF1" 3 | af = "ipv4-ucast" 4 | } 5 | -------------------------------------------------------------------------------- /examples/data-sources/nxos_bgp_route_control/data-source.tf: -------------------------------------------------------------------------------- 1 | data "nxos_bgp_route_control" "example" { 2 | asn = "65001" 3 | vrf = "default" 4 | } 5 | -------------------------------------------------------------------------------- /examples/data-sources/nxos_loopback_interface_vrf/data-source.tf: -------------------------------------------------------------------------------- 1 | data "nxos_loopback_interface_vrf" "example" { 2 | interface_id = "lo123" 3 | } 4 | -------------------------------------------------------------------------------- /examples/data-sources/nxos_nve_vni_ingress_replication/data-source.tf: -------------------------------------------------------------------------------- 1 | data "nxos_nve_vni_ingress_replication" "example" { 2 | vni = 103100 3 | } 4 | -------------------------------------------------------------------------------- /examples/data-sources/nxos_ospf_vrf/data-source.tf: -------------------------------------------------------------------------------- 1 | data "nxos_ospf_vrf" "example" { 2 | instance_name = "OSPF1" 3 | name = "VRF1" 4 | } 5 | -------------------------------------------------------------------------------- /examples/data-sources/nxos_physical_interface_vrf/data-source.tf: -------------------------------------------------------------------------------- 1 | data "nxos_physical_interface_vrf" "example" { 2 | interface_id = "eth1/10" 3 | } 4 | -------------------------------------------------------------------------------- /examples/data-sources/nxos_spanning_tree_interface/data-source.tf: -------------------------------------------------------------------------------- 1 | data "nxos_spanning_tree_interface" "example" { 2 | interface_id = "eth1/9" 3 | } 4 | -------------------------------------------------------------------------------- /examples/resources/nxos_bgp_address_family/import.sh: -------------------------------------------------------------------------------- 1 | terraform import nxos_bgp_address_family.example "sys/bgp/inst/dom-[default]/af-[ipv4-ucast]" 2 | -------------------------------------------------------------------------------- /examples/resources/nxos_feature_interface_vlan/resource.tf: -------------------------------------------------------------------------------- 1 | resource "nxos_feature_interface_vlan" "example" { 2 | admin_state = "enabled" 3 | } 4 | -------------------------------------------------------------------------------- /examples/resources/nxos_ipv4_access_list_entry/import.sh: -------------------------------------------------------------------------------- 1 | terraform import nxos_ipv4_access_list_entry.example "sys/acl/ipv4/name-[ACL1]/seq-[10]" 2 | -------------------------------------------------------------------------------- /examples/resources/nxos_ipv4_static_route/import.sh: -------------------------------------------------------------------------------- 1 | terraform import nxos_ipv4_static_route.example "sys/ipv4/inst/dom-[default]/rt-[1.1.1.0/24]" 2 | -------------------------------------------------------------------------------- /examples/resources/nxos_isis_address_family/import.sh: -------------------------------------------------------------------------------- 1 | terraform import nxos_isis_address_family.example "sys/isis/inst-[ISIS1]/dom-[default]/af-[v4]" 2 | -------------------------------------------------------------------------------- /examples/resources/nxos_ospfv3_area/import.sh: -------------------------------------------------------------------------------- 1 | terraform import nxos_ospfv3_area.example "sys/ospfv3/inst-[nac-ospfv3]/dom-[VRF1]/area-[0.0.0.10]" 2 | -------------------------------------------------------------------------------- /examples/resources/nxos_pim_ssm_policy/resource.tf: -------------------------------------------------------------------------------- 1 | resource "nxos_pim_ssm_policy" "example" { 2 | vrf_name = "default" 3 | name = "SSM" 4 | } 5 | -------------------------------------------------------------------------------- /examples/resources/nxos_port_channel_interface_vrf/import.sh: -------------------------------------------------------------------------------- 1 | terraform import nxos_port_channel_interface_vrf.example "sys/intf/aggr-[po1]/rtvrfMbr" 2 | -------------------------------------------------------------------------------- /examples/resources/nxos_vrf_address_family/import.sh: -------------------------------------------------------------------------------- 1 | terraform import nxos_vrf_address_family.example "sys/inst-[VRF1]/dom-[VRF1]/af-[ipv4-ucast]" 2 | -------------------------------------------------------------------------------- /GNUmakefile: -------------------------------------------------------------------------------- 1 | default: testacc 2 | 3 | # Run acceptance tests 4 | .PHONY: testacc 5 | testacc: 6 | TF_ACC=1 go test ./... -v $(TESTARGS) -timeout 120m 7 | -------------------------------------------------------------------------------- /examples/data-sources/nxos_isis_vrf/data-source.tf: -------------------------------------------------------------------------------- 1 | data "nxos_isis_vrf" "example" { 2 | instance_name = "ISIS1" 3 | name = "default" 4 | } 5 | -------------------------------------------------------------------------------- /examples/data-sources/nxos_pim_static_rp/data-source.tf: -------------------------------------------------------------------------------- 1 | data "nxos_pim_static_rp" "example" { 2 | vrf_name = "default" 3 | address = "1.2.3.4" 4 | } 5 | -------------------------------------------------------------------------------- /examples/data-sources/nxos_port_channel_interface_vrf/data-source.tf: -------------------------------------------------------------------------------- 1 | data "nxos_port_channel_interface_vrf" "example" { 2 | interface_id = "po1" 3 | } 4 | -------------------------------------------------------------------------------- /examples/data-sources/nxos_queuing_qos_policy_system_out_policy_map/data-source.tf: -------------------------------------------------------------------------------- 1 | data "nxos_queuing_qos_policy_system_out_policy_map" "example" { 2 | } 3 | -------------------------------------------------------------------------------- /examples/resources/nxos_bgp_instance_domain_af/import.sh: -------------------------------------------------------------------------------- 1 | terraform import nxos_bgp_instance_domain_af.example "sys/bgp/inst/dom-[default]/af-[ipv4-ucast]" 2 | -------------------------------------------------------------------------------- /examples/resources/nxos_bgp_peer_template/import.sh: -------------------------------------------------------------------------------- 1 | terraform import nxos_bgp_peer_template.example "sys/bgp/inst/dom-[default]/peercont-[SPINE-PEERS]" 2 | -------------------------------------------------------------------------------- /examples/resources/nxos_pim_static_rp/resource.tf: -------------------------------------------------------------------------------- 1 | resource "nxos_pim_static_rp" "example" { 2 | vrf_name = "default" 3 | address = "1.2.3.4" 4 | } 5 | -------------------------------------------------------------------------------- /examples/data-sources/nxos_bgp_graceful_restart/data-source.tf: -------------------------------------------------------------------------------- 1 | data "nxos_bgp_graceful_restart" "example" { 2 | asn = "65001" 3 | vrf = "default" 4 | } 5 | -------------------------------------------------------------------------------- /examples/data-sources/nxos_ospfv3_vrf/data-source.tf: -------------------------------------------------------------------------------- 1 | data "nxos_ospfv3_vrf" "example" { 2 | instance_name = "nac-ospfv3" 3 | name = "VRF1" 4 | } 5 | -------------------------------------------------------------------------------- /examples/resources/nxos_bgp_peer_local_asn/import.sh: -------------------------------------------------------------------------------- 1 | terraform import nxos_bgp_peer_local_asn.example "sys/bgp/inst/dom-[default]/peer-[192.168.0.1]/localasn" 2 | -------------------------------------------------------------------------------- /examples/resources/nxos_default_qos_class_map_dscp/import.sh: -------------------------------------------------------------------------------- 1 | terraform import nxos_default_qos_class_map_dscp.example "sys/ipqos/dflt/c/name-[Voice]/dscp-[ef]" 2 | -------------------------------------------------------------------------------- /examples/resources/nxos_dhcp_relay_address/import.sh: -------------------------------------------------------------------------------- 1 | terraform import nxos_dhcp_relay_address.example "sys/dhcp/inst/relayif-[eth1/10]/addr-[VRF1]-[1.1.1.1]" 2 | -------------------------------------------------------------------------------- /examples/resources/nxos_ethernet/resource.tf: -------------------------------------------------------------------------------- 1 | resource "nxos_ethernet" "example" { 2 | mtu = 9216 3 | default_admin_status = "up" 4 | } 5 | -------------------------------------------------------------------------------- /examples/resources/nxos_ipv4_prefix_list_rule_entry/import.sh: -------------------------------------------------------------------------------- 1 | terraform import nxos_ipv4_prefix_list_rule_entry.example "sys/rpm/pfxlistv4-[RULE1]/ent-[10]" 2 | -------------------------------------------------------------------------------- /examples/resources/nxos_isis_instance/resource.tf: -------------------------------------------------------------------------------- 1 | resource "nxos_isis_instance" "example" { 2 | name = "ISIS1" 3 | admin_state = "enabled" 4 | } 5 | -------------------------------------------------------------------------------- /examples/resources/nxos_ospf_authentication/import.sh: -------------------------------------------------------------------------------- 1 | terraform import nxos_ospf_authentication.example "sys/ospf/inst-[OSPF1]/dom-[VRF1]/if-[eth1/10]/authnew" 2 | -------------------------------------------------------------------------------- /examples/resources/nxos_ospf_instance/resource.tf: -------------------------------------------------------------------------------- 1 | resource "nxos_ospf_instance" "example" { 2 | admin_state = "enabled" 3 | name = "OSPF1" 4 | } 5 | -------------------------------------------------------------------------------- /examples/resources/nxos_ospfv3_interface_authentication/import.sh: -------------------------------------------------------------------------------- 1 | terraform import nxos_ospfv3_interface_authentication.example "sys/ospfv3/if-[eth1/4]/auth" 2 | -------------------------------------------------------------------------------- /examples/resources/nxos_queuing_qos_policy_system_out/import.sh: -------------------------------------------------------------------------------- 1 | terraform import nxos_queuing_qos_policy_system_out.example "sys/ipqos/queuing/policy/out/sys" 2 | -------------------------------------------------------------------------------- /examples/data-sources/nxos_bgp_instance_domain_af/data-source.tf: -------------------------------------------------------------------------------- 1 | data "nxos_bgp_instance_domain_af" "example" { 2 | vrf = "default" 3 | af = "ipv4-ucast" 4 | } 5 | -------------------------------------------------------------------------------- /examples/data-sources/nxos_icmpv4_interface/data-source.tf: -------------------------------------------------------------------------------- 1 | data "nxos_icmpv4_interface" "example" { 2 | vrf_name = "VRF1" 3 | interface_id = "vlan10" 4 | } 5 | -------------------------------------------------------------------------------- /examples/data-sources/nxos_ipv4_interface/data-source.tf: -------------------------------------------------------------------------------- 1 | data "nxos_ipv4_interface" "example" { 2 | vrf = "default" 3 | interface_id = "eth1/10" 4 | } 5 | -------------------------------------------------------------------------------- /examples/data-sources/nxos_ipv4_static_route/data-source.tf: -------------------------------------------------------------------------------- 1 | data "nxos_ipv4_static_route" "example" { 2 | vrf_name = "default" 3 | prefix = "1.1.1.0/24" 4 | } 5 | -------------------------------------------------------------------------------- /examples/data-sources/nxos_ipv6_interface/data-source.tf: -------------------------------------------------------------------------------- 1 | data "nxos_ipv6_interface" "example" { 2 | vrf = "default" 3 | interface_id = "eth1/10" 4 | } 5 | -------------------------------------------------------------------------------- /examples/data-sources/nxos_isis_overload/data-source.tf: -------------------------------------------------------------------------------- 1 | data "nxos_isis_overload" "example" { 2 | instance_name = "ISIS1" 3 | vrf = "default" 4 | } 5 | -------------------------------------------------------------------------------- /examples/data-sources/nxos_pim_interface/data-source.tf: -------------------------------------------------------------------------------- 1 | data "nxos_pim_interface" "example" { 2 | vrf_name = "default" 3 | interface_id = "eth1/10" 4 | } 5 | -------------------------------------------------------------------------------- /examples/data-sources/nxos_route_map_rule_entry/data-source.tf: -------------------------------------------------------------------------------- 1 | data "nxos_route_map_rule_entry" "example" { 2 | rule_name = "RULE1" 3 | order = 10 4 | } 5 | -------------------------------------------------------------------------------- /examples/resources/nxos_bgp_instance_domain_peer/import.sh: -------------------------------------------------------------------------------- 1 | terraform import nxos_bgp_instance_domain_peer.example "sys/bgp/inst/dom-[default]/peer-[192.168.0.1]" 2 | -------------------------------------------------------------------------------- /examples/resources/nxos_default_qos_policy_interface_in/resource.tf: -------------------------------------------------------------------------------- 1 | resource "nxos_default_qos_policy_interface_in" "example" { 2 | interface_id = "eth1/10" 3 | } 4 | -------------------------------------------------------------------------------- /examples/resources/nxos_nve_vni_ingress_replication/import.sh: -------------------------------------------------------------------------------- 1 | terraform import nxos_nve_vni_ingress_replication.example "sys/eps/epId-[1]/nws/vni-[103100]/IngRepl" 2 | -------------------------------------------------------------------------------- /examples/resources/nxos_ospfv3_instance/resource.tf: -------------------------------------------------------------------------------- 1 | resource "nxos_ospfv3_instance" "example" { 2 | admin_state = "enabled" 3 | name = "OSPFv3" 4 | } 5 | -------------------------------------------------------------------------------- /examples/resources/nxos_pim_static_rp_policy/resource.tf: -------------------------------------------------------------------------------- 1 | resource "nxos_pim_static_rp_policy" "example" { 2 | vrf_name = "default" 3 | name = "RP" 4 | } 5 | -------------------------------------------------------------------------------- /examples/data-sources/nxos_bgp_instance_domain_graceful_restart/data-source.tf: -------------------------------------------------------------------------------- 1 | data "nxos_bgp_instance_domain_graceful_restart" "example" { 2 | vrf = "default" 3 | } 4 | -------------------------------------------------------------------------------- /examples/data-sources/nxos_bgp_instance_domain_gracefulrestart/data-source.tf: -------------------------------------------------------------------------------- 1 | data "nxos_bgp_instance_domain_gracefulrestart" "example" { 2 | vrf = "default" 3 | } 4 | -------------------------------------------------------------------------------- /examples/data-sources/nxos_bgp_peer/data-source.tf: -------------------------------------------------------------------------------- 1 | data "nxos_bgp_peer" "example" { 2 | asn = "65001" 3 | vrf = "default" 4 | address = "192.168.0.1" 5 | } 6 | -------------------------------------------------------------------------------- /examples/data-sources/nxos_bgp_peer_local_asn/data-source.tf: -------------------------------------------------------------------------------- 1 | data "nxos_bgp_peer_local_asn" "example" { 2 | vrf = "default" 3 | address = "192.168.0.1" 4 | } 5 | -------------------------------------------------------------------------------- /examples/data-sources/nxos_default_qos_policy_interface_in/data-source.tf: -------------------------------------------------------------------------------- 1 | data "nxos_default_qos_policy_interface_in" "example" { 2 | interface_id = "eth1/10" 3 | } 4 | -------------------------------------------------------------------------------- /examples/data-sources/nxos_ospfv3_interface_authentication/data-source.tf: -------------------------------------------------------------------------------- 1 | data "nxos_ospfv3_interface_authentication" "example" { 2 | interface_id = "eth1/4" 3 | } 4 | -------------------------------------------------------------------------------- /examples/resources/nxos_bgp_instance_domain/resource.tf: -------------------------------------------------------------------------------- 1 | resource "nxos_bgp_instance_domain" "example" { 2 | vrf = "default" 3 | router_id = "1.1.1.1" 4 | } 5 | -------------------------------------------------------------------------------- /examples/resources/nxos_bgp_instance_domain_graceful_restart/import.sh: -------------------------------------------------------------------------------- 1 | terraform import nxos_bgp_instance_domain_graceful_restart.example "sys/bgp/inst/dom-[default]/gr" 2 | -------------------------------------------------------------------------------- /examples/resources/nxos_bgp_instance_domain_gracefulrestart/import.sh: -------------------------------------------------------------------------------- 1 | terraform import nxos_bgp_instance_domain_gracefulrestart.example "sys/bgp/inst/dom-[default]/gr" 2 | -------------------------------------------------------------------------------- /examples/resources/nxos_bgp_vrf/resource.tf: -------------------------------------------------------------------------------- 1 | resource "nxos_bgp_vrf" "example" { 2 | asn = "65001" 3 | name = "default" 4 | router_id = "1.1.1.1" 5 | } 6 | -------------------------------------------------------------------------------- /examples/resources/nxos_default_qos_policy_interface_in/import.sh: -------------------------------------------------------------------------------- 1 | terraform import nxos_default_qos_policy_interface_in.example "sys/ipqos/dflt/policy/in/intf-[eth1/10]" 2 | -------------------------------------------------------------------------------- /examples/resources/nxos_hmm_instance/resource.tf: -------------------------------------------------------------------------------- 1 | resource "nxos_hmm_instance" "example" { 2 | admin_state = "enabled" 3 | anycast_mac = "20:20:00:00:10:10" 4 | } 5 | -------------------------------------------------------------------------------- /examples/resources/nxos_route_map_rule_entry_match_route/import.sh: -------------------------------------------------------------------------------- 1 | terraform import nxos_route_map_rule_entry_match_route.example "sys/rpm/rtmap-[RULE1]/ent-[10]/mrtdst" 2 | -------------------------------------------------------------------------------- /examples/data-sources/nxos_bgp_peer_template/data-source.tf: -------------------------------------------------------------------------------- 1 | data "nxos_bgp_peer_template" "example" { 2 | asn = "65001" 3 | template_name = "SPINE-PEERS" 4 | } 5 | -------------------------------------------------------------------------------- /examples/data-sources/nxos_ipv4_prefix_list_rule_entry/data-source.tf: -------------------------------------------------------------------------------- 1 | data "nxos_ipv4_prefix_list_rule_entry" "example" { 2 | rule_name = "RULE1" 3 | order = 10 4 | } 5 | -------------------------------------------------------------------------------- /examples/resources/nxos_default_qos_class_map/resource.tf: -------------------------------------------------------------------------------- 1 | resource "nxos_default_qos_class_map" "example" { 2 | name = "Voice" 3 | match_type = "match-any" 4 | } 5 | -------------------------------------------------------------------------------- /examples/resources/nxos_default_qos_policy_map/resource.tf: -------------------------------------------------------------------------------- 1 | resource "nxos_default_qos_policy_map" "example" { 2 | name = "PM1" 3 | match_type = "match-any" 4 | } 5 | -------------------------------------------------------------------------------- /examples/resources/nxos_evpn_vni_route_target_direction/import.sh: -------------------------------------------------------------------------------- 1 | terraform import nxos_evpn_vni_route_target_direction.example "sys/evpn/bdevi-[vxlan-123456]/rttp-[import]" 2 | -------------------------------------------------------------------------------- /examples/resources/nxos_ipv4_interface_address/import.sh: -------------------------------------------------------------------------------- 1 | terraform import nxos_ipv4_interface_address.example "sys/ipv4/inst/dom-[default]/if-[eth1/10]/addr-[24.63.46.49/30]" 2 | -------------------------------------------------------------------------------- /examples/resources/nxos_nve_vni_ingress_replication/resource.tf: -------------------------------------------------------------------------------- 1 | resource "nxos_nve_vni_ingress_replication" "example" { 2 | vni = 103100 3 | protocol = "bgp" 4 | } 5 | -------------------------------------------------------------------------------- /examples/resources/nxos_ospfv3_vrf_address_family/import.sh: -------------------------------------------------------------------------------- 1 | terraform import nxos_ospfv3_vrf_address_family.example "sys/ospfv3/inst-[nac-ospfv3]/dom-[VRF1]/af-[ipv6-ucast]" 2 | -------------------------------------------------------------------------------- /examples/resources/nxos_pim_vrf/resource.tf: -------------------------------------------------------------------------------- 1 | resource "nxos_pim_vrf" "example" { 2 | name = "default" 3 | admin_state = "enabled" 4 | bfd = true 5 | } 6 | -------------------------------------------------------------------------------- /examples/resources/nxos_queuing_qos_policy_map/resource.tf: -------------------------------------------------------------------------------- 1 | resource "nxos_queuing_qos_policy_map" "example" { 2 | name = "PM1" 3 | match_type = "match-any" 4 | } 5 | -------------------------------------------------------------------------------- /examples/resources/nxos_route_map_rule_entry_match_tag/import.sh: -------------------------------------------------------------------------------- 1 | terraform import nxos_route_map_rule_entry_match_tag.example "sys/rpm/rtmap-[RULE1]/ent-[10]/mrttag-[12345]" 2 | -------------------------------------------------------------------------------- /examples/resources/nxos_vrf_address_family/resource.tf: -------------------------------------------------------------------------------- 1 | resource "nxos_vrf_address_family" "example" { 2 | vrf = "VRF1" 3 | address_family = "ipv4-ucast" 4 | } 5 | -------------------------------------------------------------------------------- /examples/resources/nxos_vrf_domain_af_control/import.sh: -------------------------------------------------------------------------------- 1 | terraform import nxos_vrf_domain_af_control.example "sys/inst-[VRF1]/dom-[VRF1]/af-[ipv4-ucast]/ctrl-[ipv4-ucast]" 2 | -------------------------------------------------------------------------------- /examples/resources/nxos_vrf_routing/resource.tf: -------------------------------------------------------------------------------- 1 | resource "nxos_vrf_routing" "example" { 2 | vrf = "VRF1" 3 | route_distinguisher = "rd:unknown:0:0" 4 | } 5 | -------------------------------------------------------------------------------- /examples/data-sources/nxos_bgp_instance_domain_peer/data-source.tf: -------------------------------------------------------------------------------- 1 | data "nxos_bgp_instance_domain_peer" "example" { 2 | vrf = "default" 3 | address = "192.168.0.1" 4 | } 5 | -------------------------------------------------------------------------------- /examples/data-sources/nxos_ipv4_access_list_entry/data-source.tf: -------------------------------------------------------------------------------- 1 | data "nxos_ipv4_access_list_entry" "example" { 2 | name = "ACL1" 3 | sequence_number = 10 4 | } 5 | -------------------------------------------------------------------------------- /examples/data-sources/nxos_vrf_address_family/data-source.tf: -------------------------------------------------------------------------------- 1 | data "nxos_vrf_address_family" "example" { 2 | vrf = "VRF1" 3 | address_family = "ipv4-ucast" 4 | } 5 | -------------------------------------------------------------------------------- /examples/resources/nxos_bgp_advertised_prefix/import.sh: -------------------------------------------------------------------------------- 1 | terraform import nxos_bgp_advertised_prefix.example "sys/bgp/inst/dom-[default]/af-[ipv4-ucast]/prefix-[192.168.1.0/24]" 2 | -------------------------------------------------------------------------------- /examples/resources/nxos_bgp_peer_address_family/import.sh: -------------------------------------------------------------------------------- 1 | terraform import nxos_bgp_peer_address_family.example "sys/bgp/inst/dom-[default]/peer-[192.168.0.1]/af-[ipv4-ucast]" 2 | -------------------------------------------------------------------------------- /examples/resources/nxos_evpn_vni/resource.tf: -------------------------------------------------------------------------------- 1 | resource "nxos_evpn_vni" "example" { 2 | encap = "vxlan-123456" 3 | route_distinguisher = "rd:unknown:0:0" 4 | } 5 | -------------------------------------------------------------------------------- /examples/resources/nxos_ipv6_static_route/import.sh: -------------------------------------------------------------------------------- 1 | terraform import nxos_ipv6_static_route.example "sys/ipv6/inst/dom-[default]/rt-[2001:db8:3333:4444:5555:6666:102:304/128]" 2 | -------------------------------------------------------------------------------- /examples/resources/nxos_subinterface_vrf/resource.tf: -------------------------------------------------------------------------------- 1 | resource "nxos_subinterface_vrf" "example" { 2 | interface_id = "eth1/10.124" 3 | vrf_dn = "sys/inst-VRF123" 4 | } 5 | -------------------------------------------------------------------------------- /examples/resources/nxos_svi_interface_vrf/resource.tf: -------------------------------------------------------------------------------- 1 | resource "nxos_svi_interface_vrf" "example" { 2 | interface_id = "vlan293" 3 | vrf_dn = "sys/inst-VRF123" 4 | } 5 | -------------------------------------------------------------------------------- /examples/data-sources/nxos_default_qos_class_map_dscp/data-source.tf: -------------------------------------------------------------------------------- 1 | data "nxos_default_qos_class_map_dscp" "example" { 2 | class_map_name = "Voice" 3 | value = "ef" 4 | } 5 | -------------------------------------------------------------------------------- /examples/data-sources/nxos_ipv4_access_list_policy_egress_interface/data-source.tf: -------------------------------------------------------------------------------- 1 | data "nxos_ipv4_access_list_policy_egress_interface" "example" { 2 | interface_id = "eth1/10" 3 | } 4 | -------------------------------------------------------------------------------- /examples/data-sources/nxos_ospf_area/data-source.tf: -------------------------------------------------------------------------------- 1 | data "nxos_ospf_area" "example" { 2 | instance_name = "OSPF1" 3 | vrf_name = "VRF1" 4 | area_id = "0.0.0.10" 5 | } 6 | -------------------------------------------------------------------------------- /examples/data-sources/nxos_route_map_rule_entry_match_route/data-source.tf: -------------------------------------------------------------------------------- 1 | data "nxos_route_map_rule_entry_match_route" "example" { 2 | rule_name = "RULE1" 3 | order = 10 4 | } 5 | -------------------------------------------------------------------------------- /examples/resources/nxos_bgp_instance_domain_peercontainer/import.sh: -------------------------------------------------------------------------------- 1 | terraform import nxos_bgp_instance_domain_peercontainer.example "sys/bgp/inst/dom-[default]/peercont-[SPINE-PEERS]" 2 | -------------------------------------------------------------------------------- /examples/resources/nxos_default_qos_class_map_dscp/resource.tf: -------------------------------------------------------------------------------- 1 | resource "nxos_default_qos_class_map_dscp" "example" { 2 | class_map_name = "Voice" 3 | value = "ef" 4 | } 5 | -------------------------------------------------------------------------------- /examples/resources/nxos_default_qos_policy_map_match_class_map/import.sh: -------------------------------------------------------------------------------- 1 | terraform import nxos_default_qos_policy_map_match_class_map.example "sys/ipqos/dflt/p/name-[PM1]/cmap-[Voice]" 2 | -------------------------------------------------------------------------------- /examples/resources/nxos_evpn_vni_route_target/import.sh: -------------------------------------------------------------------------------- 1 | terraform import nxos_evpn_vni_route_target.example "sys/evpn/bdevi-[vxlan-123456]/rttp-[import]/ent-[route-target:as2-nn2:2:2]" 2 | -------------------------------------------------------------------------------- /examples/resources/nxos_isis_overload/resource.tf: -------------------------------------------------------------------------------- 1 | resource "nxos_isis_overload" "example" { 2 | instance_name = "ISIS1" 3 | vrf = "default" 4 | startup_time = 60 5 | } 6 | -------------------------------------------------------------------------------- /examples/resources/nxos_loopback_interface_vrf/resource.tf: -------------------------------------------------------------------------------- 1 | resource "nxos_loopback_interface_vrf" "example" { 2 | interface_id = "lo123" 3 | vrf_dn = "sys/inst-default" 4 | } 5 | -------------------------------------------------------------------------------- /examples/resources/nxos_pim_anycast_rp_peer/import.sh: -------------------------------------------------------------------------------- 1 | terraform import nxos_pim_anycast_rp_peer.example "sys/pim/inst/dom-[default]/acastrpfunc/peer-[10.1.1.1/32]-peer-[20.1.1.1/32]" 2 | -------------------------------------------------------------------------------- /examples/resources/nxos_port_channel_interface_member/import.sh: -------------------------------------------------------------------------------- 1 | terraform import nxos_port_channel_interface_member.example "sys/intf/aggr-[po1]/rsmbrIfs-[sys/intf/phys-[eth1/11]]" 2 | -------------------------------------------------------------------------------- /examples/resources/nxos_queuing_qos_policy_system_out_policy_map/resource.tf: -------------------------------------------------------------------------------- 1 | resource "nxos_queuing_qos_policy_system_out_policy_map" "example" { 2 | policy_map_name = "PM1" 3 | } 4 | -------------------------------------------------------------------------------- /examples/resources/nxos_route_map_rule_entry_match_route/resource.tf: -------------------------------------------------------------------------------- 1 | resource "nxos_route_map_rule_entry_match_route" "example" { 2 | rule_name = "RULE1" 3 | order = 10 4 | } 5 | -------------------------------------------------------------------------------- /examples/resources/nxos_vrf/resource.tf: -------------------------------------------------------------------------------- 1 | resource "nxos_vrf" "example" { 2 | name = "VRF1" 3 | description = "My VRF1 Description" 4 | encap = "vxlan-103901" 5 | } 6 | -------------------------------------------------------------------------------- /gen/templates/changelog.md.tmpl: -------------------------------------------------------------------------------- 1 | --- 2 | subcategory: "Guides" 3 | page_title: "Changelog" 4 | description: |- 5 | Changelog 6 | --- 7 | 8 | # Changelog 9 | 10 | {{.}} 11 | -------------------------------------------------------------------------------- /examples/data-sources/nxos_default_qos_policy_interface_in_policy_map/data-source.tf: -------------------------------------------------------------------------------- 1 | data "nxos_default_qos_policy_interface_in_policy_map" "example" { 2 | interface_id = "eth1/10" 3 | } 4 | -------------------------------------------------------------------------------- /examples/data-sources/nxos_ipv4_access_list_policy_ingress_interface/data-source.tf: -------------------------------------------------------------------------------- 1 | data "nxos_ipv4_access_list_policy_ingress_interface" "example" { 2 | interface_id = "eth1/10" 3 | } 4 | -------------------------------------------------------------------------------- /examples/resources/nxos_bgp_instance_domain_peer_container/import.sh: -------------------------------------------------------------------------------- 1 | terraform import nxos_bgp_instance_domain_peer_container.example "sys/bgp/inst/dom-[default]/peercont-[SPINE-PEERS]" 2 | -------------------------------------------------------------------------------- /examples/resources/nxos_bridge_domain/resource.tf: -------------------------------------------------------------------------------- 1 | resource "nxos_bridge_domain" "example" { 2 | fabric_encap = "vlan-10" 3 | access_encap = "unknown" 4 | name = "VLAN10" 5 | } 6 | -------------------------------------------------------------------------------- /examples/resources/nxos_ipv4_access_list_policy_egress_interface/import.sh: -------------------------------------------------------------------------------- 1 | terraform import nxos_ipv4_access_list_policy_egress_interface.example "sys/acl/ipv4/policy/egress/intf-[eth1/10]" 2 | -------------------------------------------------------------------------------- /examples/resources/nxos_physical_interface_vrf/resource.tf: -------------------------------------------------------------------------------- 1 | resource "nxos_physical_interface_vrf" "example" { 2 | interface_id = "eth1/10" 3 | vrf_dn = "sys/inst-default" 4 | } 5 | -------------------------------------------------------------------------------- /examples/resources/nxos_pim_static_rp_group_list/import.sh: -------------------------------------------------------------------------------- 1 | terraform import nxos_pim_static_rp_group_list.example "sys/pim/inst/dom-[default]/staticrp/rp-[1.2.3.4]/rpgrplist-[224.0.0.0/4]" 2 | -------------------------------------------------------------------------------- /examples/resources/nxos_queuing_qos_policy_system_out_policy_map/import.sh: -------------------------------------------------------------------------------- 1 | terraform import nxos_queuing_qos_policy_system_out_policy_map.example "sys/ipqos/queuing/policy/out/sys/pmap" 2 | -------------------------------------------------------------------------------- /examples/resources/nxos_route_map_rule_entry/resource.tf: -------------------------------------------------------------------------------- 1 | resource "nxos_route_map_rule_entry" "example" { 2 | rule_name = "RULE1" 3 | order = 10 4 | action = "permit" 5 | } 6 | -------------------------------------------------------------------------------- /examples/resources/nxos_vpc_interface/resource.tf: -------------------------------------------------------------------------------- 1 | resource "nxos_vpc_interface" "example" { 2 | vpc_interface_id = 1 3 | port_channel_interface_dn = "sys/intf/aggr-[po1]" 4 | } 5 | -------------------------------------------------------------------------------- /examples/data-sources/nxos_ipv6_static_route/data-source.tf: -------------------------------------------------------------------------------- 1 | data "nxos_ipv6_static_route" "example" { 2 | vrf_name = "default" 3 | prefix = "2001:db8:3333:4444:5555:6666:102:304/128" 4 | } 5 | -------------------------------------------------------------------------------- /examples/data-sources/nxos_ospf_interface/data-source.tf: -------------------------------------------------------------------------------- 1 | data "nxos_ospf_interface" "example" { 2 | instance_name = "OSPF1" 3 | vrf_name = "VRF1" 4 | interface_id = "eth1/10" 5 | } 6 | -------------------------------------------------------------------------------- /examples/data-sources/nxos_ospfv3_area/data-source.tf: -------------------------------------------------------------------------------- 1 | data "nxos_ospfv3_area" "example" { 2 | instance_name = "nac-ospfv3" 3 | vrf_name = "VRF1" 4 | area_id = "0.0.0.10" 5 | } 6 | -------------------------------------------------------------------------------- /examples/resources/nxos_bgp_route_redistribution/import.sh: -------------------------------------------------------------------------------- 1 | terraform import nxos_bgp_route_redistribution.example "sys/bgp/inst/dom-[default]/af-[ipv4-ucast]/interleak-[ospf]-interleak-[OSPF1]" 2 | -------------------------------------------------------------------------------- /examples/resources/nxos_evpn_vni_route_target_direction/resource.tf: -------------------------------------------------------------------------------- 1 | resource "nxos_evpn_vni_route_target_direction" "example" { 2 | encap = "vxlan-123456" 3 | direction = "import" 4 | } 5 | -------------------------------------------------------------------------------- /examples/resources/nxos_hmm_interface/resource.tf: -------------------------------------------------------------------------------- 1 | resource "nxos_hmm_interface" "example" { 2 | interface_id = "vlan10" 3 | admin_state = "enabled" 4 | mode = "anycastGW" 5 | } 6 | -------------------------------------------------------------------------------- /examples/resources/nxos_ipv4_access_list_policy_ingress_interface/import.sh: -------------------------------------------------------------------------------- 1 | terraform import nxos_ipv4_access_list_policy_ingress_interface.example "sys/acl/ipv4/policy/ingress/intf-[eth1/10]" 2 | -------------------------------------------------------------------------------- /examples/resources/nxos_ospfv3_area_address_family/import.sh: -------------------------------------------------------------------------------- 1 | terraform import nxos_ospfv3_area_address_family.example "sys/ospfv3/inst-[OSPFv3]/dom-[default]/area-[0.0.0.10]/areaaf-[ipv6-ucast]" 2 | -------------------------------------------------------------------------------- /examples/resources/nxos_port_channel_interface_vrf/resource.tf: -------------------------------------------------------------------------------- 1 | resource "nxos_port_channel_interface_vrf" "example" { 2 | interface_id = "po1" 3 | vrf_dn = "sys/inst-default" 4 | } 5 | -------------------------------------------------------------------------------- /examples/resources/nxos_queuing_qos_policy_map_match_class_map/import.sh: -------------------------------------------------------------------------------- 1 | terraform import nxos_queuing_qos_policy_map_match_class_map.example "sys/ipqos/queuing/p/name-[PM1]/cmap-[c-out-q1]" 2 | -------------------------------------------------------------------------------- /examples/resources/nxos_route_map_rule_entry_set_regular_community/import.sh: -------------------------------------------------------------------------------- 1 | terraform import nxos_route_map_rule_entry_set_regular_community.example "sys/rpm/rtmap-[RULE1]/ent-[10]/sregcomm" 2 | -------------------------------------------------------------------------------- /examples/resources/nxos_vrf_domain_af_control/resource.tf: -------------------------------------------------------------------------------- 1 | resource "nxos_vrf_domain_af_control" "example" { 2 | vrf = "VRF1" 3 | af = "ipv4-ucast" 4 | rt_type = "ipv4-ucast" 5 | } 6 | -------------------------------------------------------------------------------- /examples/resources/nxos_vrf_route_target_address_family/import.sh: -------------------------------------------------------------------------------- 1 | terraform import nxos_vrf_route_target_address_family.example "sys/inst-[VRF1]/dom-[VRF1]/af-[ipv4-ucast]/ctrl-[ipv4-ucast]" 2 | -------------------------------------------------------------------------------- /examples/resources/nxos_vrf_route_target_direction/import.sh: -------------------------------------------------------------------------------- 1 | terraform import nxos_vrf_route_target_direction.example "sys/inst-[VRF1]/dom-[VRF1]/af-[ipv4-ucast]/ctrl-[ipv4-ucast]/rttp-[import]" 2 | -------------------------------------------------------------------------------- /examples/data-sources/nxos_dhcp_relay_address/data-source.tf: -------------------------------------------------------------------------------- 1 | data "nxos_dhcp_relay_address" "example" { 2 | interface_id = "eth1/10" 3 | vrf = "VRF1" 4 | address = "1.1.1.1" 5 | } 6 | -------------------------------------------------------------------------------- /examples/data-sources/nxos_evpn_vni_route_target_direction/data-source.tf: -------------------------------------------------------------------------------- 1 | data "nxos_evpn_vni_route_target_direction" "example" { 2 | encap = "vxlan-123456" 3 | direction = "import" 4 | } 5 | -------------------------------------------------------------------------------- /examples/data-sources/nxos_vrf_domain_af_control/data-source.tf: -------------------------------------------------------------------------------- 1 | data "nxos_vrf_domain_af_control" "example" { 2 | vrf = "VRF1" 3 | af = "ipv4-ucast" 4 | rt_type = "ipv4-ucast" 5 | } 6 | -------------------------------------------------------------------------------- /examples/resources/nxos_bgp_peer_template_address_family/import.sh: -------------------------------------------------------------------------------- 1 | terraform import nxos_bgp_peer_template_address_family.example "sys/bgp/inst/dom-[default]/peercont-[SPINE-PEERS]/af-[ipv4-ucast]" 2 | -------------------------------------------------------------------------------- /examples/resources/nxos_bgp_peer_template_max_prefix/import.sh: -------------------------------------------------------------------------------- 1 | terraform import nxos_bgp_peer_template_max_prefix.example "sys/bgp/inst/dom-[default]/peercont-[SPINE-PEERS]/af-[ipv4-ucast]/maxpfxp" 2 | -------------------------------------------------------------------------------- /examples/resources/nxos_default_qos_policy_interface_in_policy_map/import.sh: -------------------------------------------------------------------------------- 1 | terraform import nxos_default_qos_policy_interface_in_policy_map.example "sys/ipqos/dflt/policy/in/intf-[eth1/10]/pmap" 2 | -------------------------------------------------------------------------------- /examples/resources/nxos_dhcp_relay_address/resource.tf: -------------------------------------------------------------------------------- 1 | resource "nxos_dhcp_relay_address" "example" { 2 | interface_id = "eth1/10" 3 | vrf = "VRF1" 4 | address = "1.1.1.1" 5 | } 6 | -------------------------------------------------------------------------------- /examples/resources/nxos_ipv6_interface_address/import.sh: -------------------------------------------------------------------------------- 1 | terraform import nxos_ipv6_interface_address.example "sys/ipv6/inst/dom-[default]/if-[eth1/10]/addr-[2001:db8:3333:4444:5555:6666:7777:8888]" 2 | -------------------------------------------------------------------------------- /examples/data-sources/nxos_isis_address_family/data-source.tf: -------------------------------------------------------------------------------- 1 | data "nxos_isis_address_family" "example" { 2 | instance_name = "ISIS1" 3 | vrf = "default" 4 | address_family = "v4" 5 | } 6 | -------------------------------------------------------------------------------- /examples/data-sources/nxos_ospf_authentication/data-source.tf: -------------------------------------------------------------------------------- 1 | data "nxos_ospf_authentication" "example" { 2 | instance_name = "OSPF1" 3 | vrf_name = "VRF1" 4 | interface_id = "eth1/10" 5 | } 6 | -------------------------------------------------------------------------------- /examples/data-sources/nxos_route_map_rule_entry_match_tag/data-source.tf: -------------------------------------------------------------------------------- 1 | data "nxos_route_map_rule_entry_match_tag" "example" { 2 | rule_name = "RULE1" 3 | order = 10 4 | tag = 12345 5 | } 6 | -------------------------------------------------------------------------------- /examples/data-sources/nxos_route_map_rule_entry_set_regular_community/data-source.tf: -------------------------------------------------------------------------------- 1 | data "nxos_route_map_rule_entry_set_regular_community" "example" { 2 | rule_name = "RULE1" 3 | order = 10 4 | } 5 | -------------------------------------------------------------------------------- /examples/resources/nxos_icmpv4_interface/resource.tf: -------------------------------------------------------------------------------- 1 | resource "nxos_icmpv4_interface" "example" { 2 | vrf_name = "VRF1" 3 | interface_id = "vlan10" 4 | control = "port-unreachable" 5 | } 6 | -------------------------------------------------------------------------------- /examples/resources/nxos_loopback_interface/resource.tf: -------------------------------------------------------------------------------- 1 | resource "nxos_loopback_interface" "example" { 2 | interface_id = "lo123" 3 | admin_state = "down" 4 | description = "My Description" 5 | } 6 | -------------------------------------------------------------------------------- /examples/resources/nxos_pim_anycast_rp/resource.tf: -------------------------------------------------------------------------------- 1 | resource "nxos_pim_anycast_rp" "example" { 2 | vrf_name = "default" 3 | local_interface = "eth1/10" 4 | source_interface = "eth1/10" 5 | } 6 | -------------------------------------------------------------------------------- /examples/resources/nxos_route_map_rule_entry_match_tag/resource.tf: -------------------------------------------------------------------------------- 1 | resource "nxos_route_map_rule_entry_match_tag" "example" { 2 | rule_name = "RULE1" 3 | order = 10 4 | tag = 12345 5 | } 6 | -------------------------------------------------------------------------------- /examples/resources/nxos_vrf_domain_af_control_direction/import.sh: -------------------------------------------------------------------------------- 1 | terraform import nxos_vrf_domain_af_control_direction.example "sys/inst-[VRF1]/dom-[VRF1]/af-[ipv4-ucast]/ctrl-[ipv4-ucast]/rttp-[import]" 2 | -------------------------------------------------------------------------------- /examples/data-sources/nxos_bgp_address_family/data-source.tf: -------------------------------------------------------------------------------- 1 | data "nxos_bgp_address_family" "example" { 2 | asn = "65001" 3 | vrf = "default" 4 | address_family = "ipv4-ucast" 5 | } 6 | -------------------------------------------------------------------------------- /examples/data-sources/nxos_bgp_instance_domain_peer_container/data-source.tf: -------------------------------------------------------------------------------- 1 | data "nxos_bgp_instance_domain_peer_container" "example" { 2 | vrf = "default" 3 | template_name = "SPINE-PEERS" 4 | } 5 | -------------------------------------------------------------------------------- /examples/data-sources/nxos_bgp_instance_domain_peercontainer/data-source.tf: -------------------------------------------------------------------------------- 1 | data "nxos_bgp_instance_domain_peercontainer" "example" { 2 | vrf = "default" 3 | template_name = "SPINE-PEERS" 4 | } 5 | -------------------------------------------------------------------------------- /examples/data-sources/nxos_port_channel_interface_member/data-source.tf: -------------------------------------------------------------------------------- 1 | data "nxos_port_channel_interface_member" "example" { 2 | interface_id = "po1" 3 | interface_dn = "sys/intf/phys-[eth1/11]" 4 | } 5 | -------------------------------------------------------------------------------- /examples/resources/nxos_bgp_instance_domain_peer_container_af/import.sh: -------------------------------------------------------------------------------- 1 | terraform import nxos_bgp_instance_domain_peer_container_af.example "sys/bgp/inst/dom-[default]/peercont-[SPINE-PEERS]/af-[ipv4-ucast]" 2 | -------------------------------------------------------------------------------- /examples/resources/nxos_bgp_instance_domain_peercontainer_af/import.sh: -------------------------------------------------------------------------------- 1 | terraform import nxos_bgp_instance_domain_peercontainer_af.example "sys/bgp/inst/dom-[default]/peercont-[SPINE-PEERS]/af-[ipv4-ucast]" 2 | -------------------------------------------------------------------------------- /examples/resources/nxos_default_qos_policy_map_match_class_map/resource.tf: -------------------------------------------------------------------------------- 1 | resource "nxos_default_qos_policy_map_match_class_map" "example" { 2 | policy_map_name = "PM1" 3 | name = "Voice" 4 | } 5 | -------------------------------------------------------------------------------- /examples/resources/nxos_default_qos_policy_map_match_class_map_police/import.sh: -------------------------------------------------------------------------------- 1 | terraform import nxos_default_qos_policy_map_match_class_map_police.example "sys/ipqos/dflt/p/name-[PM1]/cmap-[Voice]/police" 2 | -------------------------------------------------------------------------------- /examples/resources/nxos_vrf_route_target/import.sh: -------------------------------------------------------------------------------- 1 | terraform import nxos_vrf_route_target.example "sys/inst-[VRF1]/dom-[VRF1]/af-[ipv4-ucast]/ctrl-[ipv4-ucast]/rttp-[import]/ent-[route-target:as2-nn2:2:2]" 2 | -------------------------------------------------------------------------------- /examples/data-sources/nxos_default_qos_policy_map_match_class_map/data-source.tf: -------------------------------------------------------------------------------- 1 | data "nxos_default_qos_policy_map_match_class_map" "example" { 2 | policy_map_name = "PM1" 3 | name = "Voice" 4 | } 5 | -------------------------------------------------------------------------------- /examples/data-sources/nxos_pim_static_rp_group_list/data-source.tf: -------------------------------------------------------------------------------- 1 | data "nxos_pim_static_rp_group_list" "example" { 2 | vrf_name = "default" 3 | rp_address = "1.2.3.4" 4 | address = "224.0.0.0/4" 5 | } 6 | -------------------------------------------------------------------------------- /examples/data-sources/nxos_queuing_qos_policy_map_match_class_map/data-source.tf: -------------------------------------------------------------------------------- 1 | data "nxos_queuing_qos_policy_map_match_class_map" "example" { 2 | policy_map_name = "PM1" 3 | name = "c-out-q1" 4 | } 5 | -------------------------------------------------------------------------------- /examples/resources/nxos_queuing_qos_policy_map_match_class_map/resource.tf: -------------------------------------------------------------------------------- 1 | resource "nxos_queuing_qos_policy_map_match_class_map" "example" { 2 | policy_map_name = "PM1" 3 | name = "c-out-q1" 4 | } 5 | -------------------------------------------------------------------------------- /examples/resources/nxos_queuing_qos_policy_map_match_class_map_priority/import.sh: -------------------------------------------------------------------------------- 1 | terraform import nxos_queuing_qos_policy_map_match_class_map_priority.example "sys/ipqos/queuing/p/name-[PM1]/cmap-[c-out-q1]/prio" 2 | -------------------------------------------------------------------------------- /examples/data-sources/nxos_ipv4_interface_address/data-source.tf: -------------------------------------------------------------------------------- 1 | data "nxos_ipv4_interface_address" "example" { 2 | vrf = "default" 3 | interface_id = "eth1/10" 4 | address = "24.63.46.49/30" 5 | } 6 | -------------------------------------------------------------------------------- /examples/data-sources/nxos_pim_anycast_rp_peer/data-source.tf: -------------------------------------------------------------------------------- 1 | data "nxos_pim_anycast_rp_peer" "example" { 2 | vrf_name = "default" 3 | address = "10.1.1.1/32" 4 | rp_set_address = "20.1.1.1/32" 5 | } 6 | -------------------------------------------------------------------------------- /examples/resources/nxos_bgp_instance/resource.tf: -------------------------------------------------------------------------------- 1 | resource "nxos_bgp_instance" "example" { 2 | admin_state = "enabled" 3 | asn = "65001" 4 | enhanced_error_handling = false 5 | } 6 | -------------------------------------------------------------------------------- /examples/resources/nxos_bgp_peer_address_family_route_control/import.sh: -------------------------------------------------------------------------------- 1 | terraform import nxos_bgp_peer_address_family_route_control.example "sys/bgp/inst/dom-[default]/peer-[192.168.0.1]/af-[ipv4-ucast]/rtctrl-[in]" 2 | -------------------------------------------------------------------------------- /examples/resources/nxos_default_qos_policy_interface_in_policy_map/resource.tf: -------------------------------------------------------------------------------- 1 | resource "nxos_default_qos_policy_interface_in_policy_map" "example" { 2 | interface_id = "eth1/10" 3 | policy_map_name = "PM1" 4 | } 5 | -------------------------------------------------------------------------------- /examples/resources/nxos_default_qos_policy_map_match_class_map_set_qos_group/import.sh: -------------------------------------------------------------------------------- 1 | terraform import nxos_default_qos_policy_map_match_class_map_set_qos_group.example "sys/ipqos/dflt/p/name-[PM1]/cmap-[Voice]/setGrp" 2 | -------------------------------------------------------------------------------- /examples/resources/nxos_ipv4_access_list_policy_egress_interface/resource.tf: -------------------------------------------------------------------------------- 1 | resource "nxos_ipv4_access_list_policy_egress_interface" "example" { 2 | interface_id = "eth1/10" 3 | access_list_name = "ACL1" 4 | } 5 | -------------------------------------------------------------------------------- /examples/resources/nxos_pim_anycast_rp_peer/resource.tf: -------------------------------------------------------------------------------- 1 | resource "nxos_pim_anycast_rp_peer" "example" { 2 | vrf_name = "default" 3 | address = "10.1.1.1/32" 4 | rp_set_address = "20.1.1.1/32" 5 | } 6 | -------------------------------------------------------------------------------- /examples/resources/nxos_ipv4_access_list_policy_ingress_interface/resource.tf: -------------------------------------------------------------------------------- 1 | resource "nxos_ipv4_access_list_policy_ingress_interface" "example" { 2 | interface_id = "eth1/10" 3 | access_list_name = "ACL1" 4 | } 5 | -------------------------------------------------------------------------------- /examples/data-sources/nxos_default_qos_policy_map_match_class_map_police/data-source.tf: -------------------------------------------------------------------------------- 1 | data "nxos_default_qos_policy_map_match_class_map_police" "example" { 2 | policy_map_name = "PM1" 3 | class_map_name = "Voice" 4 | } 5 | -------------------------------------------------------------------------------- /examples/data-sources/nxos_evpn_vni_route_target/data-source.tf: -------------------------------------------------------------------------------- 1 | data "nxos_evpn_vni_route_target" "example" { 2 | encap = "vxlan-123456" 3 | direction = "import" 4 | route_target = "route-target:as2-nn2:2:2" 5 | } 6 | -------------------------------------------------------------------------------- /examples/resources/nxos_bgp_peer_address_family_prefix_list_control/import.sh: -------------------------------------------------------------------------------- 1 | terraform import nxos_bgp_peer_address_family_prefix_list_control.example "sys/bgp/inst/dom-[default]/peer-[192.168.0.1]/af-[ipv4-ucast]/pfxctrl-[in]" 2 | -------------------------------------------------------------------------------- /examples/resources/nxos_evpn_vni_route_target/resource.tf: -------------------------------------------------------------------------------- 1 | resource "nxos_evpn_vni_route_target" "example" { 2 | encap = "vxlan-123456" 3 | direction = "import" 4 | route_target = "route-target:as2-nn2:2:2" 5 | } 6 | -------------------------------------------------------------------------------- /examples/data-sources/nxos_bgp_peer_template_max_prefix/data-source.tf: -------------------------------------------------------------------------------- 1 | data "nxos_bgp_peer_template_max_prefix" "example" { 2 | asn = "65001" 3 | template_name = "SPINE-PEERS" 4 | address_family = "ipv4-ucast" 5 | } 6 | -------------------------------------------------------------------------------- /examples/data-sources/nxos_queuing_qos_policy_map_match_class_map_priority/data-source.tf: -------------------------------------------------------------------------------- 1 | data "nxos_queuing_qos_policy_map_match_class_map_priority" "example" { 2 | policy_map_name = "PM1" 3 | class_map_name = "c-out-q1" 4 | } 5 | -------------------------------------------------------------------------------- /examples/resources/nxos_bgp_instance_domain_peercontainer_af_maxprefix/import.sh: -------------------------------------------------------------------------------- 1 | terraform import nxos_bgp_instance_domain_peercontainer_af_maxprefix.example "sys/bgp/inst/dom-[default]/peercont-[SPINE-PEERS]/af-[ipv4-ucast]/maxpfxp" 2 | -------------------------------------------------------------------------------- /examples/resources/nxos_ntp_server/resource.tf: -------------------------------------------------------------------------------- 1 | resource "nxos_ntp_server" "example" { 2 | name = "1.2.3.4" 3 | vrf = "management" 4 | type = "server" 5 | key_id = 10 6 | min_poll = 4 7 | max_poll = 6 8 | } 9 | -------------------------------------------------------------------------------- /examples/resources/nxos_port_channel_interface_member/resource.tf: -------------------------------------------------------------------------------- 1 | resource "nxos_port_channel_interface_member" "example" { 2 | interface_id = "po1" 3 | interface_dn = "sys/intf/phys-[eth1/11]" 4 | force = false 5 | } 6 | -------------------------------------------------------------------------------- /examples/resources/nxos_route_map_rule_entry_match_route_prefix_list/import.sh: -------------------------------------------------------------------------------- 1 | terraform import nxos_route_map_rule_entry_match_route_prefix_list.example "sys/rpm/rtmap-[RULE1]/ent-[10]/mrtdst/rsrtDstAtt-[sys/rpm/pfxlistv4-[LIST1]]" 2 | -------------------------------------------------------------------------------- /examples/resources/nxos_route_map_rule_entry_set_regular_community_item/import.sh: -------------------------------------------------------------------------------- 1 | terraform import nxos_route_map_rule_entry_set_regular_community_item.example "sys/rpm/rtmap-[RULE1]/ent-[10]/sregcomm/item-[regular:as2-nn2:65001:123]" 2 | -------------------------------------------------------------------------------- /examples/data-sources/nxos_default_qos_policy_map_match_class_map_set_qos_group/data-source.tf: -------------------------------------------------------------------------------- 1 | data "nxos_default_qos_policy_map_match_class_map_set_qos_group" "example" { 2 | policy_map_name = "PM1" 3 | class_map_name = "Voice" 4 | } 5 | -------------------------------------------------------------------------------- /examples/resources/nxos_bgp_graceful_restart/resource.tf: -------------------------------------------------------------------------------- 1 | resource "nxos_bgp_graceful_restart" "example" { 2 | asn = "65001" 3 | vrf = "default" 4 | restart_interval = 240 5 | stale_interval = 1800 6 | } 7 | -------------------------------------------------------------------------------- /examples/resources/nxos_bgp_instance_domain_graceful_restart/resource.tf: -------------------------------------------------------------------------------- 1 | resource "nxos_bgp_instance_domain_graceful_restart" "example" { 2 | vrf = "default" 3 | restart_interval = 240 4 | stale_interval = 1800 5 | } 6 | -------------------------------------------------------------------------------- /examples/resources/nxos_bgp_instance_domain_gracefulrestart/resource.tf: -------------------------------------------------------------------------------- 1 | resource "nxos_bgp_instance_domain_gracefulrestart" "example" { 2 | vrf = "default" 3 | restart_interval = 240 4 | stale_interval = 1800 5 | } 6 | -------------------------------------------------------------------------------- /examples/resources/nxos_bgp_instance_domain_peer_container_af_max_prefix/import.sh: -------------------------------------------------------------------------------- 1 | terraform import nxos_bgp_instance_domain_peer_container_af_max_prefix.example "sys/bgp/inst/dom-[default]/peercont-[SPINE-PEERS]/af-[ipv4-ucast]/maxpfxp" 2 | -------------------------------------------------------------------------------- /examples/resources/nxos_queuing_qos_policy_map_match_class_map_remaining_bandwidth/import.sh: -------------------------------------------------------------------------------- 1 | terraform import nxos_queuing_qos_policy_map_match_class_map_remaining_bandwidth.example "sys/ipqos/queuing/p/name-[PM1]/cmap-[c-out-q1]/setRemBW" 2 | -------------------------------------------------------------------------------- /examples/data-sources/nxos_bgp_peer_template_address_family/data-source.tf: -------------------------------------------------------------------------------- 1 | data "nxos_bgp_peer_template_address_family" "example" { 2 | asn = "65001" 3 | template_name = "SPINE-PEERS" 4 | address_family = "ipv4-ucast" 5 | } 6 | -------------------------------------------------------------------------------- /examples/data-sources/nxos_ipv6_interface_address/data-source.tf: -------------------------------------------------------------------------------- 1 | data "nxos_ipv6_interface_address" "example" { 2 | vrf = "default" 3 | interface_id = "eth1/10" 4 | address = "2001:db8:3333:4444:5555:6666:7777:8888" 5 | } 6 | -------------------------------------------------------------------------------- /examples/data-sources/nxos_ospfv3_vrf_address_family/data-source.tf: -------------------------------------------------------------------------------- 1 | data "nxos_ospfv3_vrf_address_family" "example" { 2 | instance_name = "nac-ospfv3" 3 | vrf_name = "VRF1" 4 | address_family_type = "ipv6-ucast" 5 | } 6 | -------------------------------------------------------------------------------- /examples/resources/nxos_vrf_domain_af_control_direction_rt/import.sh: -------------------------------------------------------------------------------- 1 | terraform import nxos_vrf_domain_af_control_direction_rt.example "sys/inst-[VRF1]/dom-[VRF1]/af-[ipv4-ucast]/ctrl-[ipv4-ucast]/rttp-[import]/ent-[route-target:as2-nn2:2:2]" 2 | -------------------------------------------------------------------------------- /examples/data-sources/nxos_bgp_instance_domain_peercontainer_af/data-source.tf: -------------------------------------------------------------------------------- 1 | data "nxos_bgp_instance_domain_peercontainer_af" "example" { 2 | vrf = "default" 3 | template_name = "SPINE-PEERS" 4 | af = "ipv4-ucast" 5 | } 6 | -------------------------------------------------------------------------------- /examples/data-sources/nxos_vrf_domain_af_control_direction/data-source.tf: -------------------------------------------------------------------------------- 1 | data "nxos_vrf_domain_af_control_direction" "example" { 2 | vrf = "VRF1" 3 | af = "ipv4-ucast" 4 | rt_type = "ipv4-ucast" 5 | direction = "import" 6 | } 7 | -------------------------------------------------------------------------------- /examples/resources/nxos_bgp_peer_local_asn/resource.tf: -------------------------------------------------------------------------------- 1 | resource "nxos_bgp_peer_local_asn" "example" { 2 | asn_propagation = "no-prepend" 3 | local_asn = "65001" 4 | vrf = "default" 5 | address = "192.168.0.1" 6 | } 7 | -------------------------------------------------------------------------------- /examples/resources/nxos_vrf_domain_af_control_direction/resource.tf: -------------------------------------------------------------------------------- 1 | resource "nxos_vrf_domain_af_control_direction" "example" { 2 | vrf = "VRF1" 3 | af = "ipv4-ucast" 4 | rt_type = "ipv4-ucast" 5 | direction = "import" 6 | } 7 | -------------------------------------------------------------------------------- /examples/data-sources/nxos_bgp_instance_domain_peer_container_af/data-source.tf: -------------------------------------------------------------------------------- 1 | data "nxos_bgp_instance_domain_peer_container_af" "example" { 2 | vrf = "default" 3 | template_name = "SPINE-PEERS" 4 | af = "ipv4-ucast" 5 | } 6 | -------------------------------------------------------------------------------- /examples/data-sources/nxos_queuing_qos_policy_map_match_class_map_remaining_bandwidth/data-source.tf: -------------------------------------------------------------------------------- 1 | data "nxos_queuing_qos_policy_map_match_class_map_remaining_bandwidth" "example" { 2 | policy_map_name = "PM1" 3 | class_map_name = "c-out-q1" 4 | } 5 | -------------------------------------------------------------------------------- /examples/data-sources/nxos_bgp_advertised_prefix/data-source.tf: -------------------------------------------------------------------------------- 1 | data "nxos_bgp_advertised_prefix" "example" { 2 | asn = "65001" 3 | vrf = "default" 4 | address_family = "ipv4-ucast" 5 | prefix = "192.168.1.0/24" 6 | } 7 | -------------------------------------------------------------------------------- /examples/data-sources/nxos_bgp_peer_address_family/data-source.tf: -------------------------------------------------------------------------------- 1 | data "nxos_bgp_peer_address_family" "example" { 2 | asn = "65001" 3 | vrf = "default" 4 | address = "192.168.0.1" 5 | address_family = "ipv4-ucast" 6 | } 7 | -------------------------------------------------------------------------------- /examples/data-sources/nxos_ospfv3_area_address_family/data-source.tf: -------------------------------------------------------------------------------- 1 | data "nxos_ospfv3_area_address_family" "example" { 2 | instance_name = "OSPFv3" 3 | vrf_name = "default" 4 | area_id = "0.0.0.10" 5 | family_type = "ipv6-ucast" 6 | } 7 | -------------------------------------------------------------------------------- /examples/resources/nxos_pim_static_rp_group_list/resource.tf: -------------------------------------------------------------------------------- 1 | resource "nxos_pim_static_rp_group_list" "example" { 2 | vrf_name = "default" 3 | rp_address = "1.2.3.4" 4 | address = "224.0.0.0/4" 5 | bidir = true 6 | override = true 7 | } 8 | -------------------------------------------------------------------------------- /examples/resources/nxos_queuing_qos_policy_map_match_class_map_priority/resource.tf: -------------------------------------------------------------------------------- 1 | resource "nxos_queuing_qos_policy_map_match_class_map_priority" "example" { 2 | policy_map_name = "PM1" 3 | class_map_name = "c-out-q1" 4 | level = 1 5 | } 6 | -------------------------------------------------------------------------------- /examples/resources/nxos_route_map_rule_entry_set_regular_community_item/resource.tf: -------------------------------------------------------------------------------- 1 | resource "nxos_route_map_rule_entry_set_regular_community_item" "example" { 2 | rule_name = "RULE1" 3 | order = 10 4 | community = "regular:as2-nn2:65001:123" 5 | } 6 | -------------------------------------------------------------------------------- /examples/data-sources/nxos_route_map_rule_entry_set_regular_community_item/data-source.tf: -------------------------------------------------------------------------------- 1 | data "nxos_route_map_rule_entry_set_regular_community_item" "example" { 2 | rule_name = "RULE1" 3 | order = 10 4 | community = "regular:as2-nn2:65001:123" 5 | } 6 | -------------------------------------------------------------------------------- /examples/resources/nxos_default_qos_policy_map_match_class_map_set_qos_group/resource.tf: -------------------------------------------------------------------------------- 1 | resource "nxos_default_qos_policy_map_match_class_map_set_qos_group" "example" { 2 | policy_map_name = "PM1" 3 | class_map_name = "Voice" 4 | qos_group_id = 1 5 | } 6 | -------------------------------------------------------------------------------- /examples/data-sources/nxos_bgp_instance_domain_peercontainer_af_maxprefix/data-source.tf: -------------------------------------------------------------------------------- 1 | data "nxos_bgp_instance_domain_peercontainer_af_maxprefix" "example" { 2 | vrf = "default" 3 | template_name = "SPINE-PEERS" 4 | af = "ipv4-ucast" 5 | } 6 | -------------------------------------------------------------------------------- /examples/data-sources/nxos_route_map_rule_entry_match_route_prefix_list/data-source.tf: -------------------------------------------------------------------------------- 1 | data "nxos_route_map_rule_entry_match_route_prefix_list" "example" { 2 | rule_name = "RULE1" 3 | order = 10 4 | prefix_list_dn = "sys/rpm/pfxlistv4-[LIST1]" 5 | } 6 | -------------------------------------------------------------------------------- /examples/resources/nxos_route_map_rule_entry_match_route_prefix_list/resource.tf: -------------------------------------------------------------------------------- 1 | resource "nxos_route_map_rule_entry_match_route_prefix_list" "example" { 2 | rule_name = "RULE1" 3 | order = 10 4 | prefix_list_dn = "sys/rpm/pfxlistv4-[LIST1]" 5 | } 6 | -------------------------------------------------------------------------------- /gen/templates/data-source.tf: -------------------------------------------------------------------------------- 1 | data "nxos_{{snakeCase .Name}}" "example" { 2 | {{- range .Attributes}} 3 | {{- if or .Id .ReferenceOnly}} 4 | {{.TfName}} = {{if eq .Type "String"}}"{{end}}{{.Example}}{{if eq .Type "String"}}"{{end}} 5 | {{- end}} 6 | {{- end}} 7 | } 8 | -------------------------------------------------------------------------------- /examples/data-sources/nxos_bgp_instance_domain_peer_container_af_max_prefix/data-source.tf: -------------------------------------------------------------------------------- 1 | data "nxos_bgp_instance_domain_peer_container_af_max_prefix" "example" { 2 | vrf = "default" 3 | template_name = "SPINE-PEERS" 4 | af = "ipv4-ucast" 5 | } 6 | -------------------------------------------------------------------------------- /examples/resources/nxos_ipv4_interface_address/resource.tf: -------------------------------------------------------------------------------- 1 | resource "nxos_ipv4_interface_address" "example" { 2 | vrf = "default" 3 | interface_id = "eth1/10" 4 | address = "24.63.46.49/30" 5 | type = "primary" 6 | tag = 1234 7 | } 8 | -------------------------------------------------------------------------------- /examples/resources/nxos_vrf_route_target_address_family/resource.tf: -------------------------------------------------------------------------------- 1 | resource "nxos_vrf_route_target_address_family" "example" { 2 | vrf = "VRF1" 3 | address_family = "ipv4-ucast" 4 | route_target_address_family = "ipv4-ucast" 5 | } 6 | -------------------------------------------------------------------------------- /examples/data-sources/nxos_vrf_route_target_address_family/data-source.tf: -------------------------------------------------------------------------------- 1 | data "nxos_vrf_route_target_address_family" "example" { 2 | vrf = "VRF1" 3 | address_family = "ipv4-ucast" 4 | route_target_address_family = "ipv4-ucast" 5 | } 6 | -------------------------------------------------------------------------------- /examples/resources/nxos_queuing_qos_policy_map_match_class_map_remaining_bandwidth/resource.tf: -------------------------------------------------------------------------------- 1 | resource "nxos_queuing_qos_policy_map_match_class_map_remaining_bandwidth" "example" { 2 | policy_map_name = "PM1" 3 | class_map_name = "c-out-q1" 4 | value = 10 5 | } 6 | -------------------------------------------------------------------------------- /examples/resources/nxos_ospfv3_area_address_family/resource.tf: -------------------------------------------------------------------------------- 1 | resource "nxos_ospfv3_area_address_family" "example" { 2 | instance_name = "OSPFv3" 3 | vrf_name = "default" 4 | area_id = "0.0.0.10" 5 | family_type = "ipv6-ucast" 6 | cost = "1024" 7 | } 8 | -------------------------------------------------------------------------------- /examples/resources/nxos_ipv4_interface/resource.tf: -------------------------------------------------------------------------------- 1 | resource "nxos_ipv4_interface" "example" { 2 | vrf = "default" 3 | interface_id = "eth1/10" 4 | drop_glean = "disabled" 5 | forward = "disabled" 6 | unnumbered = "unspecified" 7 | urpf = "disabled" 8 | } 9 | -------------------------------------------------------------------------------- /examples/data-sources/nxos_bgp_route_redistribution/data-source.tf: -------------------------------------------------------------------------------- 1 | data "nxos_bgp_route_redistribution" "example" { 2 | asn = "65001" 3 | vrf = "default" 4 | address_family = "ipv4-ucast" 5 | protocol = "ospf" 6 | protocol_instance = "OSPF1" 7 | } 8 | -------------------------------------------------------------------------------- /examples/resources/nxos_bgp_instance_domain_af/resource.tf: -------------------------------------------------------------------------------- 1 | resource "nxos_bgp_instance_domain_af" "example" { 2 | vrf = "default" 3 | af = "ipv4-ucast" 4 | critical_nexthop_timeout = 1800 5 | non_critical_nexthop_timeout = 1800 6 | } 7 | -------------------------------------------------------------------------------- /examples/resources/nxos_ipv6_interface_address/resource.tf: -------------------------------------------------------------------------------- 1 | resource "nxos_ipv6_interface_address" "example" { 2 | vrf = "default" 3 | interface_id = "eth1/10" 4 | address = "2001:db8:3333:4444:5555:6666:7777:8888" 5 | type = "primary" 6 | tag = 1234 7 | } 8 | -------------------------------------------------------------------------------- /examples/resources/nxos_vrf_domain_af_control_direction_rt/resource.tf: -------------------------------------------------------------------------------- 1 | resource "nxos_vrf_domain_af_control_direction_rt" "example" { 2 | vrf = "VRF1" 3 | af = "ipv4-ucast" 4 | rt_type = "ipv4-ucast" 5 | direction = "import" 6 | rt = "route-target:as2-nn2:2:2" 7 | } 8 | -------------------------------------------------------------------------------- /examples/data-sources/nxos_vrf_domain_af_control_direction_rt/data-source.tf: -------------------------------------------------------------------------------- 1 | data "nxos_vrf_domain_af_control_direction_rt" "example" { 2 | vrf = "VRF1" 3 | af = "ipv4-ucast" 4 | rt_type = "ipv4-ucast" 5 | direction = "import" 6 | rt = "route-target:as2-nn2:2:2" 7 | } 8 | -------------------------------------------------------------------------------- /examples/resources/nxos_ospf_area/resource.tf: -------------------------------------------------------------------------------- 1 | resource "nxos_ospf_area" "example" { 2 | instance_name = "OSPF1" 3 | vrf_name = "VRF1" 4 | area_id = "0.0.0.10" 5 | authentication_type = "none" 6 | cost = 10 7 | type = "stub" 8 | } 9 | -------------------------------------------------------------------------------- /examples/resources/nxos_route_map_rule_entry_set_regular_community/resource.tf: -------------------------------------------------------------------------------- 1 | resource "nxos_route_map_rule_entry_set_regular_community" "example" { 2 | rule_name = "RULE1" 3 | order = 10 4 | additive = "disabled" 5 | no_community = "disabled" 6 | set_criteria = "none" 7 | } 8 | -------------------------------------------------------------------------------- /examples/resources/nxos_pim_interface/resource.tf: -------------------------------------------------------------------------------- 1 | resource "nxos_pim_interface" "example" { 2 | vrf_name = "default" 3 | interface_id = "eth1/10" 4 | admin_state = "enabled" 5 | bfd = "enabled" 6 | dr_priority = 10 7 | passive = false 8 | sparse_mode = true 9 | } 10 | -------------------------------------------------------------------------------- /examples/resources/nxos_svi_interface/resource.tf: -------------------------------------------------------------------------------- 1 | resource "nxos_svi_interface" "example" { 2 | interface_id = "vlan293" 3 | admin_state = "down" 4 | bandwidth = 1000 5 | delay = 10 6 | description = "My Description" 7 | medium = "bcast" 8 | mtu = 9216 9 | } 10 | -------------------------------------------------------------------------------- /examples/resources/nxos_vrf_route_target_direction/resource.tf: -------------------------------------------------------------------------------- 1 | resource "nxos_vrf_route_target_direction" "example" { 2 | vrf = "VRF1" 3 | address_family = "ipv4-ucast" 4 | route_target_address_family = "ipv4-ucast" 5 | direction = "import" 6 | } 7 | -------------------------------------------------------------------------------- /examples/data-sources/nxos_bgp_peer_address_family_route_control/data-source.tf: -------------------------------------------------------------------------------- 1 | data "nxos_bgp_peer_address_family_route_control" "example" { 2 | asn = "65001" 3 | vrf = "default" 4 | address = "192.168.0.1" 5 | address_family = "ipv4-ucast" 6 | direction = "in" 7 | } 8 | -------------------------------------------------------------------------------- /examples/data-sources/nxos_vrf_route_target_direction/data-source.tf: -------------------------------------------------------------------------------- 1 | data "nxos_vrf_route_target_direction" "example" { 2 | vrf = "VRF1" 3 | address_family = "ipv4-ucast" 4 | route_target_address_family = "ipv4-ucast" 5 | direction = "import" 6 | } 7 | -------------------------------------------------------------------------------- /examples/resources/nxos_bgp_advertised_prefix/resource.tf: -------------------------------------------------------------------------------- 1 | resource "nxos_bgp_advertised_prefix" "example" { 2 | asn = "65001" 3 | vrf = "default" 4 | address_family = "ipv4-ucast" 5 | prefix = "192.168.1.0/24" 6 | route_map = "rt-map" 7 | evpn = "enabled" 8 | } 9 | -------------------------------------------------------------------------------- /examples/resources/nxos_bgp_instance_domain_peercontainer/resource.tf: -------------------------------------------------------------------------------- 1 | resource "nxos_bgp_instance_domain_peercontainer" "example" { 2 | vrf = "default" 3 | template_name = "SPINE-PEERS" 4 | asn = "65002" 5 | peer_type = "fabric-internal" 6 | source_interface = "lo0" 7 | } 8 | -------------------------------------------------------------------------------- /examples/resources/nxos_nve_vni/resource.tf: -------------------------------------------------------------------------------- 1 | resource "nxos_nve_vni" "example" { 2 | vni = 103100 3 | associate_vrf = false 4 | multicast_group = "239.1.1.1" 5 | multisite_ingress_replication = "disable" 6 | suppress_arp = "off" 7 | } 8 | -------------------------------------------------------------------------------- /examples/data-sources/nxos_bgp_peer_address_family_prefix_list_control/data-source.tf: -------------------------------------------------------------------------------- 1 | data "nxos_bgp_peer_address_family_prefix_list_control" "example" { 2 | asn = "65001" 3 | vrf = "default" 4 | address = "192.168.0.1" 5 | address_family = "ipv4-ucast" 6 | direction = "in" 7 | } 8 | -------------------------------------------------------------------------------- /examples/resources/nxos_bgp_instance_domain_peer_container/resource.tf: -------------------------------------------------------------------------------- 1 | resource "nxos_bgp_instance_domain_peer_container" "example" { 2 | vrf = "default" 3 | template_name = "SPINE-PEERS" 4 | asn = "65002" 5 | peer_type = "fabric-internal" 6 | source_interface = "lo0" 7 | } 8 | -------------------------------------------------------------------------------- /examples/resources/nxos_ipv4_prefix_list_rule_entry/resource.tf: -------------------------------------------------------------------------------- 1 | resource "nxos_ipv4_prefix_list_rule_entry" "example" { 2 | rule_name = "RULE1" 3 | order = 10 4 | action = "permit" 5 | criteria = "inexact" 6 | prefix = "192.168.1.0/24" 7 | from_range = 26 8 | to_range = 32 9 | } 10 | -------------------------------------------------------------------------------- /examples/resources/nxos_bgp_peer_template/resource.tf: -------------------------------------------------------------------------------- 1 | resource "nxos_bgp_peer_template" "example" { 2 | asn = "65001" 3 | template_name = "SPINE-PEERS" 4 | remote_asn = "65002" 5 | description = "My Description" 6 | peer_type = "fabric-internal" 7 | source_interface = "lo0" 8 | } 9 | -------------------------------------------------------------------------------- /examples/resources/nxos_bgp_route_control/resource.tf: -------------------------------------------------------------------------------- 1 | resource "nxos_bgp_route_control" "example" { 2 | asn = "65001" 3 | vrf = "default" 4 | enforce_first_as = "disabled" 5 | fib_accelerate = "enabled" 6 | log_neighbor_changes = "enabled" 7 | suppress_routes = "disabled" 8 | } 9 | -------------------------------------------------------------------------------- /examples/resources/nxos_bgp_peer_address_family_route_control/resource.tf: -------------------------------------------------------------------------------- 1 | resource "nxos_bgp_peer_address_family_route_control" "example" { 2 | asn = "65001" 3 | vrf = "default" 4 | address = "192.168.0.1" 5 | address_family = "ipv4-ucast" 6 | direction = "in" 7 | route_map_name = "ROUTE_MAP1" 8 | } 9 | -------------------------------------------------------------------------------- /examples/resources/nxos_pim_ssm_range/resource.tf: -------------------------------------------------------------------------------- 1 | resource "nxos_pim_ssm_range" "example" { 2 | vrf_name = "default" 3 | group_list_1 = "232.0.0.0/8" 4 | group_list_2 = "233.0.0.0/8" 5 | group_list_3 = "0.0.0.0" 6 | group_list_4 = "0.0.0.0" 7 | prefix_list = "" 8 | route_map = "" 9 | ssm_none = false 10 | } 11 | -------------------------------------------------------------------------------- /examples/data-sources/nxos_vrf_route_target/data-source.tf: -------------------------------------------------------------------------------- 1 | data "nxos_vrf_route_target" "example" { 2 | vrf = "VRF1" 3 | address_family = "ipv4-ucast" 4 | route_target_address_family = "ipv4-ucast" 5 | direction = "import" 6 | route_target = "route-target:as2-nn2:2:2" 7 | } 8 | -------------------------------------------------------------------------------- /examples/resources/nxos_bgp_peer_template_max_prefix/resource.tf: -------------------------------------------------------------------------------- 1 | resource "nxos_bgp_peer_template_max_prefix" "example" { 2 | asn = "65001" 3 | template_name = "SPINE-PEERS" 4 | address_family = "ipv4-ucast" 5 | action = "log" 6 | maximum_prefix = 10000 7 | restart_time = 0 8 | threshold = 30 9 | } 10 | -------------------------------------------------------------------------------- /examples/resources/nxos_vrf_route_target/resource.tf: -------------------------------------------------------------------------------- 1 | resource "nxos_vrf_route_target" "example" { 2 | vrf = "VRF1" 3 | address_family = "ipv4-ucast" 4 | route_target_address_family = "ipv4-ucast" 5 | direction = "import" 6 | route_target = "route-target:as2-nn2:2:2" 7 | } 8 | -------------------------------------------------------------------------------- /examples/resources/nxos_bgp_peer_address_family_prefix_list_control/resource.tf: -------------------------------------------------------------------------------- 1 | resource "nxos_bgp_peer_address_family_prefix_list_control" "example" { 2 | asn = "65001" 3 | vrf = "default" 4 | address = "192.168.0.1" 5 | address_family = "ipv4-ucast" 6 | direction = "in" 7 | list = "PREFIX_LIST1" 8 | } 9 | -------------------------------------------------------------------------------- /examples/resources/nxos_ospfv3_vrf_address_family/resource.tf: -------------------------------------------------------------------------------- 1 | resource "nxos_ospfv3_vrf_address_family" "example" { 2 | instance_name = "nac-ospfv3" 3 | vrf_name = "VRF1" 4 | address_family_type = "ipv6-ucast" 5 | administrative_distance = "10" 6 | default_metric = "1024" 7 | max_ecmp_cost = 16 8 | } 9 | -------------------------------------------------------------------------------- /examples/resources/nxos_subinterface/resource.tf: -------------------------------------------------------------------------------- 1 | resource "nxos_subinterface" "example" { 2 | interface_id = "eth1/10.124" 3 | admin_state = "down" 4 | bandwidth = 1000 5 | delay = 10 6 | description = "My Description" 7 | encap = "vlan-124" 8 | link_logging = "enable" 9 | medium = "broadcast" 10 | mtu = 1500 11 | } 12 | -------------------------------------------------------------------------------- /examples/resources/nxos_spanning_tree_interface/resource.tf: -------------------------------------------------------------------------------- 1 | resource "nxos_spanning_tree_interface" "example" { 2 | interface_id = "eth1/9" 3 | admin_state = "enabled" 4 | bpdu_filter = "enable" 5 | bpdu_guard = "enable" 6 | cost = 100 7 | guard = "root" 8 | link_type = "p2p" 9 | mode = "edge" 10 | priority = 200 11 | } 12 | -------------------------------------------------------------------------------- /examples/resources/nxos_bgp_instance_domain_peercontainer_af_maxprefix/resource.tf: -------------------------------------------------------------------------------- 1 | resource "nxos_bgp_instance_domain_peercontainer_af_maxprefix" "example" { 2 | vrf = "default" 3 | template_name = "SPINE-PEERS" 4 | af = "ipv4-ucast" 5 | action = "log" 6 | maximum_prefix = 10000 7 | restart_time = 0 8 | threshold = 30 9 | } 10 | -------------------------------------------------------------------------------- /examples/resources/nxos_bgp_instance_domain_peer/resource.tf: -------------------------------------------------------------------------------- 1 | resource "nxos_bgp_instance_domain_peer" "example" { 2 | vrf = "default" 3 | address = "192.168.0.1" 4 | asn = "65002" 5 | description = "My description" 6 | peer_template = "SPINE-PEERS" 7 | peer_type = "fabric-internal" 8 | source_interface = "lo0" 9 | } 10 | -------------------------------------------------------------------------------- /examples/resources/nxos_bgp_instance_domain_peer_container_af_max_prefix/resource.tf: -------------------------------------------------------------------------------- 1 | resource "nxos_bgp_instance_domain_peer_container_af_max_prefix" "example" { 2 | vrf = "default" 3 | template_name = "SPINE-PEERS" 4 | af = "ipv4-ucast" 5 | action = "log" 6 | maximum_prefix = 10000 7 | restart_time = 0 8 | threshold = 30 9 | } 10 | -------------------------------------------------------------------------------- /examples/resources/nxos_ospfv3_area/resource.tf: -------------------------------------------------------------------------------- 1 | resource "nxos_ospfv3_area" "example" { 2 | instance_name = "nac-ospfv3" 3 | vrf_name = "VRF1" 4 | area_id = "0.0.0.10" 5 | redistribute = false 6 | summary = false 7 | suppress_forward_address = false 8 | type = "regular" 9 | } 10 | -------------------------------------------------------------------------------- /examples/resources/nxos_ospfv3_vrf/resource.tf: -------------------------------------------------------------------------------- 1 | resource "nxos_ospfv3_vrf" "example" { 2 | instance_name = "nac-ospfv3" 3 | name = "VRF1" 4 | admin_state = "enabled" 5 | bandwidth_reference = 400000 6 | bandwidth_reference_unit = "mbps" 7 | router_id = "34.56.78.90" 8 | bfd_control = false 9 | } 10 | -------------------------------------------------------------------------------- /examples/resources/nxos_bgp_instance_domain_peercontainer_af/resource.tf: -------------------------------------------------------------------------------- 1 | resource "nxos_bgp_instance_domain_peercontainer_af" "example" { 2 | vrf = "default" 3 | template_name = "SPINE-PEERS" 4 | af = "ipv4-ucast" 5 | control = "rr-client" 6 | send_community_extended = "enabled" 7 | send_community_standard = "enabled" 8 | } 9 | -------------------------------------------------------------------------------- /examples/resources/nxos_bgp_peer_template_address_family/resource.tf: -------------------------------------------------------------------------------- 1 | resource "nxos_bgp_peer_template_address_family" "example" { 2 | asn = "65001" 3 | template_name = "SPINE-PEERS" 4 | address_family = "ipv4-ucast" 5 | control = "nh-self,rr-client" 6 | send_community_extended = "enabled" 7 | send_community_standard = "enabled" 8 | } 9 | -------------------------------------------------------------------------------- /examples/resources/nxos_ospfv3_interface_authentication/resource.tf: -------------------------------------------------------------------------------- 1 | resource "nxos_ospfv3_interface_authentication" "example" { 2 | interface_id = "eth1/4" 3 | authentication_key = "10 MY_SECRET_KEY" 4 | authentication_key_encryption_type = "cisco-type-7" 5 | security_parameter_index = 444 6 | authentication_type = "md5" 7 | } 8 | -------------------------------------------------------------------------------- /examples/resources/nxos_bgp_instance_domain_peer_container_af/resource.tf: -------------------------------------------------------------------------------- 1 | resource "nxos_bgp_instance_domain_peer_container_af" "example" { 2 | vrf = "default" 3 | template_name = "SPINE-PEERS" 4 | af = "ipv4-ucast" 5 | control = "rr-client" 6 | send_community_extended = "enabled" 7 | send_community_standard = "enabled" 8 | } 9 | -------------------------------------------------------------------------------- /examples/resources/nxos_isis_address_family/resource.tf: -------------------------------------------------------------------------------- 1 | resource "nxos_isis_address_family" "example" { 2 | instance_name = "ISIS1" 3 | vrf = "default" 4 | address_family = "v4" 5 | segment_routing_mpls = true 6 | enable_bfd = false 7 | prefix_advertise_passive_l1 = true 8 | prefix_advertise_passive_l2 = true 9 | } 10 | -------------------------------------------------------------------------------- /examples/resources/nxos_bgp_route_redistribution/resource.tf: -------------------------------------------------------------------------------- 1 | resource "nxos_bgp_route_redistribution" "example" { 2 | asn = "65001" 3 | vrf = "default" 4 | address_family = "ipv4-ucast" 5 | protocol = "ospf" 6 | protocol_instance = "OSPF1" 7 | route_map = "route_map_ospf_1" 8 | scope = "inter" 9 | srv6_prefix_type = "unspecified" 10 | } 11 | -------------------------------------------------------------------------------- /examples/resources/nxos_ipv4_static_route/resource.tf: -------------------------------------------------------------------------------- 1 | resource "nxos_ipv4_static_route" "example" { 2 | vrf_name = "default" 3 | prefix = "1.1.1.0/24" 4 | next_hops = [{ 5 | interface_id = "unspecified" 6 | address = "1.2.3.4" 7 | vrf_name = "default" 8 | description = "My Description" 9 | object = 10 10 | preference = 123 11 | tag = 10 12 | }] 13 | } 14 | -------------------------------------------------------------------------------- /examples/resources/nxos_bgp_peer_address_family/resource.tf: -------------------------------------------------------------------------------- 1 | resource "nxos_bgp_peer_address_family" "example" { 2 | asn = "65001" 3 | vrf = "default" 4 | address = "192.168.0.1" 5 | address_family = "ipv4-ucast" 6 | control = "nh-self,rr-client" 7 | send_community_extended = "enabled" 8 | send_community_standard = "enabled" 9 | } 10 | -------------------------------------------------------------------------------- /examples/resources/nxos_ospf_vrf/resource.tf: -------------------------------------------------------------------------------- 1 | resource "nxos_ospf_vrf" "example" { 2 | instance_name = "OSPF1" 3 | name = "VRF1" 4 | admin_state = "enabled" 5 | bandwidth_reference = 400000 6 | bandwidth_reference_unit = "mbps" 7 | distance = 110 8 | router_id = "34.56.78.90" 9 | control = "bfd,default-passive" 10 | } 11 | -------------------------------------------------------------------------------- /examples/resources/nxos_ipv6_static_route/resource.tf: -------------------------------------------------------------------------------- 1 | resource "nxos_ipv6_static_route" "example" { 2 | vrf_name = "default" 3 | prefix = "2001:db8:3333:4444:5555:6666:102:304/128" 4 | next_hops = [{ 5 | interface_id = "unspecified" 6 | address = "a:b::c:d/128" 7 | vrf_name = "default" 8 | description = "My Description" 9 | object = 10 10 | preference = 123 11 | tag = 10 12 | }] 13 | } 14 | -------------------------------------------------------------------------------- /examples/resources/nxos_ospf_authentication/resource.tf: -------------------------------------------------------------------------------- 1 | resource "nxos_ospf_authentication" "example" { 2 | instance_name = "OSPF1" 3 | vrf_name = "VRF1" 4 | interface_id = "eth1/10" 5 | key = "0 mykey" 6 | key_id = 1 7 | key_secure_mode = false 8 | keychain = "mykeychain" 9 | md5_key = "0 mymd5key" 10 | md5_key_secure_mode = false 11 | type = "none" 12 | } 13 | -------------------------------------------------------------------------------- /examples/resources/nxos_ospfv3_interface/resource.tf: -------------------------------------------------------------------------------- 1 | resource "nxos_ospfv3_interface" "example" { 2 | interface_id = "eth1/10" 3 | advertise_secondaries = false 4 | area = "0.0.0.10" 5 | bfd = "disabled" 6 | cost = 1000 7 | dead_interval = 60 8 | hello_interval = 15 9 | network_type = "p2p" 10 | passive = "enabled" 11 | priority = 10 12 | } 13 | -------------------------------------------------------------------------------- /gen/definitions/queuing_qos_policy_system_out.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | name: Queuing QOS Policy System Out 3 | class_name: ipqosSystem 4 | dn: sys/ipqos/queuing/policy/out/sys 5 | ds_description: This data source can read the queuing QoS policy system out configuration. 6 | res_description: This resource can manage the queuing QoS policy system out configuration. 7 | doc_path: Qos/ipqos:System/ 8 | doc_category: QoS 9 | children: 10 | - Queuing QOS Policy System Out Policy Map 11 | -------------------------------------------------------------------------------- /gen/definitions/system.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | name: System 3 | class_name: topSystem 4 | dn: sys 5 | no_delete: true 6 | ds_description: This data source can read the system configuration. 7 | res_description: This resource can manage the system configuration. 8 | doc_path: System/top:System/ 9 | doc_category: System 10 | attributes: 11 | - nxos_name: name 12 | tf_name: name 13 | type: String 14 | description: 'The system name (hostname).' 15 | example: 'LEAF1' 16 | -------------------------------------------------------------------------------- /gen/definitions/ipv6_vrf.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | name: IPv6 VRF 3 | class_name: ipv6Dom 4 | dn: sys/ipv6/inst/dom-[%s] 5 | ds_description: This data source can read the IPv6 VRF information. 6 | res_description: This resource can manage the IPv6 VRF information. 7 | doc_path: Layer%203/ipv6:Dom/ 8 | doc_category: IPv6 9 | children: 10 | - IPv6 Interface 11 | - IPv6 Static Route 12 | attributes: 13 | - nxos_name: name 14 | tf_name: name 15 | type: String 16 | id: true 17 | description: 'VRF name.' 18 | example: 'VRF1' 19 | -------------------------------------------------------------------------------- /examples/resources/nxos_ospf_interface/resource.tf: -------------------------------------------------------------------------------- 1 | resource "nxos_ospf_interface" "example" { 2 | instance_name = "OSPF1" 3 | vrf_name = "VRF1" 4 | interface_id = "eth1/10" 5 | advertise_secondaries = false 6 | area = "0.0.0.10" 7 | bfd = "disabled" 8 | cost = 1000 9 | dead_interval = 60 10 | hello_interval = 15 11 | network_type = "p2p" 12 | passive = "enabled" 13 | priority = 10 14 | } 15 | -------------------------------------------------------------------------------- /examples/resources/nxos_ipv6_interface/resource.tf: -------------------------------------------------------------------------------- 1 | resource "nxos_ipv6_interface" "example" { 2 | vrf = "default" 3 | interface_id = "eth1/10" 4 | auto_configuration = "disabled" 5 | default_route = "disabled" 6 | ipv6_forward = "disabled" 7 | forward = "disabled" 8 | link_address_use_bia = "disabled" 9 | use_link_local_address = "disabled" 10 | urpf = "disabled" 11 | link_local_address = "2001:db8:3333:4444:5555:6666:7777:8888" 12 | } 13 | -------------------------------------------------------------------------------- /gen/definitions/ipv4_access_list.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | name: IPv4 Access List 3 | class_name: ipv4aclACL 4 | dn: sys/acl/ipv4/name-[%s] 5 | ds_description: This data source can read IPv4 Access Lists. 6 | res_description: This resource can manage IPv4 Access Lists. 7 | doc_path: Security%20and%20Policing/ipv4acl:ACL/ 8 | doc_category: IPv4 9 | children: 10 | - IPv4 Access List Entry 11 | attributes: 12 | - nxos_name: name 13 | tf_name: name 14 | type: String 15 | id: true 16 | description: 'Access list name.' 17 | example: 'ACL1' 18 | -------------------------------------------------------------------------------- /gen/definitions/ipv4_vrf.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | name: IPv4 VRF 3 | class_name: ipv4Dom 4 | dn: sys/ipv4/inst/dom-[%s] 5 | ds_description: This data source can read the IPv4 VRF information. 6 | res_description: This resource can manage the IPv4 VRF information. 7 | doc_path: Layer%203/ipv4:Dom/ 8 | doc_category: IPv4 9 | children: 10 | - IPv4 Interface 11 | - IPv4 Static Route 12 | references: 13 | - VRF 14 | attributes: 15 | - nxos_name: name 16 | tf_name: name 17 | type: String 18 | id: true 19 | description: "VRF name." 20 | example: "VRF1" 21 | -------------------------------------------------------------------------------- /gen/definitions/route_map_rule.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | name: Route Map Rule 3 | class_name: rtmapRule 4 | dn: sys/rpm/rtmap-[%s] 5 | ds_description: This data source can read a Route-Map Rule configuration. 6 | res_description: This resource can manage a Route-Map Rule configuration. 7 | doc_path: Routing%20and%20Forwarding/rtmap:Rule/ 8 | doc_category: Routing 9 | children: 10 | - Route Map Rule Entry 11 | attributes: 12 | - nxos_name: name 13 | tf_name: name 14 | type: String 15 | description: 'Route-Map Rule name.' 16 | id: true 17 | example: RULE1 18 | -------------------------------------------------------------------------------- /.github/dependabot.yml: -------------------------------------------------------------------------------- 1 | # See GitHub's documentation for more information on this file: 2 | # https://docs.github.com/en/code-security/supply-chain-security/keeping-your-dependencies-updated-automatically/configuration-options-for-dependency-updates 3 | version: 2 4 | updates: 5 | - package-ecosystem: 'github-actions' 6 | directory: '/' 7 | schedule: 8 | interval: 'daily' 9 | ignore: 10 | - dependency-name: 'mktcode/consecutive-workflow-action' 11 | - package-ecosystem: 'gomod' 12 | directory: '/' 13 | schedule: 14 | interval: 'daily' 15 | -------------------------------------------------------------------------------- /examples/resources/nxos_rest/resource.tf: -------------------------------------------------------------------------------- 1 | resource "nxos_rest" "l1PhysIf" { 2 | dn = "sys/intf/phys-[eth1/1]" 3 | class_name = "l1PhysIf" 4 | content = { 5 | id = "eth1/1" 6 | mode = "trunk" 7 | } 8 | } 9 | 10 | resource "nxos_rest" "ipqosCMapInst" { 11 | dn = "sys/ipqos/dflt/c/name-[CM1]" 12 | class_name = "ipqosCMapInst" 13 | content = { 14 | name = "CM1" 15 | } 16 | children = [ 17 | { 18 | rn = "dscp-ef" 19 | class_name = "ipqosDscp" 20 | content = { 21 | val = "ef" 22 | } 23 | } 24 | ] 25 | } 26 | -------------------------------------------------------------------------------- /examples/resources/nxos_bgp_peer/resource.tf: -------------------------------------------------------------------------------- 1 | resource "nxos_bgp_peer" "example" { 2 | asn = "65001" 3 | vrf = "default" 4 | address = "192.168.0.1" 5 | remote_asn = "65002" 6 | description = "My description" 7 | peer_template = "SPINE-PEERS" 8 | peer_type = "fabric-internal" 9 | source_interface = "lo0" 10 | hold_time = 45 11 | keepalive = 15 12 | ebgp_multihop_ttl = 5 13 | peer_control = "bfd,dis-conn-check" 14 | password_type = "LINE" 15 | password = "secret_password" 16 | } 17 | -------------------------------------------------------------------------------- /gen/definitions/feature_bfd.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | name: Feature BFD 3 | class_name: fmBfd 4 | dn: sys/fm/bfd 5 | ds_description: This data source can read the BFD feature configuration. 6 | res_description: This resource can manage the BFD feature configuration. 7 | doc_path: Feature%20Management/fm:Bfd/ 8 | doc_category: Feature 9 | attributes: 10 | - nxos_name: adminSt 11 | tf_name: admin_state 12 | type: String 13 | mandatory: true 14 | description: 'Administrative state.' 15 | enum_values: 16 | - enabled 17 | - disabled 18 | example: enabled 19 | delete_value: disabled 20 | -------------------------------------------------------------------------------- /gen/definitions/feature_bgp.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | name: Feature BGP 3 | class_name: fmBgp 4 | dn: sys/fm/bgp 5 | ds_description: This data source can read the BGP feature configuration. 6 | res_description: This resource can manage the BGP feature configuration. 7 | doc_path: Feature%20Management/fm:Bgp/ 8 | doc_category: Feature 9 | attributes: 10 | - nxos_name: adminSt 11 | tf_name: admin_state 12 | type: String 13 | mandatory: true 14 | description: 'Administrative state.' 15 | enum_values: 16 | - enabled 17 | - disabled 18 | example: enabled 19 | delete_value: disabled 20 | -------------------------------------------------------------------------------- /gen/definitions/feature_pim.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | name: Feature PIM 3 | class_name: fmPim 4 | dn: sys/fm/pim 5 | ds_description: This data source can read the PIM feature configuration. 6 | res_description: This resource can manage the PIM feature configuration. 7 | doc_path: Feature%20Management/fm:Pim/ 8 | doc_category: Feature 9 | attributes: 10 | - nxos_name: adminSt 11 | tf_name: admin_state 12 | type: String 13 | mandatory: true 14 | description: 'Administrative state.' 15 | enum_values: 16 | - enabled 17 | - disabled 18 | example: enabled 19 | delete_value: disabled 20 | -------------------------------------------------------------------------------- /gen/definitions/feature_ptp.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | name: Feature PTP 3 | class_name: fmPtp 4 | dn: sys/fm/ptp 5 | ds_description: This data source can read the PTP feature configuration. 6 | res_description: This resource can manage the PTP feature configuration. 7 | doc_path: Feature%20Management/fm:Ptp/ 8 | doc_category: Feature 9 | attributes: 10 | - nxos_name: adminSt 11 | tf_name: admin_state 12 | type: String 13 | mandatory: true 14 | description: 'Administrative state.' 15 | enum_values: 16 | - enabled 17 | - disabled 18 | example: enabled 19 | delete_value: disabled 20 | -------------------------------------------------------------------------------- /gen/definitions/feature_ssh.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | name: Feature SSH 3 | class_name: fmSsh 4 | dn: sys/fm/ssh 5 | ds_description: This data source can read the SSH feature configuration. 6 | res_description: This resource can manage the SSH feature configuration. 7 | doc_path: Feature%20Management/fm:Ssh/ 8 | doc_category: Feature 9 | attributes: 10 | - nxos_name: adminSt 11 | tf_name: admin_state 12 | type: String 13 | mandatory: true 14 | description: 'Administrative state.' 15 | enum_values: 16 | - enabled 17 | - disabled 18 | example: enabled 19 | delete_value: enabled 20 | -------------------------------------------------------------------------------- /gen/definitions/feature_vpc.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | name: Feature VPC 3 | class_name: fmVpc 4 | dn: sys/fm/vpc 5 | ds_description: This data source can read the VPC feature configuration. 6 | res_description: This resource can manage the VPC feature configuration. 7 | doc_path: Feature%20Management/fm:Vpc/ 8 | doc_category: Feature 9 | attributes: 10 | - nxos_name: adminSt 11 | tf_name: admin_state 12 | type: String 13 | mandatory: true 14 | description: 'Administrative state.' 15 | enum_values: 16 | - enabled 17 | - disabled 18 | example: enabled 19 | delete_value: disabled 20 | -------------------------------------------------------------------------------- /gen/definitions/ipv4_prefix_list_rule.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | name: IPv4 Prefix List Rule 3 | class_name: rtpfxRuleV4 4 | dn: sys/rpm/pfxlistv4-[%s] 5 | ds_description: This data source can read an IPv4 Prefix List configuration. 6 | res_description: This resource can manage an IPv4 Prefix List configuration. 7 | doc_path: Routing%20and%20Forwarding/rtpfx:RuleV4/ 8 | doc_category: Routing 9 | children: 10 | - IPv4 Prefix List Rule Entry 11 | attributes: 12 | - nxos_name: name 13 | tf_name: name 14 | type: String 15 | id: true 16 | description: 'IPv4 Prefix List Rule name.' 17 | example: 'RULE1' 18 | -------------------------------------------------------------------------------- /gen/definitions/feature_dhcp.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | name: Feature DHCP 3 | class_name: fmDhcp 4 | dn: sys/fm/dhcp 5 | ds_description: This data source can read the DHCP feature configuration. 6 | res_description: This resource can manage the DHCP feature configuration. 7 | doc_path: Feature%20Management/fm:Dhcp/ 8 | doc_category: Feature 9 | attributes: 10 | - nxos_name: adminSt 11 | tf_name: admin_state 12 | type: String 13 | mandatory: true 14 | description: 'Administrative state.' 15 | enum_values: 16 | - enabled 17 | - disabled 18 | example: enabled 19 | delete_value: disabled 20 | -------------------------------------------------------------------------------- /gen/definitions/feature_hsrp.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | name: Feature HSRP 3 | class_name: fmHsrp 4 | dn: sys/fm/hsrp 5 | ds_description: This data source can read the HSRP feature configuration. 6 | res_description: This resource can manage the HSRP feature configuration. 7 | doc_path: Feature%20Management/fm:Hsrp/ 8 | doc_category: Feature 9 | attributes: 10 | - nxos_name: adminSt 11 | tf_name: admin_state 12 | type: String 13 | mandatory: true 14 | description: 'Administrative state.' 15 | enum_values: 16 | - enabled 17 | - disabled 18 | example: enabled 19 | delete_value: disabled 20 | -------------------------------------------------------------------------------- /gen/definitions/feature_isis.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | name: Feature ISIS 3 | class_name: fmIsis 4 | dn: sys/fm/isis 5 | ds_description: This data source can read the ISIS feature configuration. 6 | res_description: This resource can manage the ISIS feature configuration. 7 | doc_path: Feature%20Management/fm:Isis/ 8 | doc_category: Feature 9 | attributes: 10 | - nxos_name: adminSt 11 | tf_name: admin_state 12 | type: String 13 | mandatory: true 14 | description: 'Administrative state.' 15 | enum_values: 16 | - enabled 17 | - disabled 18 | example: enabled 19 | delete_value: disabled 20 | -------------------------------------------------------------------------------- /gen/definitions/feature_lacp.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | name: Feature LACP 3 | class_name: fmLacp 4 | dn: sys/fm/lacp 5 | ds_description: This data source can read the LACP feature configuration. 6 | res_description: This resource can manage the LACP feature configuration. 7 | doc_path: Feature%20Management/fm:Lacp/ 8 | doc_category: Feature 9 | attributes: 10 | - nxos_name: adminSt 11 | tf_name: admin_state 12 | type: String 13 | mandatory: true 14 | description: 'Administrative state.' 15 | enum_values: 16 | - enabled 17 | - disabled 18 | example: enabled 19 | delete_value: disabled 20 | -------------------------------------------------------------------------------- /gen/definitions/feature_lldp.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | name: Feature LLDP 3 | class_name: fmLldp 4 | dn: sys/fm/lldp 5 | ds_description: This data source can read the LLDP feature configuration. 6 | res_description: This resource can manage the LLDP feature configuration. 7 | doc_path: Feature%20Management/fm:Lldp/ 8 | doc_category: Feature 9 | attributes: 10 | - nxos_name: adminSt 11 | tf_name: admin_state 12 | type: String 13 | mandatory: true 14 | description: 'Administrative state.' 15 | enum_values: 16 | - enabled 17 | - disabled 18 | example: enabled 19 | delete_value: disabled 20 | -------------------------------------------------------------------------------- /gen/definitions/feature_ospf.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | name: Feature OSPF 3 | class_name: fmOspf 4 | dn: sys/fm/ospf 5 | ds_description: This data source can read the OSPF feature configuration. 6 | res_description: This resource can manage the OSPF feature configuration. 7 | doc_path: Feature%20Management/fm:Ospf/ 8 | doc_category: Feature 9 | attributes: 10 | - nxos_name: adminSt 11 | tf_name: admin_state 12 | type: String 13 | mandatory: true 14 | description: 'Administrative state.' 15 | enum_values: 16 | - enabled 17 | - disabled 18 | example: enabled 19 | delete_value: disabled 20 | -------------------------------------------------------------------------------- /gen/definitions/feature_udld.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | name: Feature UDLD 3 | class_name: fmUdld 4 | dn: sys/fm/udld 5 | ds_description: This data source can read the UDLD feature configuration. 6 | res_description: This resource can manage the UDLD feature configuration. 7 | doc_path: Feature%20Management/fm:Udld/ 8 | doc_category: Feature 9 | attributes: 10 | - nxos_name: adminSt 11 | tf_name: admin_state 12 | type: String 13 | mandatory: true 14 | description: 'Administrative state.' 15 | enum_values: 16 | - enabled 17 | - disabled 18 | example: enabled 19 | delete_value: disabled 20 | -------------------------------------------------------------------------------- /gen/definitions/feature_pvlan.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | name: Feature PVLAN 3 | class_name: fmPvlan 4 | dn: sys/fm/pvlan 5 | ds_description: This data source can read the PVLAN feature configuration. 6 | res_description: This resource can manage the PVLAN feature configuration. 7 | doc_path: Feature%20Management/fm:Pvlan/ 8 | doc_category: Feature 9 | attributes: 10 | - nxos_name: adminSt 11 | tf_name: admin_state 12 | type: String 13 | mandatory: true 14 | description: 'Administrative state.' 15 | enum_values: 16 | - enabled 17 | - disabled 18 | example: enabled 19 | delete_value: disabled 20 | -------------------------------------------------------------------------------- /examples/resources/nxos_nve_interface/resource.tf: -------------------------------------------------------------------------------- 1 | resource "nxos_nve_interface" "example" { 2 | admin_state = "enabled" 3 | advertise_virtual_mac = true 4 | hold_down_time = 60 5 | host_reachability_protocol = "bgp" 6 | ingress_replication_protocol_bgp = true 7 | multicast_group_l2 = "0.0.0.0" 8 | multicast_group_l3 = "0.0.0.0" 9 | multisite_source_interface = "unspecified" 10 | source_interface = "lo0" 11 | suppress_arp = true 12 | suppress_mac_route = false 13 | } 14 | -------------------------------------------------------------------------------- /gen/definitions/feature_ospfv3.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | name: Feature OSPFv3 3 | class_name: fmOspfv3 4 | dn: sys/fm/ospfv3 5 | ds_description: This data source can read the OSPFv3 feature configuration. 6 | res_description: This resource can manage the OSPFv3 feature configuration. 7 | doc_path: Feature%20Management/fm:Ospfv3/ 8 | doc_category: Feature 9 | attributes: 10 | - nxos_name: adminSt 11 | tf_name: admin_state 12 | type: String 13 | mandatory: true 14 | description: 'Administrative state.' 15 | enum_values: 16 | - enabled 17 | - disabled 18 | example: enabled 19 | delete_value: disabled 20 | -------------------------------------------------------------------------------- /gen/definitions/feature_telnet.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | name: Feature Telnet 3 | class_name: fmTelnet 4 | dn: sys/fm/telnet 5 | ds_description: This data source can read the Telnet feature configuration. 6 | res_description: This resource can manage the Telnet feature configuration. 7 | doc_path: Feature%20Management/fm:Telnet/ 8 | doc_category: Feature 9 | attributes: 10 | - nxos_name: adminSt 11 | tf_name: admin_state 12 | type: String 13 | mandatory: true 14 | description: 'Administrative state.' 15 | enum_values: 16 | - enabled 17 | - disabled 18 | example: enabled 19 | delete_value: disabled 20 | -------------------------------------------------------------------------------- /gen/definitions/icmpv4.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | name: ICMPv4 3 | class_name: icmpv4Entity 4 | dn: sys/icmpv4 5 | ds_description: This data source can read the global ICMP configuration. 6 | res_description: This resource can manage the global ICMP configuration. 7 | doc_path: Routing%20and%20Forwarding/icmpv4:Entity/ 8 | doc_category: ICMP 9 | children: 10 | - ICMPv4 Instance 11 | attributes: 12 | - nxos_name: adminSt 13 | tf_name: admin_state 14 | type: String 15 | description: 'Administrative state.' 16 | enum_values: 17 | - enabled 18 | - disabled 19 | default_value: enabled 20 | example: enabled 21 | -------------------------------------------------------------------------------- /gen/definitions/feature_nv_overlay.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | name: Feature NV Overlay 3 | class_name: fmNvo 4 | dn: sys/fm/nvo 5 | ds_description: This data source can read the NV Overlay feature configuration. 6 | res_description: This resource can manage the NV Overlay feature configuration. 7 | doc_path: Feature%20Management/fm:Nvo/ 8 | doc_category: Feature 9 | attributes: 10 | - nxos_name: adminSt 11 | tf_name: admin_state 12 | type: String 13 | mandatory: true 14 | description: 'Administrative state.' 15 | enum_values: 16 | - enabled 17 | - disabled 18 | example: enabled 19 | delete_value: disabled 20 | -------------------------------------------------------------------------------- /gen/definitions/feature_tacacs.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | name: Feature TACACS 3 | class_name: fmTacacsplus 4 | dn: sys/fm/tacacsplus 5 | ds_description: This data source can read the TACACS+ feature configuration. 6 | res_description: This resource can manage the TACACS+ feature configuration. 7 | doc_path: Feature%20Management/fm:Tacacsplus/ 8 | doc_category: Feature 9 | attributes: 10 | - nxos_name: adminSt 11 | tf_name: admin_state 12 | type: String 13 | mandatory: true 14 | description: 'Administrative state.' 15 | enum_values: 16 | - enabled 17 | - disabled 18 | example: enabled 19 | delete_value: disabled 20 | -------------------------------------------------------------------------------- /gen/definitions/feature_ngmvpn.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | name: Feature ngMVPN 3 | class_name: fmNgmvpn 4 | dn: sys/fm/ngmvpn 5 | ds_description: This data source can read the Next Generation Multicast VPN Feature. 6 | res_description: This resource can manage the Next Generation Multicast VPN Feature. 7 | doc_path: Feature%20Management/fm:NgMvpn/ 8 | doc_category: Feature 9 | attributes: 10 | - nxos_name: adminSt 11 | tf_name: admin_state 12 | type: String 13 | mandatory: true 14 | description: "Administrative state." 15 | enum_values: 16 | - enabled 17 | - disabled 18 | example: enabled 19 | delete_value: disabled 20 | -------------------------------------------------------------------------------- /gen/definitions/feature_macsec.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | name: Feature MACsec 3 | class_name: fmMacsec 4 | dn: sys/fm/macsec 5 | test_tags: [MACSEC] 6 | ds_description: This data source can read the MACsec feature configuration. 7 | res_description: This resource can manage the MACsec feature configuration. 8 | doc_path: Feature%20Management/fm:Macsec/ 9 | doc_category: Feature 10 | attributes: 11 | - nxos_name: adminSt 12 | tf_name: admin_state 13 | type: String 14 | mandatory: true 15 | description: "Administrative state." 16 | enum_values: 17 | - enabled 18 | - disabled 19 | example: enabled 20 | delete_value: disabled 21 | -------------------------------------------------------------------------------- /gen/definitions/feature_vn_segment.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | name: Feature VN Segment 3 | class_name: fmVnSegment 4 | dn: sys/fm/vnsegment 5 | ds_description: This data source can read the VN Segment feature configuration. 6 | res_description: This resource can manage the VN Segment feature configuration. 7 | doc_path: Feature%20Management/fm:VnSegment/ 8 | doc_category: Feature 9 | attributes: 10 | - nxos_name: adminSt 11 | tf_name: admin_state 12 | type: String 13 | mandatory: true 14 | description: 'Administrative state.' 15 | enum_values: 16 | - enabled 17 | - disabled 18 | example: enabled 19 | delete_value: disabled 20 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | *.dll 2 | *.exe 3 | .DS_Store 4 | example.tf 5 | terraform.tfplan 6 | terraform.tfstate 7 | bin/ 8 | dist/ 9 | modules-dev/ 10 | /pkg/ 11 | website/.vagrant 12 | website/.bundle 13 | website/build 14 | website/node_modules 15 | .vagrant/ 16 | *.backup 17 | ./*.tfstate 18 | .terraform/ 19 | *.log 20 | *.bak 21 | *~ 22 | .*.swp 23 | .idea 24 | *.iml 25 | *.test 26 | *.iml 27 | 28 | website/vendor 29 | 30 | # Test exclusions 31 | !command/test-fixtures/**/*.tfstate 32 | !command/test-fixtures/**/.terraform/ 33 | 34 | # Keep windows files with windows line endings 35 | *.winfile eol=crlf 36 | 37 | # Compiled provider binary 38 | terraform-provider-nxos -------------------------------------------------------------------------------- /gen/definitions/feature_evpn.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | name: Feature EVPN 3 | class_name: fmEvpn 4 | dn: sys/fm/evpn 5 | ds_description: This data source can read the EVPN feature (aka `nv overlay evpn`) configuration. 6 | res_description: This resource can manage the EVPN feature (aka `nv overlay evpn`) configuration. 7 | doc_path: Feature%20Management/fm:Evpn/ 8 | doc_category: Feature 9 | attributes: 10 | - nxos_name: adminSt 11 | tf_name: admin_state 12 | type: String 13 | mandatory: true 14 | description: 'Administrative state.' 15 | enum_values: 16 | - enabled 17 | - disabled 18 | example: enabled 19 | delete_value: disabled 20 | -------------------------------------------------------------------------------- /gen/definitions/feature_netflow.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | name: Feature Netflow 3 | class_name: fmNetflow 4 | dn: sys/fm/netflow 5 | test_tags: [NETFLOW] 6 | ds_description: This data source can read the Netflow feature configuration. 7 | res_description: This resource can manage the Netflow feature configuration. 8 | doc_path: Feature%20Management/fm:Netflow/ 9 | doc_category: Feature 10 | attributes: 11 | - nxos_name: adminSt 12 | tf_name: admin_state 13 | type: String 14 | mandatory: true 15 | description: "Administrative state." 16 | enum_values: 17 | - enabled 18 | - disabled 19 | example: enabled 20 | delete_value: disabled 21 | -------------------------------------------------------------------------------- /gen/templates/resource.tf: -------------------------------------------------------------------------------- 1 | resource "nxos_{{snakeCase .Name}}" "example" { 2 | {{- range .Attributes}} 3 | {{.TfName}} = {{if eq .Type "String"}}"{{end}}{{.Example}}{{if eq .Type "String"}}"{{end}} 4 | {{- end}} 5 | {{- range .ChildClasses}} 6 | {{- if eq .Type "single"}} 7 | {{- range .Attributes}} 8 | {{.TfName}} = {{if eq .Type "String"}}"{{end}}{{.Example}}{{if eq .Type "String"}}"{{end}} 9 | {{- end}} 10 | {{- else if eq .Type "list"}} 11 | {{.TfName}} = [{ 12 | {{- range .Attributes}} 13 | {{.TfName}} = {{if eq .Type "String"}}"{{end}}{{.Example}}{{if eq .Type "String"}}"{{end}} 14 | {{- end}} 15 | }] 16 | {{- end}} 17 | {{- end}} 18 | } 19 | -------------------------------------------------------------------------------- /gen/definitions/feature_interface_vlan.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | name: Feature Interface VLAN 3 | class_name: fmInterfaceVlan 4 | dn: sys/fm/ifvlan 5 | ds_description: This data source can read the Interface VLAN feature configuration. 6 | res_description: This resource can manage the Interface VLAN feature configuration. 7 | doc_path: Feature%20Management/fm:InterfaceVlan/ 8 | doc_category: Feature 9 | attributes: 10 | - nxos_name: adminSt 11 | tf_name: admin_state 12 | type: String 13 | mandatory: true 14 | description: 'Administrative state.' 15 | enum_values: 16 | - enabled 17 | - disabled 18 | example: enabled 19 | delete_value: disabled 20 | -------------------------------------------------------------------------------- /gen/definitions/feature_ngoam.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | name: Feature NGOAM 3 | class_name: fmNgoam 4 | dn: sys/fm/ngoam 5 | ds_description: This data source can read the VXLAN operations, administration, and maintenance feature. 6 | res_description: This resource can manage the VXLAN operations, administration, and maintenance feature. 7 | doc_path: Feature%20Management/fm:Ngoam/ 8 | doc_category: Feature 9 | attributes: 10 | - nxos_name: adminSt 11 | tf_name: admin_state 12 | type: String 13 | mandatory: true 14 | description: 'Administrative state.' 15 | enum_values: 16 | - enabled 17 | - disabled 18 | example: enabled 19 | delete_value: disabled 20 | -------------------------------------------------------------------------------- /gen/definitions/default_qos_policy_interface_in.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | name: Default QOS Policy Interface In 3 | class_name: ipqosIf 4 | dn: sys/ipqos/dflt/policy/in/intf-[%s] 5 | ds_description: This data source can read the default QoS policy interface in configuration. 6 | res_description: This resource can manage the default QoS policy interface in configuration. 7 | doc_path: Qos/ipqos:If/ 8 | doc_category: QoS 9 | children: 10 | - Default QOS Policy Interface In Policy Map 11 | attributes: 12 | - nxos_name: name 13 | tf_name: interface_id 14 | type: String 15 | id: true 16 | description: 'Must match first field in the output of `show intf brief`. Example: `eth1/1`.' 17 | example: eth1/10 18 | -------------------------------------------------------------------------------- /examples/resources/nxos_vpc_keepalive/resource.tf: -------------------------------------------------------------------------------- 1 | resource "nxos_vpc_keepalive" "example" { 2 | destination_ip = "192.168.1.1" 3 | flush_timeout = 3 4 | interval = 1000 5 | precedence_type = 0 6 | precedence_value = 6 7 | source_ip = "192.168.1.2" 8 | timeout = 5 9 | type_of_service_byte = 0 10 | type_of_service_configuration_type = 0 11 | type_of_service_type = 0 12 | type_of_service_value = 0 13 | udp_port = 1234 14 | vrf = "management" 15 | } 16 | -------------------------------------------------------------------------------- /examples/resources/nxos_isis_vrf/resource.tf: -------------------------------------------------------------------------------- 1 | resource "nxos_isis_vrf" "example" { 2 | instance_name = "ISIS1" 3 | name = "default" 4 | admin_state = "enabled" 5 | authentication_check_l1 = false 6 | authentication_check_l2 = false 7 | authentication_key_l1 = "" 8 | authentication_key_l2 = "" 9 | authentication_type_l1 = "unknown" 10 | authentication_type_l2 = "unknown" 11 | bandwidth_reference = 400000 12 | banwidth_reference_unit = "mbps" 13 | is_type = "l2" 14 | metric_type = "wide" 15 | mtu = 2000 16 | net = "49.0001.0000.0000.3333.00" 17 | passive_default = "l12" 18 | } 19 | -------------------------------------------------------------------------------- /examples/README.md: -------------------------------------------------------------------------------- 1 | # Examples 2 | 3 | This directory contains examples that are mostly used for documentation, but can also be run/tested manually via the Terraform CLI. 4 | 5 | The document generation tool looks for files in the following locations by default. All other *.tf files besides the ones mentioned below are ignored by the documentation tool. This is useful for creating examples that can run and/or ar testable even if some parts are not relevant for the documentation. 6 | 7 | * **provider/provider.tf** example file for the provider index page 8 | * **data-sources/`full data source name`/data-source.tf** example file for the named data source page 9 | * **resources/`full resource name`/resource.tf** example file for the named data source page 10 | -------------------------------------------------------------------------------- /gen/definitions/pim.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | name: PIM 3 | class_name: pimEntity 4 | dn: sys/pim 5 | ds_description: This data source can read the global PIM configuration. 6 | res_description: This resource can manage the global PIM configuration. 7 | doc_path: Layer%203/pim:Entity/ 8 | doc_category: PIM 9 | children: 10 | - PIM Instance 11 | attributes: 12 | - nxos_name: adminSt 13 | tf_name: admin_state 14 | type: String 15 | description: 'Administrative state.' 16 | enum_values: 17 | - enabled 18 | - disabled 19 | default_value: enabled 20 | example: enabled 21 | test_prerequisites: 22 | - dn: sys/fm/pim 23 | class_name: fmPim 24 | no_delete: true 25 | attributes: 26 | - name: adminSt 27 | value: enabled 28 | -------------------------------------------------------------------------------- /gen/definitions/bgp.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | name: BGP 3 | class_name: bgpEntity 4 | dn: sys/bgp 5 | ds_description: This data source can read the global BGP configuration. 6 | res_description: This resource can manage the global BGP configuration. 7 | doc_path: Routing%20and%20Forwarding/bgp:Entity/ 8 | doc_category: BGP 9 | children: 10 | - BGP Instance 11 | attributes: 12 | - nxos_name: adminSt 13 | tf_name: admin_state 14 | type: String 15 | description: 'Administrative state.' 16 | enum_values: 17 | - enabled 18 | - disabled 19 | default_value: enabled 20 | example: enabled 21 | test_prerequisites: 22 | - dn: sys/fm/bgp 23 | class_name: fmBgp 24 | no_delete: true 25 | attributes: 26 | - name: adminSt 27 | value: enabled 28 | -------------------------------------------------------------------------------- /gen/definitions/vpc_instance.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | name: vPC Instance 3 | class_name: vpcInst 4 | dn: sys/vpc/inst 5 | ds_description: This data source can read the vPC instance configuration. 6 | res_description: This resource can manage the vPC instance configuration. 7 | doc_path: System/vpc:Inst/ 8 | doc_category: vPC 9 | children: 10 | - vPC Domain 11 | attributes: 12 | - nxos_name: adminSt 13 | tf_name: admin_state 14 | type: String 15 | description: "Administrative state." 16 | enum_values: 17 | - enabled 18 | - disabled 19 | default_value: enabled 20 | example: enabled 21 | test_prerequisites: 22 | - dn: sys/fm/vpc 23 | class_name: fmVpc 24 | no_delete: true 25 | attributes: 26 | - name: adminSt 27 | value: enabled 28 | -------------------------------------------------------------------------------- /gen/definitions/ospf.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | name: OSPF 3 | class_name: ospfEntity 4 | dn: sys/ospf 5 | ds_description: This data source can read the global OSPF configuration. 6 | res_description: This resource can manage the global OSPF configuration. 7 | doc_path: Routing%20and%20Forwarding/ospf:Entity/ 8 | doc_category: OSPF 9 | children: 10 | - OSPF Instance 11 | attributes: 12 | - nxos_name: adminSt 13 | tf_name: admin_state 14 | type: String 15 | description: 'Administrative state.' 16 | enum_values: 17 | - enabled 18 | - disabled 19 | default_value: enabled 20 | example: enabled 21 | test_prerequisites: 22 | - dn: sys/fm/ospf 23 | class_name: fmOspf 24 | no_delete: true 25 | attributes: 26 | - name: adminSt 27 | value: enabled 28 | -------------------------------------------------------------------------------- /gen/definitions/ospfv3.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | name: OSPFv3 3 | class_name: ospfv3Entity 4 | dn: sys/ospfv3 5 | ds_description: This data source can read the global OSPFv3 configuration. 6 | res_description: This resource can manage the global OSPFv3 configuration. 7 | doc_path: Routing%20and%20Forwarding/ospfv3:Entity/ 8 | doc_category: OSPFv3 9 | children: 10 | - OSPFv3 Instance 11 | attributes: 12 | - nxos_name: adminSt 13 | tf_name: admin_state 14 | type: String 15 | description: 'Administrative state' 16 | enum_values: 17 | - enabled 18 | - disabled 19 | default_value: enabled 20 | example: enabled 21 | test_prerequisites: 22 | - dn: sys/fm/ospfv3 23 | class_name: fmOspfv3 24 | no_delete: true 25 | attributes: 26 | - name: adminSt 27 | value: enabled 28 | -------------------------------------------------------------------------------- /gen/definitions/isis.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | name: ISIS 3 | class_name: isisEntity 4 | dn: sys/isis 5 | ds_description: This data source can read the global IS-IS configuration. 6 | res_description: This resource can manage the global IS-IS configuration. 7 | doc_path: Routing%20and%20Forwarding/isis:Entity/ 8 | doc_category: ISIS 9 | children: 10 | - ISIS Instance 11 | - ISIS Interface 12 | attributes: 13 | - nxos_name: adminSt 14 | tf_name: admin_state 15 | type: String 16 | description: 'Administrative state.' 17 | enum_values: 18 | - enabled 19 | - disabled 20 | default_value: enabled 21 | example: enabled 22 | test_prerequisites: 23 | - dn: sys/fm/isis 24 | class_name: fmIsis 25 | no_delete: true 26 | attributes: 27 | - name: adminSt 28 | value: enabled 29 | -------------------------------------------------------------------------------- /gen/definitions/vrf.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | name: VRF 3 | class_name: l3Inst 4 | dn: sys/inst-[%s] 5 | ds_description: This data source can read a VRF. 6 | res_description: This resource can manage a VRF. 7 | doc_path: Layer%203/l3:Inst/ 8 | doc_category: VRF 9 | children: 10 | - VRF Routing 11 | attributes: 12 | - nxos_name: name 13 | tf_name: name 14 | type: String 15 | id: true 16 | description: 'VRF name.' 17 | example: 'VRF1' 18 | - nxos_name: descr 19 | tf_name: description 20 | type: String 21 | description: 'VRF description.' 22 | example: My VRF1 Description 23 | - nxos_name: encap 24 | tf_name: encap 25 | type: String 26 | description: 'Encap for this Context, supported formats: `unknown`, `vlan-%d` or `vxlan-%d`.' 27 | default_value: unknown 28 | example: vxlan-103901 29 | -------------------------------------------------------------------------------- /gen/definitions/default_qos_class_map.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | name: Default QOS Class Map 3 | class_name: ipqosCMapInst 4 | dn: sys/ipqos/dflt/c/name-[%s] 5 | ds_description: This data source can read the default QoS class map configuration. 6 | res_description: This resource can manage the default QoS class map configuration. 7 | doc_path: Qos/ipqos:CMapInst/ 8 | doc_category: QoS 9 | children: 10 | - Default QOS Class Map DSCP 11 | attributes: 12 | - nxos_name: name 13 | tf_name: name 14 | type: String 15 | id: true 16 | description: 'Class map name.' 17 | example: Voice 18 | - nxos_name: matchType 19 | tf_name: match_type 20 | type: String 21 | description: 'Match type.' 22 | enum_values: 23 | - match-any 24 | - match-all 25 | - match-first 26 | default_value: match-all 27 | example: match-any 28 | -------------------------------------------------------------------------------- /gen/definitions/ethernet.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | name: Ethernet 3 | class_name: ethpmInst 4 | dn: sys/ethpm/inst 5 | ds_description: This data source can read global ethernet settings. 6 | res_description: This resource can manage global ethernet settings. 7 | doc_path: Interfaces/ethpm:Inst/ 8 | doc_category: Switching 9 | attributes: 10 | - nxos_name: systemJumboMtu 11 | tf_name: mtu 12 | type: Int64 13 | description: 'System jumbo MTU.' 14 | min_int: 576 15 | max_int: 9216 16 | default_value: 9216 17 | example: 9216 18 | delete_value: 9216 19 | - nxos_name: systemDefaultAdminSt 20 | tf_name: default_admin_status 21 | type: String 22 | description: "Default admin status" 23 | enum_values: 24 | - up 25 | - down 26 | default_value: up 27 | example: up 28 | delete_value: "DME_UNSET_PROPERTY_MARKER" 29 | -------------------------------------------------------------------------------- /gen/definitions/default_qos_policy_map.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | name: Default QOS Policy Map 3 | class_name: ipqosPMapInst 4 | dn: sys/ipqos/dflt/p/name-[%s] 5 | ds_description: This data source can read the default QoS policy map configuration. 6 | res_description: This resource can manage the default QoS policy map configuration. 7 | doc_path: Qos/ipqos:PMapInst/ 8 | doc_category: QoS 9 | children: 10 | - Default QOS Policy Map Match Class Map 11 | attributes: 12 | - nxos_name: name 13 | tf_name: name 14 | type: String 15 | id: true 16 | description: 'Policy map name.' 17 | example: PM1 18 | - nxos_name: matchType 19 | tf_name: match_type 20 | type: String 21 | description: 'Match type.' 22 | enum_values: 23 | - match-any 24 | - match-all 25 | - match-first 26 | default_value: match-all 27 | example: match-any 28 | -------------------------------------------------------------------------------- /gen/definitions/queuing_qos_policy_map.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | name: Queuing QOS Policy Map 3 | class_name: ipqosPMapInst 4 | dn: sys/ipqos/queuing/p/name-[%s] 5 | ds_description: This data source can read the queuing QoS policy map configuration. 6 | res_description: This resource can manage the queuing QoS policy map configuration. 7 | doc_path: Qos/ipqos:PMapInst/ 8 | doc_category: QoS 9 | children: 10 | - Queuing QOS Policy Map Match Class Map 11 | attributes: 12 | - nxos_name: name 13 | tf_name: name 14 | type: String 15 | id: true 16 | description: 'Policy map name.' 17 | example: PM1 18 | - nxos_name: matchType 19 | tf_name: match_type 20 | type: String 21 | description: 'Match type.' 22 | enum_values: 23 | - match-any 24 | - match-all 25 | - match-first 26 | default_value: match-all 27 | example: match-any 28 | -------------------------------------------------------------------------------- /gen/definitions/icmpv4_instance.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | name: ICMPv4 Instance 3 | class_name: icmpv4Inst 4 | dn: sys/icmpv4/inst 5 | ds_description: This data source can read the global ICMP Instance configuration. 6 | res_description: This resource can manage the global ICMP Instance configuration. 7 | doc_path: Routing%20and%20Forwarding/icmpv4:Instance/ 8 | doc_category: ICMP 9 | parents: 10 | - ICMPv4 11 | children: 12 | - ICMPv4 Domain 13 | attributes: 14 | - nxos_name: adminSt 15 | tf_name: admin_state 16 | type: String 17 | description: 'Administrative state.' 18 | enum_values: 19 | - enabled 20 | - disabled 21 | default_value: enabled 22 | example: enabled 23 | test_prerequisites: 24 | - dn: sys/icmpv4 25 | class_name: icmpv4Entity 26 | no_delete: true 27 | attributes: 28 | - name: adminSt 29 | value: enabled 30 | -------------------------------------------------------------------------------- /docs/resources/save_config.md: -------------------------------------------------------------------------------- 1 | --- 2 | # generated by https://github.com/hashicorp/terraform-plugin-docs 3 | page_title: "nxos_save_config Resource - terraform-provider-nxos" 4 | subcategory: "General" 5 | description: |- 6 | This resources is used to save the config which is the equivalent of doing a copy running-config startup-config in the device CLI. 7 | --- 8 | 9 | # nxos_save_config (Resource) 10 | 11 | This resources is used to save the config which is the equivalent of doing a `copy running-config startup-config` in the device CLI. 12 | 13 | ## Example Usage 14 | 15 | ```terraform 16 | resource "nxos_save_config" "example" { 17 | } 18 | ``` 19 | 20 | 21 | ## Schema 22 | 23 | ### Optional 24 | 25 | - `device` (String) A device name from the provider configuration. 26 | - `save` (Boolean) This attribute is only used internally. 27 | -------------------------------------------------------------------------------- /gen/definitions/pim_instance.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | name: PIM Instance 3 | class_name: pimInst 4 | dn: sys/pim/inst 5 | ds_description: This data source can read the PIM instance configuration. 6 | res_description: This resource can manage the PIM instance configuration. 7 | doc_path: Layer%203/pim:Inst/ 8 | doc_category: PIM 9 | parents: 10 | - PIM 11 | children: 12 | - PIM VRF 13 | attributes: 14 | - nxos_name: adminSt 15 | tf_name: admin_state 16 | type: String 17 | description: 'Administrative state.' 18 | enum_values: 19 | - enabled 20 | - disabled 21 | default_value: enabled 22 | example: enabled 23 | test_prerequisites: 24 | - dn: sys/fm/pim 25 | class_name: fmPim 26 | no_delete: true 27 | attributes: 28 | - name: adminSt 29 | value: enabled 30 | - dn: sys/pim 31 | class_name: pimEntity 32 | dependencies: [0] 33 | -------------------------------------------------------------------------------- /gen/definitions/dhcp_relay_interface.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | name: DHCP Relay Interface 3 | class_name: dhcpRelayIf 4 | dn: sys/dhcp/inst/relayif-[%s] 5 | ds_description: This data source can read a DHCP relay interface. 6 | res_description: This resource can manage a DHCP relay interface. 7 | doc_path: DHCP/dhcp:RelayIf/ 8 | doc_category: DHCP 9 | children: 10 | - DHCP Relay Address 11 | attributes: 12 | - nxos_name: id 13 | tf_name: interface_id 14 | type: String 15 | id: true 16 | description: 'Must match first field in the output of `show intf brief`. Example: `eth1/1`.' 17 | example: eth1/10 18 | test_prerequisites: 19 | - dn: sys/fm/dhcp 20 | class_name: fmDhcp 21 | no_delete: true 22 | attributes: 23 | - name: adminSt 24 | value: enabled 25 | - dn: sys/intf/phys-[eth1/10] 26 | class_name: l1PhysIf 27 | attributes: 28 | - name: layer 29 | value: Layer3 30 | -------------------------------------------------------------------------------- /examples/resources/nxos_port_channel_interface/resource.tf: -------------------------------------------------------------------------------- 1 | resource "nxos_port_channel_interface" "example" { 2 | interface_id = "po1" 3 | port_channel_mode = "active" 4 | minimum_links = 2 5 | maximum_links = 10 6 | suspend_individual = "disable" 7 | access_vlan = "vlan-1" 8 | admin_state = "up" 9 | auto_negotiation = "on" 10 | bandwidth = 0 11 | delay = 1 12 | description = "My Description" 13 | duplex = "auto" 14 | layer = "Layer2" 15 | link_logging = "enable" 16 | medium = "broadcast" 17 | mode = "access" 18 | mtu = 1500 19 | native_vlan = "unknown" 20 | speed = "auto" 21 | trunk_vlans = "1-4094" 22 | user_configured_flags = "admin_layer,admin_mtu,admin_state" 23 | } 24 | -------------------------------------------------------------------------------- /gen/definitions/bridge_domain.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | name: Bridge Domain 3 | class_name: l2BD 4 | dn: sys/bd/bd-[%s] 5 | ds_description: This data source can read a bridge domain. 6 | res_description: This resource can manage a bridge domain. 7 | doc_path: Layer%202/l2:BD/ 8 | doc_category: Switching 9 | attributes: 10 | - nxos_name: fabEncap 11 | tf_name: fabric_encap 12 | type: String 13 | id: true 14 | description: 'Fabric encapsulation. Possible values are `unknown`, `vlan-XX` or `vxlan-XX`.' 15 | default_value: unknown 16 | example: vlan-10 17 | - nxos_name: accEncap 18 | tf_name: access_encap 19 | type: String 20 | description: 'Access encapsulation. Possible values are `unknown`, `vlan-XX` or `vxlan-XX`.' 21 | default_value: unknown 22 | example: unknown 23 | - nxos_name: name 24 | tf_name: name 25 | type: String 26 | description: 'Bridge domain name.' 27 | example: VLAN10 28 | -------------------------------------------------------------------------------- /gen/definitions/feature_hmm.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | name: Feature HMM 3 | class_name: fmHmm 4 | dn: sys/fm/hmm 5 | ds_description: This data source can read the HMM feature (aka `feature fabric forwarding`) configuration. 6 | res_description: This resource can manage the HMM feature (aka `feature fabric forwarding`) configuration. 7 | doc_path: Feature%20Management/fm:Hmm/ 8 | doc_category: Feature 9 | test_tags: [FEATURE_HMM] 10 | attributes: 11 | - nxos_name: adminSt 12 | tf_name: admin_state 13 | type: String 14 | mandatory: true 15 | description: 'Administrative state.' 16 | enum_values: 17 | - enabled 18 | - disabled 19 | example: enabled 20 | delete_value: disabled 21 | test_prerequisites: 22 | # fix test issue where feature is not immediately enabled 23 | - dn: sys/fm/hmm 24 | class_name: fmHmm 25 | no_delete: true 26 | attributes: 27 | - name: adminSt 28 | value: enabled -------------------------------------------------------------------------------- /gen/definitions/ipv4_access_list_policy_egress_interface.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | name: IPv4 Access List Policy Egress Interface 3 | class_name: aclIf 4 | dn: sys/acl/ipv4/policy/egress/intf-[%s] 5 | ds_description: This data source can read an IPv4 Access List Policy Egress Interface. 6 | res_description: This resource can manage an IPv4 Access List Policy Egress Interface. 7 | doc_path: Security%20and%20Policing/acl:If/ 8 | doc_category: IPv4 9 | attributes: 10 | - nxos_name: name 11 | tf_name: interface_id 12 | type: String 13 | id: true 14 | description: "Must match first field in the output of `show intf brief`. Example: `eth1/1`." 15 | example: eth1/10 16 | child_classes: 17 | - class_name: aclInst 18 | rn: acl 19 | type: single 20 | attributes: 21 | - nxos_name: name 22 | tf_name: access_list_name 23 | type: String 24 | description: "Access list name." 25 | example: ACL1 26 | -------------------------------------------------------------------------------- /gen/definitions/ipv4_access_list_policy_ingress_interface.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | name: IPv4 Access List Policy Ingress Interface 3 | class_name: aclIf 4 | dn: sys/acl/ipv4/policy/ingress/intf-[%s] 5 | ds_description: This data source can read an IPv4 Access List Policy Ingress Interface. 6 | res_description: This resource can manage an IPv4 Access List Policy Ingress Interface. 7 | doc_path: Security%20and%20Policing/acl:If/ 8 | doc_category: IPv4 9 | attributes: 10 | - nxos_name: name 11 | tf_name: interface_id 12 | type: String 13 | id: true 14 | description: "Must match first field in the output of `show intf brief`. Example: `eth1/1`." 15 | example: eth1/10 16 | child_classes: 17 | - class_name: aclInst 18 | rn: acl 19 | type: single 20 | attributes: 21 | - nxos_name: name 22 | tf_name: access_list_name 23 | type: String 24 | description: "Access list name." 25 | example: ACL1 26 | -------------------------------------------------------------------------------- /gen/templates/supported_objects.md.tmpl: -------------------------------------------------------------------------------- 1 | --- 2 | subcategory: "Guides" 3 | page_title: "Supported Objects" 4 | description: |- 5 | Supported Objects. 6 | --- 7 | 8 | # Supported Objects 9 | 10 | For the following DME objects a corresponding Terraform resource and data source exists. All other objects can be managed with the `nxos_rest` [resource](https://registry.terraform.io/providers/CiscoDevNet/nxos/latest/docs/resources/rest). 11 | 12 | | DME object | Terraform Resource | Terraform Data Source | 13 | |------------|--------------------|-----------------------| 14 | {{- range .}} 15 | | [{{.ClassName}}](https://pubhub.devnetcloud.com/media/dme-docs-10-2-2/docs/{{.DocPath}}) | [nxos_{{snakeCase .Name}}](https://registry.terraform.io/providers/CiscoDevNet/nxos/latest/docs/resources/{{snakeCase .Name}}) | [nxos_{{snakeCase .Name}}](https://registry.terraform.io/providers/CiscoDevNet/nxos/latest/docs/data-sources/{{snakeCase .Name}}) | 16 | {{- end}} 17 | -------------------------------------------------------------------------------- /gen/definitions/evpn.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | name: EVPN 3 | class_name: rtctrlL2Evpn 4 | dn: sys/evpn 5 | ds_description: This data source can read a global EVPN configuration. 6 | res_description: This resource can manage a global EVPN configuration. 7 | doc_path: Routing%20and%20Forwarding/rtctrl:L2Evpn/ 8 | doc_category: EVPN 9 | children: 10 | - EVPN VNI 11 | attributes: 12 | - nxos_name: adminSt 13 | tf_name: admin_state 14 | type: String 15 | description: 'Administrative state.' 16 | enum_values: 17 | - enabled 18 | - disabled 19 | default_value: enabled 20 | example: enabled 21 | test_prerequisites: 22 | - dn: sys/fm/nvo 23 | class_name: fmNvo 24 | no_delete: true 25 | attributes: 26 | - name: adminSt 27 | value: enabled 28 | - dn: sys/fm/evpn 29 | class_name: fmEvpn 30 | no_delete: true 31 | attributes: 32 | - name: adminSt 33 | value: enabled 34 | dependencies: [0] 35 | -------------------------------------------------------------------------------- /gen/definitions/icmpv4_vrf.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | name: ICMPv4 VRF 3 | class_name: icmpv4Dom 4 | dn: sys/icmpv4/inst/dom-[%s] 5 | ds_description: This data source can read the global ICMP Domain configuration. 6 | res_description: This resource can manage the global ICMP Domain configuration. 7 | doc_path: Routing%20and%20Forwarding/icmpv4:Dom/ 8 | doc_category: ICMP 9 | parents: 10 | - ICMPv4 Instance 11 | children: 12 | - ICMPv4 Interface 13 | attributes: 14 | - nxos_name: name 15 | tf_name: vrf_name 16 | type: String 17 | description: 'VRF name' 18 | example: VRF1 19 | id: true 20 | test_prerequisites: 21 | - dn: sys/icmpv4 22 | class_name: icmpv4Entity 23 | no_delete: true 24 | attributes: 25 | - name: adminSt 26 | value: enabled 27 | - dn: sys/icmpv4/inst 28 | class_name: icmpv4Inst 29 | no_delete: true 30 | attributes: 31 | - name: adminSt 32 | value: enabled 33 | dependencies: [0] 34 | -------------------------------------------------------------------------------- /gen/definitions/hmm.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | name: HMM 3 | class_name: hmmEntity 4 | dn: sys/hmm 5 | ds_description: This data source can read the Host Mobility Manager (HMM) Entity configuration. 6 | res_description: This resource can manage the Host Mobility Manager (HMM) Entity configuration. 7 | doc_path: Host%20Mobility/hmm:Entity/ 8 | doc_category: HMM 9 | children: 10 | - HMM Instance 11 | attributes: 12 | - nxos_name: adminSt 13 | tf_name: admin_state 14 | type: String 15 | description: "Administrative state." 16 | enum_values: 17 | - enabled 18 | - disabled 19 | default_value: enabled 20 | example: enabled 21 | test_prerequisites: 22 | - dn: sys/fm/hmm 23 | class_name: fmHmm 24 | no_delete: true 25 | attributes: 26 | - name: adminSt 27 | value: enabled 28 | - dn: sys/fm/evpn 29 | class_name: fmEvpn 30 | no_delete: true 31 | attributes: 32 | - name: adminSt 33 | value: enabled 34 | -------------------------------------------------------------------------------- /gen/definitions/loopback_interface.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | name: Loopback Interface 3 | class_name: l3LbRtdIf 4 | dn: sys/intf/lb-[%s] 5 | ds_description: This data source can read a loopback interface. 6 | res_description: This resource can manage a loopback interface. 7 | doc_path: Layer%203/l3:LbRtdIf/ 8 | doc_category: Interface 9 | children: 10 | - Loopback Interface VRF 11 | attributes: 12 | - nxos_name: id 13 | tf_name: interface_id 14 | type: String 15 | id: true 16 | description: 'Must match first field in the output of `show intf brief`. Example: `lo123`.' 17 | example: lo123 18 | - nxos_name: adminSt 19 | tf_name: admin_state 20 | type: String 21 | description: 'Administrative state.' 22 | enum_values: 23 | - up 24 | - down 25 | default_value: up 26 | example: down 27 | - nxos_name: descr 28 | tf_name: description 29 | type: String 30 | description: 'Interface description.' 31 | example: My Description 32 | -------------------------------------------------------------------------------- /gen/definitions/default_qos_class_map_dscp.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | name: Default QOS Class Map DSCP 3 | class_name: ipqosDscp 4 | dn: sys/ipqos/dflt/c/name-[%s]/dscp-[%v] 5 | ds_description: This data source can read the default QoS class map DSCP configuration. 6 | res_description: This resource can manage the default QoS class map DSCP configuration. 7 | doc_path: Qos/ipqos:Dscp/ 8 | doc_category: QoS 9 | parents: 10 | - Default QOS Class Map 11 | attributes: 12 | - nxos_name: class_map_name 13 | tf_name: class_map_name 14 | type: String 15 | id: true 16 | reference_only: true 17 | description: 'Class map name.' 18 | example: Voice 19 | - nxos_name: val 20 | tf_name: value 21 | type: String 22 | id: true 23 | description: 'DSCP value.' 24 | default_value: '0' 25 | example: ef 26 | test_prerequisites: 27 | - dn: sys/ipqos/dflt/c/name-[Voice] 28 | class_name: ipqosCMapInst 29 | attributes: 30 | - name: name 31 | value: Voice 32 | -------------------------------------------------------------------------------- /gen/definitions/nve_vni_container.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | name: NVE VNI Container 3 | class_name: nvoNws 4 | dn: sys/eps/epId-[1]/nws 5 | ds_description: This data source can read the configuration of Container object for Virtual Network IDs (VNIs). 6 | res_description: This resource can manage the configuration of Container object for Virtual Network IDs (VNIs). 7 | doc_path: Network%20Virtualization/nvo:Nws/ 8 | doc_category: NVE 9 | parents: 10 | - NVE Interface 11 | children: 12 | - NVE VNI 13 | test_prerequisites: 14 | - dn: sys/fm/nvo 15 | class_name: fmNvo 16 | no_delete: true 17 | attributes: 18 | - name: adminSt 19 | value: enabled 20 | - dn: sys/fm/evpn 21 | class_name: fmEvpn 22 | no_delete: true 23 | attributes: 24 | - name: adminSt 25 | value: enabled 26 | dependencies: [0] 27 | - dn: sys/eps/epId-[1] 28 | class_name: nvoEp 29 | attributes: 30 | - name: adminSt 31 | value: enabled 32 | dependencies: [1] 33 | -------------------------------------------------------------------------------- /docs/data-sources/pim.md: -------------------------------------------------------------------------------- 1 | --- 2 | # generated by https://github.com/hashicorp/terraform-plugin-docs 3 | page_title: "nxos_pim Data Source - terraform-provider-nxos" 4 | subcategory: "PIM" 5 | description: |- 6 | This data source can read the global PIM configuration. 7 | API Documentation: pimEntity https://pubhub.devnetcloud.com/media/dme-docs-10-2-2/docs/Layer%203/pim:Entity/ 8 | --- 9 | 10 | # nxos_pim (Data Source) 11 | 12 | This data source can read the global PIM configuration. 13 | 14 | - API Documentation: [pimEntity](https://pubhub.devnetcloud.com/media/dme-docs-10-2-2/docs/Layer%203/pim:Entity/) 15 | 16 | ## Example Usage 17 | 18 | ```terraform 19 | data "nxos_pim" "example" { 20 | } 21 | ``` 22 | 23 | 24 | ## Schema 25 | 26 | ### Optional 27 | 28 | - `device` (String) A device name from the provider configuration. 29 | 30 | ### Read-Only 31 | 32 | - `admin_state` (String) Administrative state. 33 | - `id` (String) The distinguished name of the object. 34 | -------------------------------------------------------------------------------- /docs/data-sources/system.md: -------------------------------------------------------------------------------- 1 | --- 2 | # generated by https://github.com/hashicorp/terraform-plugin-docs 3 | page_title: "nxos_system Data Source - terraform-provider-nxos" 4 | subcategory: "System" 5 | description: |- 6 | This data source can read the system configuration. 7 | API Documentation: topSystem https://pubhub.devnetcloud.com/media/dme-docs-10-2-2/docs/System/top:System/ 8 | --- 9 | 10 | # nxos_system (Data Source) 11 | 12 | This data source can read the system configuration. 13 | 14 | - API Documentation: [topSystem](https://pubhub.devnetcloud.com/media/dme-docs-10-2-2/docs/System/top:System/) 15 | 16 | ## Example Usage 17 | 18 | ```terraform 19 | data "nxos_system" "example" { 20 | } 21 | ``` 22 | 23 | 24 | ## Schema 25 | 26 | ### Optional 27 | 28 | - `device` (String) A device name from the provider configuration. 29 | 30 | ### Read-Only 31 | 32 | - `id` (String) The distinguished name of the object. 33 | - `name` (String) The system name (hostname). 34 | -------------------------------------------------------------------------------- /tools/tools.go: -------------------------------------------------------------------------------- 1 | // Copyright © 2023 Cisco Systems, Inc. and its affiliates. 2 | // All rights reserved. 3 | // 4 | // Licensed under the Mozilla Public License, Version 2.0 (the "License"); 5 | // you may not use this file except in compliance with the License. 6 | // You may obtain a copy of the License at 7 | // 8 | // https://mozilla.org/MPL/2.0/ 9 | // 10 | // Unless required by applicable law or agreed to in writing, software 11 | // distributed under the License is distributed on an "AS IS" BASIS, 12 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | // See the License for the specific language governing permissions and 14 | // limitations under the License. 15 | // 16 | // SPDX-License-Identifier: MPL-2.0 17 | 18 | //go:build tools 19 | 20 | package tools 21 | 22 | import ( 23 | // Documentation generation 24 | _ "github.com/hashicorp/terraform-plugin-docs/cmd/tfplugindocs" 25 | // Code generation 26 | _ "golang.org/x/tools/cmd/goimports" 27 | _ "gopkg.in/yaml.v3" 28 | ) 29 | -------------------------------------------------------------------------------- /examples/resources/nxos_physical_interface/resource.tf: -------------------------------------------------------------------------------- 1 | resource "nxos_physical_interface" "example" { 2 | interface_id = "eth1/10" 3 | fec_mode = "auto" 4 | access_vlan = "unknown" 5 | admin_state = "up" 6 | auto_negotiation = "on" 7 | bandwidth = 1000 8 | delay = 10 9 | description = "My Description" 10 | duplex = "auto" 11 | layer = "Layer3" 12 | link_logging = "enable" 13 | link_debounce_down = 200 14 | link_debounce_up = 0 15 | medium = "broadcast" 16 | mode = "access" 17 | mtu = 1500 18 | native_vlan = "unknown" 19 | speed = "auto" 20 | speed_group = "auto" 21 | trunk_vlans = "1-4094" 22 | uni_directional_ethernet = "disable" 23 | user_configured_flags = "admin_layer,admin_mtu,admin_state" 24 | } 25 | -------------------------------------------------------------------------------- /docs/data-sources/vpc_instance.md: -------------------------------------------------------------------------------- 1 | --- 2 | # generated by https://github.com/hashicorp/terraform-plugin-docs 3 | page_title: "nxos_vpc_instance Data Source - terraform-provider-nxos" 4 | subcategory: "vPC" 5 | description: |- 6 | This data source can read the vPC instance configuration. 7 | API Documentation: vpcInst https://pubhub.devnetcloud.com/media/dme-docs-10-2-2/docs/System/vpc:Inst/ 8 | --- 9 | 10 | # nxos_vpc_instance (Data Source) 11 | 12 | This data source can read the vPC instance configuration. 13 | 14 | - API Documentation: [vpcInst](https://pubhub.devnetcloud.com/media/dme-docs-10-2-2/docs/System/vpc:Inst/) 15 | 16 | ## Example Usage 17 | 18 | ```terraform 19 | data "nxos_vpc_instance" "example" { 20 | } 21 | ``` 22 | 23 | 24 | ## Schema 25 | 26 | ### Optional 27 | 28 | - `device` (String) A device name from the provider configuration. 29 | 30 | ### Read-Only 31 | 32 | - `admin_state` (String) Administrative state. 33 | - `id` (String) The distinguished name of the object. 34 | -------------------------------------------------------------------------------- /docs/data-sources/pim_instance.md: -------------------------------------------------------------------------------- 1 | --- 2 | # generated by https://github.com/hashicorp/terraform-plugin-docs 3 | page_title: "nxos_pim_instance Data Source - terraform-provider-nxos" 4 | subcategory: "PIM" 5 | description: |- 6 | This data source can read the PIM instance configuration. 7 | API Documentation: pimInst https://pubhub.devnetcloud.com/media/dme-docs-10-2-2/docs/Layer%203/pim:Inst/ 8 | --- 9 | 10 | # nxos_pim_instance (Data Source) 11 | 12 | This data source can read the PIM instance configuration. 13 | 14 | - API Documentation: [pimInst](https://pubhub.devnetcloud.com/media/dme-docs-10-2-2/docs/Layer%203/pim:Inst/) 15 | 16 | ## Example Usage 17 | 18 | ```terraform 19 | data "nxos_pim_instance" "example" { 20 | } 21 | ``` 22 | 23 | 24 | ## Schema 25 | 26 | ### Optional 27 | 28 | - `device` (String) A device name from the provider configuration. 29 | 30 | ### Read-Only 31 | 32 | - `admin_state` (String) Administrative state. 33 | - `id` (String) The distinguished name of the object. 34 | --------------------------------------------------------------------------------