{"id":20324571,"url":"https://github.com/netascode/terraform-nxos-bgp","last_synced_at":"2025-09-03T08:06:21.354Z","repository":{"id":38204485,"uuid":"482021783","full_name":"netascode/terraform-nxos-bgp","owner":"netascode","description":"Terraform Cisco NX-OS BGP Module","archived":false,"fork":false,"pushed_at":"2025-08-12T17:15:25.000Z","size":49,"stargazers_count":1,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-08-18T11:58:57.501Z","etag":null,"topics":["cisco","nx-os","nxos","terraform","terraform-module"],"latest_commit_sha":null,"homepage":"https://registry.terraform.io/modules/netascode/bgp/nxos","language":"HCL","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/netascode.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2022-04-15T16:39:00.000Z","updated_at":"2025-08-05T12:33:25.000Z","dependencies_parsed_at":"2024-01-12T16:18:39.924Z","dependency_job_id":"52f43b9d-3134-4bf7-86aa-2d05723aee42","html_url":"https://github.com/netascode/terraform-nxos-bgp","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/netascode/terraform-nxos-bgp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/netascode%2Fterraform-nxos-bgp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/netascode%2Fterraform-nxos-bgp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/netascode%2Fterraform-nxos-bgp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/netascode%2Fterraform-nxos-bgp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/netascode","download_url":"https://codeload.github.com/netascode/terraform-nxos-bgp/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/netascode%2Fterraform-nxos-bgp/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273410256,"owners_count":25100455,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-03T02:00:09.631Z","response_time":76,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cisco","nx-os","nxos","terraform","terraform-module"],"created_at":"2024-11-14T19:34:32.434Z","updated_at":"2025-09-03T08:06:21.269Z","avatar_url":"https://github.com/netascode.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003c!-- BEGIN_TF_DOCS --\u003e\n[![Tests](https://github.com/netascode/terraform-nxos-bgp/actions/workflows/test.yml/badge.svg)](https://github.com/netascode/terraform-nxos-bgp/actions/workflows/test.yml)\n\n# Terraform NX-OS BGP Module\n\nManages NX-OS BGP\n\nModel Documentation: [Link](https://developer.cisco.com/docs/cisco-nexus-3000-and-9000-series-nx-api-rest-sdk-user-guide-and-api-reference-release-9-3x/#!configuring-bgp)\n\n## Examples\n\n```hcl\nmodule \"nxos_bgp\" {\n  source  = \"netascode/bgp/nxos\"\n  version = \"\u003e= 0.2.0\"\n\n  asn                     = \"65001\"\n  enhanced_error_handling = false\n  template_peers = [\n    {\n      name             = \"SPINE-PEERS\"\n      asn              = \"65001\"\n      description      = \"Spine Peers template\"\n      peer_type        = \"fabric-external\"\n      source_interface = \"lo0\"\n      address_families = [\n        {\n          address_family          = \"ipv4_unicast\"\n          send_community_standard = true\n          route_reflector_client  = true\n        },\n        {\n          address_family          = \"l2vpn_evpn\"\n          send_community_standard = true\n          send_community_extended = true\n          route_reflector_client  = true\n        }\n      ]\n    }\n  ]\n  vrfs = [\n    {\n      vrf                             = \"default\"\n      router_id                       = \"1.2.3.4\"\n      log_neighbor_changes            = true\n      graceful_restart_stalepath_time = 123\n      graceful_restart_restart_time   = 123\n      neighbors = [\n        {\n          ip               = \"5.6.7.8\"\n          description      = \"My description\"\n          peer_type        = \"fabric-external\"\n          asn              = \"65002\"\n          source_interface = \"lo2\"\n          address_families = [\n            {\n              address_family          = \"ipv4_unicast\"\n              send_community_standard = true\n              send_community_extended = true\n              route_reflector_client  = false\n            },\n            {\n              address_family          = \"l2vpn_evpn\"\n              send_community_standard = true\n              route_reflector_client  = false\n            }\n          ]\n        },\n        {\n          ip           = \"9.10.11.12\"\n          description  = \"My description 2\"\n          inherit_peer = \"SPINE-PEERS\"\n        }\n      ]\n    },\n    {\n      vrf                             = \"VRF1\"\n      router_id                       = \"10.20.30.40\"\n      log_neighbor_changes            = true\n      graceful_restart_stalepath_time = 1230\n      graceful_restart_restart_time   = 1230\n      neighbors = [\n        {\n          ip          = \"50.60.70.80\"\n          description = \"My description\"\n        },\n        {\n          ip          = \"90.100.110.120\"\n          description = \"My description 2\"\n        }\n      ]\n    }\n  ]\n}\n```\n\n## Requirements\n\n| Name | Version |\n|------|---------|\n| \u003ca name=\"requirement_terraform\"\u003e\u003c/a\u003e [terraform](#requirement\\_terraform) | \u003e= 1.3.0 |\n| \u003ca name=\"requirement_nxos\"\u003e\u003c/a\u003e [nxos](#requirement\\_nxos) | \u003e= 0.5.0 |\n\n## Providers\n\n| Name | Version |\n|------|---------|\n| \u003ca name=\"provider_nxos\"\u003e\u003c/a\u003e [nxos](#provider\\_nxos) | \u003e= 0.5.0 |\n\n## Inputs\n\n| Name | Description | Type | Default | Required |\n|------|-------------|------|---------|:--------:|\n| \u003ca name=\"input_device\"\u003e\u003c/a\u003e [device](#input\\_device) | A device name from the provider configuration. | `string` | `null` | no |\n| \u003ca name=\"input_asn\"\u003e\u003c/a\u003e [asn](#input\\_asn) | BGP Autonomous system number. | `string` | n/a | yes |\n| \u003ca name=\"input_enhanced_error_handling\"\u003e\u003c/a\u003e [enhanced\\_error\\_handling](#input\\_enhanced\\_error\\_handling) | BGP Enhanced error handling. | `bool` | `true` | no |\n| \u003ca name=\"input_template_peers\"\u003e\u003c/a\u003e [template\\_peers](#input\\_template\\_peers) | BGP Template Peers list.\u003cbr\u003e  Choices `peer_type`: `fabric-internal`, `fabric-external`, `fabric-border-leaf`. Default value `peer_type`: `fabric-internal`.\u003cbr\u003e  List `address_families`:\u003cbr\u003e  Choices `address_family`: `ipv4_unicast`, `ipv6_unicast`. | \u003cpre\u003elist(object({\u003cbr\u003e    name             = string\u003cbr\u003e    asn              = optional(string)\u003cbr\u003e    description      = optional(string, \"\")\u003cbr\u003e    peer_type        = optional(string, \"fabric-internal\")\u003cbr\u003e    source_interface = optional(string, \"unspecified\")\u003cbr\u003e    address_families = optional(list(object({\u003cbr\u003e      address_family          = string\u003cbr\u003e      send_community_standard = optional(bool, false)\u003cbr\u003e      send_community_extended = optional(bool, false)\u003cbr\u003e      route_reflector_client  = optional(bool, false)\u003cbr\u003e    })), [])\u003cbr\u003e  }))\u003c/pre\u003e | `[]` | no |\n| \u003ca name=\"input_vrfs\"\u003e\u003c/a\u003e [vrfs](#input\\_vrfs) | BGP VRF list.\u003cbr\u003e  List `neighbors`:\u003cbr\u003e  Allowed formats `ip`: `192.168.1.1` or `192.168.1.0/24`.\u003cbr\u003e  Choices `peer_type`: `fabric-internal`, `fabric-external`, `fabric-border-leaf`. Default value `peer_type`: `fabric-internal`.\u003cbr\u003e  List `address_families`:\u003cbr\u003e  Choices `address_family`: `ipv4_unicast`, `ipv6_unicast`, `l2vpn_evpn`. | \u003cpre\u003elist(object({\u003cbr\u003e    vrf                             = string\u003cbr\u003e    router_id                       = optional(string)\u003cbr\u003e    log_neighbor_changes            = optional(bool, false)\u003cbr\u003e    graceful_restart_stalepath_time = optional(number, 300)\u003cbr\u003e    graceful_restart_restart_time   = optional(number, 120)\u003cbr\u003e    neighbors = optional(list(object({\u003cbr\u003e      ip               = string\u003cbr\u003e      asn              = optional(string)\u003cbr\u003e      inherit_peer     = optional(string, \"\")\u003cbr\u003e      description      = optional(string, \"\")\u003cbr\u003e      peer_type        = optional(string, \"fabric-internal\")\u003cbr\u003e      source_interface = optional(string, \"unspecified\")\u003cbr\u003e      address_families = optional(list(object({\u003cbr\u003e        address_family          = string\u003cbr\u003e        send_community_standard = optional(bool, false)\u003cbr\u003e        send_community_extended = optional(bool, false)\u003cbr\u003e        route_reflector_client  = optional(bool, false)\u003cbr\u003e      })))\u003cbr\u003e    })))\u003cbr\u003e  }))\u003c/pre\u003e | `[]` | no |\n\n## Outputs\n\n| Name | Description |\n|------|-------------|\n| \u003ca name=\"output_dn\"\u003e\u003c/a\u003e [dn](#output\\_dn) | Distinguished name of the object. |\n\n## Resources\n\n| Name | Type |\n|------|------|\n| [nxos_bgp.bgpEntity](https://registry.terraform.io/providers/CiscoDevNet/nxos/latest/docs/resources/bgp) | resource |\n| [nxos_bgp_graceful_restart.bgpGr](https://registry.terraform.io/providers/CiscoDevNet/nxos/latest/docs/resources/bgp_graceful_restart) | resource |\n| [nxos_bgp_instance.bgpInst](https://registry.terraform.io/providers/CiscoDevNet/nxos/latest/docs/resources/bgp_instance) | resource |\n| [nxos_bgp_peer.bgpPeer](https://registry.terraform.io/providers/CiscoDevNet/nxos/latest/docs/resources/bgp_peer) | resource |\n| [nxos_bgp_peer_address_family.bgpPeerAf](https://registry.terraform.io/providers/CiscoDevNet/nxos/latest/docs/resources/bgp_peer_address_family) | resource |\n| [nxos_bgp_peer_template.bgpPeerCont](https://registry.terraform.io/providers/CiscoDevNet/nxos/latest/docs/resources/bgp_peer_template) | resource |\n| [nxos_bgp_peer_template_address_family.bgpPeerAf](https://registry.terraform.io/providers/CiscoDevNet/nxos/latest/docs/resources/bgp_peer_template_address_family) | resource |\n| [nxos_bgp_route_control.bgpRtCtrl](https://registry.terraform.io/providers/CiscoDevNet/nxos/latest/docs/resources/bgp_route_control) | resource |\n| [nxos_bgp_vrf.bgpDom](https://registry.terraform.io/providers/CiscoDevNet/nxos/latest/docs/resources/bgp_vrf) | resource |\n\u003c!-- END_TF_DOCS --\u003e","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnetascode%2Fterraform-nxos-bgp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnetascode%2Fterraform-nxos-bgp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnetascode%2Fterraform-nxos-bgp/lists"}