01-29-2025 12:36 PM
Hello,
I've been creating sites, buildings, global and sub IP pools with the Catalyst Center (DNAC) API without much issue. I've ran into an odd error trying to create a fabric site. I'm using the same python code to post as all the other API calls I'm doing. Let me know if this is a possible bug or something I'm missing. Thanks!
Python Code:
fabric_site_hierarchy = "Global/US-East/WV-Test"
fabric_site_url = api_url + "/dna/intent/api/v1/business/sda/fabric-site"
fabric_site_data = {
"siteNameHierarchy": fabric_site_hierarchy
}
#API Call to create new fabric site
post_create_fabric_site = session.post(fabric_site_url, verify=False,
data=json.dumps(fabric_site_data),
headers={"Content-Type": "application/json",'__runsync':"false",'__timeout':"30",'__persistbapioutput':"true", "X-Auth-Token": token},
)
print(post_create_fabric_site.json())
Error Message:
{'executionId': '2f3b03ef-d5eb-4af1-9a59-82ffd6734824', 'statusCode': 500, 'errorResponse': {'bapiErrorResponse': {'bapiKey': 'd2b4-d9d0-4a4b-884c', 'bapiName': 'Add Site in SDA Fabric', 'bapiErrorCode': '', 'bapiErrorMessage': ''}, 'componentErrorResponse': [{'compId': 'uuidbb2f45a3', 'compName': 'implement final logic ', 'compErrorCode': '500', 'compErrorMessage': '2f3b03ef-d5eb-4af1-9a59-82ffd6734824 | fd809d6a-afd3-483e-b4fb-e0a65a55a821 | d2b4-d9d0-4a4b-884c : ScriptProcessor Execution Failed with error: begin 0, end -1, length 28', 'componentType': 'JAVASCRIPT_TRANSFORM'}]}}
Solved! Go to Solution.
01-30-2025 01:55 AM
@michael-w sounds like you found bug! I dont see anything here on the resolves or open which meets you exact issue https://www.cisco.com/c/en/us/td/docs/cloud-systems-management/network-automation-and-management/catalyst-center/2-3-7/release_notes/b_cisco_catalyst_center_237_release_notes.html#open-bugs
01-29-2025 01:16 PM
As an added note. I was testing this on the devnet site Catalyst Center with ISE which is v2.3.7.4. I just tested the code on the public Catalyst Center which is v2.3.5.5 and it works on the older version.
01-30-2025 01:55 AM
@michael-w sounds like you found bug! I dont see anything here on the resolves or open which meets you exact issue https://www.cisco.com/c/en/us/td/docs/cloud-systems-management/network-automation-and-management/catalyst-center/2-3-7/release_notes/b_cisco_catalyst_center_237_release_notes.html#open-bugs
01-30-2025 04:35 AM
Thank you @bigevilbeard I haven't reported one for Catalyst Center before, is the best way a TAC?
01-30-2025 05:08 AM
Yes i would think so or they can confirm this is one, it could also be a change in the API, payload etc, between versions, i would still do this for them to confirm here, as you noted you tried this on two version and had different results.
02-05-2025 01:21 PM - edited 02-05-2025 01:22 PM
As an update, I think this may just be related to 2.3.7.4. I found other API issues within this devnet deployment for anything SDA related. When I tested a GET to our production Catalyst Center which is 2.3.7.7 it returned data when the devnet 2.3.7.4 returned stating the particular API call didn't exist even though it is documented online under the 2.3.7 API reference. I posted to the devnet community seeing if there's a way to manually upgrade the devnet deployment since it is your own private enclave once it's spun up.
Catalyst Center 2.3.7.4 with ISE API issues in devnet - Cisco Community
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide