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

To add the interface with json script is not working

arun ahuja
Beginner
Beginner

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
Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Recognize Your Peers