Skip to content

Custom Spoke Adv CIDR option is completely missing from Edge but is present for Spoke, also it is present in the UI for Edge #2171

@mihaime

Description

@mihaime

In the Spoke resource we have:

"included_advertised_spoke_routes": {
	Type:     schema.TypeString,
	Computed: true,
	Description: "A list of comma separated CIDRs to be advertised to on-prem as 'Included CIDR List'. " +
	"When configured, it will replace all advertised routes from this VPC.",
	},

In the Edge we have nothing similar but the UI has this possibility.

func marshalEdgeSpokeInput(d *schema.ResourceData) *goaviatrix.EdgeSpoke {
>-edgeSpoke := &goaviatrix.EdgeSpoke{
>->-GwName:                             d.Get("gw_name").(string),
>->-SiteId:                             d.Get("site_id").(string),
>->-ManagementEgressIpPrefix:           strings.Join(getStringSet(d, "management_egress_ip_prefix_list"), ","),
>->-EnableManagementOverPrivateNetwork: d.Get("enable_management_over_private_network").(bool),
>->-DnsServerIp:                        d.Get("dns_server_ip").(string),
>->-SecondaryDnsServerIp:               d.Get("secondary_dns_server_ip").(string),
>->-ZtpFileType:                        d.Get("ztp_file_type").(string),
>->-ZtpFileDownloadPath:                d.Get("ztp_file_download_path").(string),
>->-EnableEdgeActiveStandby:            d.Get("enable_edge_active_standby").(bool),
>->-EnableEdgeActiveStandbyPreemptive:  d.Get("enable_edge_active_standby_preemptive").(bool),
>->-LocalAsNumber:                      d.Get("local_as_number").(string),
>->-PrependAsPath:                      getStringList(d, "prepend_as_path"),
>->-EnableLearnedCidrsApproval:         d.Get("enable_learned_cidrs_approval").(bool),
>->-ApprovedLearnedCidrs:               getStringSet(d, "approved_learned_cidrs"),
>->-SpokeBgpManualAdvertisedCidrs:      getStringSet(d, "spoke_bgp_manual_advertise_cidrs"),
>->-EnablePreserveAsPath:               d.Get("enable_preserve_as_path").(bool),
>->-BgpPollingTime:                     d.Get("bgp_polling_time").(int),
>->-BgpBfdPollingTime:                  d.Get("bgp_neighbor_status_polling_time").(int),
>->-BgpHoldTime:                        d.Get("bgp_hold_time").(int),
>->-EnableEdgeTransitiveRouting:        d.Get("enable_edge_transitive_routing").(bool),
>->-EnableJumboFrame:                   d.Get("enable_jumbo_frame").(bool),
>->-Latitude:                           d.Get("latitude").(string),
>->-Longitude:                          d.Get("longitude").(string),
>->-RxQueueSize:                        d.Get("rx_queue_size").(string),
>-}

Also, documentation for above on Spoke is not fully accurate as this is not for OnPrem advertisement only (it's for propagating into the cloud network as well).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions