Skip to content

Add nd_multi_cluster_connectivity_aci resource - #38

Draft
sajagana wants to merge 1 commit into
CiscoDevNet:developfrom
sajagana:multi_cluster_connectivity_aci
Draft

Add nd_multi_cluster_connectivity_aci resource#38
sajagana wants to merge 1 commit into
CiscoDevNet:developfrom
sajagana:multi_cluster_connectivity_aci

Conversation

@sajagana

Copy link
Copy Markdown
Collaborator

No description provided.

@sajagana
sajagana force-pushed the multi_cluster_connectivity_aci branch 2 times, most recently from fa77514 to eeb91a8 Compare June 10, 2026 13:14
@sajagana
sajagana force-pushed the multi_cluster_connectivity_aci branch from eeb91a8 to 4435d83 Compare June 11, 2026 15:29
TelemetryCollectionType string `json:"telemetryCollectionType,omitempty"`
TelemetryStreamingProtocol string `json:"telemetryStreamingProtocol,omitempty"`
Location *NDFCSpecLocationValue `json:"location,omitempty"`
Management *NDFCAciManageManagementValue `json:"management,omitempty"`

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Many params in this are already part of fabric_common.

Are there any challenges is using the common fabric pattern for this resource?

@sajagana sajagana self-assigned this Jul 1, 2026
return
}

res, err := clusterAPI.Post(clusterPayload, &ndapi.APIOptions{DisablePayloadLog: true})

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

how do we ensure the fabric is in the correct state?

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we expose connection status?

}

// RscCreateMultiClusterConnectivityAci creates a multi cluster connectivity aci resource.
func (r *multiClusterConnectivityAciResource) rscCreateMultiClusterConnectivityAci(ctx context.Context, dg *diag.Diagnostics, input *MultiClusterConnectivityAciModel) {

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

how do we handle re-registration flow? is this only ttriggered on certain attribute changes, what happens when it needs to be triggered without a change because connection went to down state?

Comment on lines +190 to +191
// TODO: The values for `username`, `password`, and `login_domain` attributes
// will not be imported when the resource imports an already registered APIC cluster.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we document this behaviour? should we re-apply when we want the credentials included into state?

return false
}

if clusterAPI.ClusterName == "" {

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why would this ever be empty and not match the fabricName?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants