Python Api  IE10.1
Classes | Functions | Variables
netbrain.sysapi.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 def build_links(context, vpn_intfs, local_property_name, remote_property_name): PyCloudFW.SetCloudContext(context) . 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 netbrain.sysapi.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 netbrain.sysapi.cloudfw.BuildMplsL3VpnVrt (   devId,
  subName 
)

◆ GetCloudContext()

def netbrain.sysapi.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 netbrain.sysapi.cloudfw.ReleaseCloudContext ( )

set the Cloud context to null.

◆ SetCloudContext()

def netbrain.sysapi.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 netbrain.sysapi.cloudfw.DEBUG = 0

debug log level

◆ ERROR

int netbrain.sysapi.cloudfw.ERROR = 3

error log level

◆ INFO

int netbrain.sysapi.cloudfw.INFO = 1

info log level

◆ WARNING

int netbrain.sysapi.cloudfw.WARNING = 2

waring log level