Extreme API with Python

Table Of Contents
Extreme API with Python
Page | 55
Part no.9036931-00 Rev AA February 2021
4 VOSS API
VOSS offers a RESTCONF API using the Openconfig model. VOSS powers the VSP product family.
Note: RESTCONF was added to VOSS starting with version 8.0.
4.1 VOSS RESTCONF Documentation
The Configuring User Interfaces and Operating Systems for VOSS document is provided with any new
release of the OS. This document uses VOSS 8.1.5 for the examples.
The link to this document for VOSS 8.1.5 is:
HTTPS://documentation.extremenetworks.com/VOSS/SW/81x/ConfigUIOSVOSS_8.1.5_CG.pdf
On-switch documentation is also available when the feature is enabled on the switch.
4.2 Enable RESTCONF
The RESCONF server is not enabled by default with VOSS. You must configure it on the switch.
voss01:1>enable
voss01:1#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
voss01:1(config)#application
voss01:1(config-app)#restconf enable
When this is done, you can access on-switch documentation for RESTCONF here:
http://<Switch_IP>:8080/apps/restconfdoc/
As with EXOS, both HTTPS and HTTP protocols are supported for RESTCONF on VOSS. To use HTTPS, you
must enable TLS and install a certificate, using the following procedure:
Switch:1>enable
Switch:1#configure terminal
Enter configuration commands, one per line. End with CTRL/Z.
Switch:1(config)#application
Switch:1(config-app)#no restconf enable
Switch:1(config-app)#restconf install-cert-file /intflash/.cert/restconf-
cert.pem
Switch:1(config-app)#restconf tls
Switch:1(config-app)#restconf enable
4.3 Use RESTCONF with Python
Extreme Networks provides a Python class called RESTCONF, which is similar to the one for EXOS.