09-16-2024 09:49 AM
I had this service working on 5.x version of NSO and I was able to list instances and create via the API, something has changed with 6.1
Here is the API call:
Solved! Go to Solution.
09-16-2024 11:01 AM
Ok... figured it out:
curl --location 'http://192.168.2.100:8080/restconf/data/' \
--header 'application: vnd.yang-data+json' \
--header 'Authorization: Basic YWRtaW46YWRtaW4=' \
--header 'Content-Type: application/yang-data+json' \
--data '{
"l2vpn:l2vpn": [
{
"name": "APIdeployed",
"pw-id": 118,
"ios_device": "ios0",
"ios_port": "0/9",
"xr_device": "xr0",
"xr_port": "0/0/0/9",
"ios_xconnect_ip": "10.0.0.10",
"ios_xconnect_encap": "mpls",
"ios_description": "test",
"xr_group": "acme",
"xr_p2p": "acme",
"xr_xconnect_ip": "10.0.0.11",
"xr_description": "test"
}
]
}
'
Evidently the module name goes in the data payload now...
09-16-2024 11:01 AM
Ok... figured it out:
curl --location 'http://192.168.2.100:8080/restconf/data/' \
--header 'application: vnd.yang-data+json' \
--header 'Authorization: Basic YWRtaW46YWRtaW4=' \
--header 'Content-Type: application/yang-data+json' \
--data '{
"l2vpn:l2vpn": [
{
"name": "APIdeployed",
"pw-id": 118,
"ios_device": "ios0",
"ios_port": "0/9",
"xr_device": "xr0",
"xr_port": "0/0/0/9",
"ios_xconnect_ip": "10.0.0.10",
"ios_xconnect_encap": "mpls",
"ios_description": "test",
"xr_group": "acme",
"xr_p2p": "acme",
"xr_xconnect_ip": "10.0.0.11",
"xr_description": "test"
}
]
}
'
Evidently the module name goes in the data payload now...
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