cancel
Showing results for 
Search instead for 
Did you mean: 

EXOS configuration by RESTCONF API

EXOS configuration by RESTCONF API

allenwildon
New Contributor

Hello to all the experts
I want to configure the EXOS switches that I have in the network by RESTCPNF API, but I have several problems. Thank you for your help.

1- There is no SNMP configuration in DATA MODELS YANG, how can SNMP be configured by RESTCONF with YANG data modelS?
2- There is no complete document about the RestCONF configuration for EXOS, and there is a document on the site that is not complete.
3- How to configure several interfaces or several VLANs with DATA MODEL YANG and by JSON? What I tried is that it is possible to configure one VLAN or one interface at the same time. Is this correct?
3- You can get DNS configuration or SYSLOG or several other modules, but I get an error during configuration.
For example, I use the following command to configure several VLANs
{
"openconfig-vlan:vlan":[
{
"config": {
"name": "vlan_10",
"status": "ACTIVE",
"tpid": "oc-vlan-types:TPID_0x8100",
"vlan-id": 10
},
"config": {
"name": "vlan_20",
"status": "ACTIVE",
"tpid": "oc-vlan-types:TPID_0x8100",
"vlan-id": 20
},
"config": {
"name": "vlan_30",
"status": "ACTIVE",
"tpid": "oc-vlan-types:TPID_0x8100",
"vlan-id": 30
}
}
]
}
But when sending to the switch by POST, only VLAN_30 is created.
URL: https://X.X.X.X/rest/restconf/data/openconfig-vlan:vlans

Also, I would be grateful if you could send SYSLOG and Tacacs configuration code samples and several other items.
If you can give a guide or provide a complete document for study. I will be very grateful to you.
I send JSON commands to the switch by POSTMAN.

2 REPLIES 2

dotelevenem
New Contributor II

Have you checked this document out? I'm not an API expert, but I think this might be a good explainer.

allenwildon
New Contributor

please guide me

GTM-P2G8KFN