O'Reilly logo

JUNOS Automation Cookbook by Adam Chappell

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Web client application

On the web client, life starts as usual with a config event message being received from the server as soon as he notices us connect. The associated data identifies the elements that the server is currently communicating with according to his configuration file, so the configureDevices() method of WebClient is able to customize a drop-down control to include these elements for user selection.

When an element is selected, selectNewDevice() prepares the scene by clearing away the canvas - in case there was a previous graph - and resetting the data structures. It opens a group socket to the server, which is associated with the device, and sets up a callback of updateGraphs() to be run whenever there is an ldp-stats message. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required