cancel
Showing results forĀ 
Search instead forĀ 
Did you mean:Ā 

Issue with EXOS RESTCONF app

Issue with EXOS RESTCONF app

Jennifer_Li
New Contributor
I am having trouble running the RESTCONF app for EXOS. Currently using EXOS 22.2.1.5 on the X670-G2. I followed the instructions in github for downloading the app (download url ), but trying to call any of the RESTCONF URLs results in a 404.
3 REPLIES 3

Dave_Hammers
Extreme Employee
Well this is embarrassing. The format for the .lst download file was for later EXOS releases.
It is fixed now.

# download url https://github.com/extremenetworks/EXOS_Apps/blob/master/REST/downloads/restconf_xos_1.0.1.30.lst
Downloading https://github.com/extremenetworks/EXOS_Apps/blob/master/REST/downloads/restconf_xos_1.0.1.30.lst
Downloading https://github.com/extremenetworks/EXOS_Apps/blob/master/REST/downloads/restconf_xos_1.0.1.30.pyzon a browser, here are some examples. The examples use 10.68.69.180 as the switch IP address.

First authorize the browser with the switch. In the example below username is admin, there is no password (EXOS default settings)

http://10.68.69.180/auth/token/?username=admin&password=

{"duration": 86400, "token": "eyJhbGciOiJIUzI1NiIsImV4cCI6MTUyNDc5NjMwMCwiaWF0IjoxNTI0NzA5OTAwfQ.eyJ1c2VybmFtZSI6ImFkbWluIiwiYWNjZXNzX2xldmVsIjoiYWRtaW4ifQ.dLxXTxAIwB7qK4Z6yrXKrGXOY9n6XY3LNivVQm3SauE"}

Try a GET from your broswer:

http://10.68.69.180/rest/restconf/data/openconfig-platform:components
{ "openconfig-platform:components": {
"component": [
{
"config": {
"name": "operating_system-2"
},
"name": "operating_system-2",
"state": {
"description": "ExtremeXOS version 22.2.1.5 22.2.1.5-patch1-4 by release-manager on Tue May 9 19:21:34 EDT 2017",
"id": 2,
"mfg-name": "Extreme Networks",
"name": "operating_system-2",
"type": "OPERATING_SYSTEM",
"version": "22.2.1.5"
}
.
.
.
http://10.68.69.180/rest/restconf/data/openconfig-system:system { "openconfig-system:system": { "aaa": { "accounting": { "config": { "accounting-method": [] }, "state": { "accounting-method": [] } }, "authentication": { "admin-user": { "config": { "admin-password": "", "admin-password-encrypted": "" }, "state": { "admin-password": "", "admin-password-encrypted": "", "admin-username": "" } }, . . .

yes, it is just one line with the name of the file to download.

I've tried it again and do not have any issues here? Not sure what is wrong.

X670G2-48x-4q.1 # show ver
Switch : 800546-00-08 1633N-42776 Rev 8.0 BootROM: 1.0.2.1 IMG: 22.2.1.5
PSU-1 : Internal PSU-1 800462-00-07 1603W-80540
PSU-2 :
Image : ExtremeXOS version 22.2.1.5 by release-manager
on Mon Feb 27 11:03:54 EST 2017
BootROM : 1.0.2.1
Diagnostics : 5.11
Certified Version : EXOS Linux 3.18.24, FIPS fips-ecp-2.0.12
%% Incomplete command
X670G2-48x-4q.3 #
X670G2-48x-4q.3 # download url https://github.com/extremenetworks/EXOS_Apps/blob/master/REST/downloads/restconf_xos_1.0.1.30.lst
Downloading https://github.com/extremenetworks/EXOS_Apps/blob/mater/REST/downloads/restconf_xos_1.0.1.30.lst
..........Downloading https://github.com/extremenetworks/EXOS_Apps/blob/master/REST/downloads/restconf_xos_1.0.1.30.pyz
.........................................X670G2-48x-4q.4 #
X670G2-48x-4q.4 #

Thank you so much for the quick response Dave! The new .lst file you provided on github seems to be just 1 line. Is that correct? It didn't seem to download correctly for me.
GTM-P2G8KFN