Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NewValidation: Check if ports from switches are in "Disabled" status. #132

Open
oriverav opened this issue May 29, 2024 · 1 comment
Open
Assignees

Comments

@oriverav
Copy link

(use upvote 👍 for attentions)

Validation Type

[ ] - Fault

[X ] - Config
Port listed in "Disabled Interfaces and Decommissioned Switches"

[ ] - Bug

[ ] - Other

What needs to be validated

When a port is Disabled in the GUI for a switch in the fabric, we list it in the "Disabled Interfaces and Decommissioned Switches" section. The Life-Cycle of the port is showed as "blacklist".

We need to identify if there are any ports the were Disabled in the GUI before an upgrade. This can be done by checking "fabricRsOosPath" class and see if there are any objects in there.

Why it needs to be validated

If it is not validated, and a port is there but was brought UP using a CLI command in the leaf/spine, it can lead to service disruption as APIC will advice the device to bring down the port once the upgrade is done.

@monrog2
Copy link
Collaborator

monrog2 commented Sep 24, 2024

test_data:

icurl 'http://127.0.0.1:7777/api//class/fabricRsOosPath.json'
{
	"totalCount": "2",
	"imdata": [{
		"fabricRsOosPath": {
			"attributes": {
				"annotation": "",
				"childAction": "",
				"dn": "uni/fabric/outofsvc/rsoosPath-[topology/pod-1/paths-105/pathep-[eth1/20/1]]",
				"extMngdBy": "",
				"forceResolve": "yes",
				"lc": "blacklist",
				"lcOwn": "local",
				"modTs": "2023-07-18T15:29:52.351-04:00",
				"monPolDn": "uni/fabric/monfab-default",
				"rType": "mo",
				"state": "unformed",
				"stateQual": "none",
				"status": "",
				"tCl": "fabricPathEp",
				"tDn": "topology/pod-1/paths-105/pathep-[eth1/20/1]",
				"tType": "mo",
				"uid": "16221",
				"userdom": ":all:"
			}
		}
	}, {
		"fabricRsOosPath": {
			"attributes": {
				"annotation": "",
				"childAction": "",
				"dn": "uni/fabric/outofsvc/rsoosPath-[topology/pod-1/paths-105/pathep-[eth1/20/2]]",
				"extMngdBy": "",
				"forceResolve": "yes",
				"lc": "blacklist",
				"lcOwn": "local",
				"modTs": "2023-07-18T15:29:57.059-04:00",
				"monPolDn": "uni/fabric/monfab-default",
				"rType": "mo",
				"state": "unformed",
				"stateQual": "none",
				"status": "",
				"tCl": "fabricPathEp",
				"tDn": "topology/pod-1/paths-105/pathep-[eth1/20/2]",
				"tType": "mo",
				"uid": "16221",
				"userdom": ":all:"
			}
		}
	}]
}

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

No branches or pull requests

3 participants