01-06-2023 10:18 PM - edited 01-06-2023 10:49 PM
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.
08-07-2024 04:35 PM - edited 08-07-2024 04:36 PM
01-09-2023 03:38 AM
please guide me