04-28-2019 08:20 AM
Hi Team,
I am trying to add the interface through JSON script and i stuck one point. Please find the below information what i did.
Case 1: Script is working fine, I used the manual variable and its working fine..
URI: https://X.X.X.X/api/node/mo/uni/tn-Script_test/ap-Script_test/epg-Script_test.json
{
"fvRsPathAtt":
{
"attributes":{
"
encap":"vlan-333",
"tDn":"topology/pod-1/paths-101/pathep-[eth1/33]",
"status":"created"},
"children":[]
}}
Case2: Script is working fine.
URI : https://X.X.X.X/api/node/mo/uni/tn-{{Tenant}}/ap-{{AEP}}/epg-{{EPG}}.json
{
"fvRsPathAtt":
{
"attributes":{
"
encap":"vlan-333",
"tDn":"topology/pod-1/paths-101/pathep-[eth1/33]",
"status":"created"},
"children":[]
}}
Thrid case: Script is not working and I am usning all varibale this time.
URI : https://X.X.X.X/api/node/mo/uni/tn-{{Tenant}}/ap-{{AEP}}/epg-{{EPG}}.json
{"fvRsPathAtt":
{
"attributes":{
"encap":"vlan-{{vlan}}",
"tDn":"topology/pod-1/paths-{{node}}/pathep-[{{interface}}]",
"status":"created"},
"children":[]
}}