cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
897
Views
0
Helpful
0
Replies

To add the interface with json script is not working

arun ahuja
Level 1
Level 1

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":[]
}}

0 Replies 0

Save 25% on Day-2 Operations Add-On License