N1 Service Provisioning System 4.1 Reference Guide

Jython Scripts

To call commands from within a Jython script, include the following code at the beginning of the script:


from clui import *
app=PyCLUI() 
app.execStr(CLI command) 	
App.close()	

The assignment app=PyCLUI() calls the CLI. The App.close() call deletes the instance of this Jython class.