Skip to content

Standardise character limits for Calico cluster l3out name and system-id - #856

Draft
pkharat wants to merge 1 commit into
cko-mvp-1from
calico-cluster-l3out-systemid-rename
Draft

Standardise character limits for Calico cluster l3out name and system-id#856
pkharat wants to merge 1 commit into
cko-mvp-1from
calico-cluster-l3out-systemid-rename

Conversation

@pkharat

@pkharat pkharat commented Mar 10, 2023

Copy link
Copy Markdown
Contributor

No description provided.

l3out_name = "calico-l3out-fsvi-vlan-%s" % vlan_id
config["aci_config"]["cluster_l3out"]["name"] = l3out_name
l3out_name = config["aci_config"]["cluster_l3out"]["name"]
config["aci_config"]["cluster_l3out"]["name"] = l3out_name + "-" + get_md5_hash(l3out_name)[:6]

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@snaiksat confirm plz :
whether cluster_l3out name is passed through input file or not, always append a hash to it.

return str(n)


def get_md5_hash(str):

@pkharat pkharat Mar 10, 2023

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@snaiksat This PR is for Issue - https://github.com/noironetworks/support/issues/1952 (Referring issue in the comment for context purpose only)

Is the change required only for cko-mvp-1 branch (as per the issue) ?
Or its needed for master and kmr2 branches as well ?

@pkharat
pkharat requested a review from snaiksat March 10, 2023 10:33
@snaiksat

Copy link
Copy Markdown
Contributor

@pkharat thanks for working on this - (1) I dont think this change is ready, until then please make this a "draft" PR, (2) please follow commit title and commit message conventions, (3) please squash commits when ready.

@pkharat
pkharat marked this pull request as draft March 11, 2023 04:08
@pkharat

pkharat commented Mar 11, 2023

Copy link
Copy Markdown
Contributor Author

@pkharat thanks for working on this - (1) I dont think this change is ready, until then please make this a "draft" PR, (2) please follow commit title and commit message conventions, (3) please squash commits when ready.

@snaiksat yes its in progress and marked it the same now. Can you please confirm couple of things asked above ?

@pkharat
pkharat requested a review from PariyaAshok March 13, 2023 05:17
@pkharat
pkharat force-pushed the calico-cluster-l3out-systemid-rename branch from b4207e0 to aae2039 Compare April 10, 2023 10:47
Generate a md5 hash from cluster_l3out and system_id names and append
first 6 chars of this hash in the cluster_l3out and system_id name respectively
@pkharat
pkharat force-pushed the calico-cluster-l3out-systemid-rename branch from f97ce38 to c1e7a55 Compare April 10, 2023 14:38
@pkharat
pkharat marked this pull request as ready for review April 10, 2023 14:40
@pkharat
pkharat marked this pull request as draft November 22, 2023 06:25
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.

2 participants