Skip to content

NSO-developer/webui-one-basic-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NSO example package with a simple webui

About

This NSO package contain a simple webui that demonstrates how the JSON-RPC API can be utilized.

  • Show the running NSO Version.
  • Show a similar menu as the Cisco Short Cut Menu.
  • Show a similar logout menu as Cisco webui one.

All the similarity to the Cisco Webui is copied and separated from the Cisco Webui, and not in any way linked.

Package contents

  • webui/webui.json Required for the package to be recognised by the new NSO webui and a link to the package webui will be visible on the ApplicationHUB.
  • webui/index.html Required entrypoint for the package webui, where the user will end up when clicking on the link in the ApplicationHUB.
  • webui/script.js Simple Javascript to peform a request to the NSO JSON-RPC.
  • webui/style.css CSS Styles.

Requirements

  • NSO version 4.5+
  • A modern version of Chrome or Firefox

Installation

Put the package contents in the NSO /packages/webui-one-basic-example folder.

Reload packages using cli or webui.

The example-webui should now be accessible from the ApplicationHUB, nso-host/webui-one/ or directly at nso-host/custom/webui-one-basic-example

Browser support

Use a modern web browser like the latest version of Chrome, FireFox, Edge, or Safari.