Python Api  IE10.1
Classes | Functions | Variables
cloudfw Namespace Reference

Classes

class  Cloud
 
class  CloudProperties
 
class  CloudProperty
 
class  CloudPropertyType
 
class  CloudSearchType
 
class  NCTProtocol
 
class  NCTResult
 
class  NCTResultStatus
 

Functions

def GetCloudContext ()
 Python Thread function. More...
 
def SetCloudContext (contextAddr)
 This method will clone one Context Object in new thread. More...
 
def ReleaseCloudContext ()
 set the Cloud context to null. More...
 
def AddLog (content, logType=INFO)
 Add logs to plugin exction. More...
 
def BuildMplsL3VpnVrt (devId, subName)
 

Variables

int DEBUG = 0
 debug log level More...
 
int INFO = 1
 info log level More...
 
int WARNING = 2
 waring log level More...
 
int ERROR = 3
 error log level More...
 

Function Documentation

◆ AddLog()

def cloudfw.AddLog (   content,
  logType = INFO 
)

Add logs to plugin exction.

Parameters
content(string) content of log.
logType(string) log level.
See also
PluginLogLevel

◆ BuildMplsL3VpnVrt()

def cloudfw.BuildMplsL3VpnVrt (   devId,
  subName 
)

◆ GetCloudContext()

def cloudfw.GetCloudContext ( )

Python Thread function.

def build_links(context, vpn_intfs, local_property_name, remote_property_name):
PyCloudFW.SetCloudContext(context)
Returns
(C++ pointer) Cloud context.

◆ ReleaseCloudContext()

def cloudfw.ReleaseCloudContext ( )

set the Cloud context to null.

◆ SetCloudContext()

def cloudfw.SetCloudContext (   contextAddr)

This method will clone one Context Object in new thread.

Only first call will do clone, more calls will do nothing

Parameters
contextAddr(C++ pointer)address of Cloud context,is get from C++ Api by call GetCloudContext
See also
GetCloudContext

Variable Documentation

◆ DEBUG

int cloudfw.DEBUG = 0

debug log level

◆ ERROR

int cloudfw.ERROR = 3

error log level

◆ INFO

int cloudfw.INFO = 1

info log level

◆ WARNING

int cloudfw.WARNING = 2

waring log level