Skip to content

Commit

Permalink
fix: resource_fabric_routing_protocol.go (#699)
Browse files Browse the repository at this point in the history
fix: resource_fabric_routing_protocol.go added more compute fields to
the file resource_fabric_routing_protocol.go since Routing Protocol is
updating when no Changes are made for Routing Protocol Modules while
updating Connection_Name and Bandwidth.
  • Loading branch information
jkallem-equinix authored Jun 20, 2024
2 parents f58e80f + a98b480 commit 2a55edd
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions equinix/resource_fabric_routing_protocol.go
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ func createFabricRoutingProtocolResourceSchema() map[string]*schema.Schema {
"type": {
Type: schema.TypeString,
Optional: true,
Computed: true,
ValidateFunc: validation.StringInSlice([]string{"BGP", "DIRECT"}, true),
Description: "Defines the routing protocol type like BGP or DIRECT",
},
Expand All @@ -159,11 +160,13 @@ func createFabricRoutingProtocolResourceSchema() map[string]*schema.Schema {
"name": {
Type: schema.TypeString,
Optional: true,
Computed: true,
Description: "Routing Protocol name. An alpha-numeric 24 characters string which can include only hyphens and underscores",
},
"description": {
Type: schema.TypeString,
Optional: true,
Computed: true,
Description: "Customer-provided Fabric Routing Protocol description",
},
"state": {
Expand All @@ -190,6 +193,7 @@ func createFabricRoutingProtocolResourceSchema() map[string]*schema.Schema {
"direct_ipv4": {
Type: schema.TypeSet,
Optional: true,
Computed: true,
Description: "Routing Protocol Direct IPv4",
Elem: &schema.Resource{
Schema: createDirectConnectionIpv4Sch(),
Expand All @@ -198,6 +202,7 @@ func createFabricRoutingProtocolResourceSchema() map[string]*schema.Schema {
"direct_ipv6": {
Type: schema.TypeSet,
Optional: true,
Computed: true,
Description: "Routing Protocol Direct IPv6",
Elem: &schema.Resource{
Schema: createDirectConnectionIpv6Sch(),
Expand All @@ -206,6 +211,7 @@ func createFabricRoutingProtocolResourceSchema() map[string]*schema.Schema {
"bgp_ipv4": {
Type: schema.TypeSet,
Optional: true,
Computed: true,
Description: "Routing Protocol BGP IPv4",
Elem: &schema.Resource{
Schema: createBgpConnectionIpv4Sch(),
Expand All @@ -214,6 +220,7 @@ func createFabricRoutingProtocolResourceSchema() map[string]*schema.Schema {
"bgp_ipv6": {
Type: schema.TypeSet,
Optional: true,
Computed: true,
Description: "Routing Protocol BGP IPv6",
Elem: &schema.Resource{
Schema: createBgpConnectionIpv6Sch(),
Expand All @@ -222,6 +229,7 @@ func createFabricRoutingProtocolResourceSchema() map[string]*schema.Schema {
"customer_asn": {
Type: schema.TypeInt,
Optional: true,
Computed: true,
Description: "Customer-provided ASN",
},
"equinix_asn": {
Expand All @@ -232,11 +240,13 @@ func createFabricRoutingProtocolResourceSchema() map[string]*schema.Schema {
"bgp_auth_key": {
Type: schema.TypeString,
Optional: true,
Computed: true,
Description: "BGP authorization key",
},
"bfd": {
Type: schema.TypeSet,
Optional: true,
Computed: true,
Description: "Bidirectional Forwarding Detection",
Elem: &schema.Resource{
Schema: createRoutingProtocolBfdSch(),
Expand Down

0 comments on commit 2a55edd

Please sign in to comment.