Skip to content

New validation for CSCwr51759 Cleanup vnsRsCIfAtt usage in service#394

Open
Harinadh-Saladi wants to merge 2 commits into
datacenter:v4.2.0-devfrom
Harinadh-Saladi:feature/vns-rscifatt-cleanup-check
Open

New validation for CSCwr51759 Cleanup vnsRsCIfAtt usage in service#394
Harinadh-Saladi wants to merge 2 commits into
datacenter:v4.2.0-devfrom
Harinadh-Saladi:feature/vns-rscifatt-cleanup-check

Conversation

@Harinadh-Saladi
Copy link
Copy Markdown
Contributor

Added a new pre-upgrade validation to detect missing vnsRsCIfAttN relations for existing vnsRsCIfAtt entries under the same cluster interface and target concrete interface.

Enclosed comprehensive logs for the same.

CSCwr51759_Test_Logs.txt

CSCwr51759_Pytest_Logs.txt

Full_script_run_logs.txt

relation_dn = relation_attributes["dn"].strip()
if not relation_dn:
continue
target_dn = get_target_dn(relation_attributes)
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

dn is the full path of the relationship object, and tDn is the path of the target interface object it is attached to.

No need of check for tDN.

continue
relation_attributes = vnsRsCIfAttN["vnsRsCIfAttN"]["attributes"]
if "dn" not in relation_attributes:
continue
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

when mo is not configured, vnsRsCIfAttNs will be empty.. above if conditions not needed.



@check_wrapper(check_title="Cleanup vnsRsCIfAtt usage in services")
def vns_rscifatt_cleanup_check(tversion, **kwargs):
Copy link
Copy Markdown

@muthu-ku muthu-ku Jun 2, 2026

Choose a reason for hiding this comment

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

change the proper function name and title

Comment thread docs/docs/validations.md

Impact:

If any `vnsRsCIfAtt` relation exists without a matching `vnsRsCIfAttN` for the same concrete interface target (`tDn`), the upgrade is outage-risky and should be treated as affected.
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

please update the document as per impact and requirement.

continue
missing_dn = old_relation_dn_by_key[relation_key]
tenant_name, device_name, logical_interface, concrete_interface = parse_relation_context(missing_dn)
data.append([tenant_name, device_name, logical_interface, concrete_interface, missing_dn])
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

where is that fault case handled for post upgrade case..

fault : F1690
uni/tn-CSCwj49418/lDevVip-test/lIf-intf-cons/vnsConfIssue-lif-invalid-CIf
Configuration is invalid due to LIf has an invalid CIf

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