Python Api  IE10.1
Classes | Functions | Variables
netbrain.sysapi.goldenbaseline Namespace Reference

Classes

class  FSCSourceType
 
class  GBRuleGenerateType
 
class  GBRuleType
 
class  GBVariableSourceType
 

Functions

def TriggerFSC (source_type)
 trigger fsc for resource update to fs More...
 
def GetDeviceGBRule (device_name, ruleGen_Type, source, source_param, variable_name, source_type)
 get device goldenbaseline rule More...
 
def GetInterfaceGBRule (device_name, ruleGen_Type, intfsList, source, source_param, variable_name, source_type)
 get device's interface goldenbaseline rule More...
 
def SetDeviceGBRule (device_name, source, source_param, variable_name, rule_type, rule_param, variable_type, bEnableVarMapping, source_type)
 set device goldenbaseline rule More...
 
def SetInterfaceGBRule (device_name, intfsList, source, source_param, variable_name, rule_type, rule_param, variable_type, bEnableVarMapping, source_type)
 set interface goldenbaseline rule More...
 

Variables

 str_stack = traceback.format_exc();
 

Function Documentation

◆ GetDeviceGBRule()

def netbrain.sysapi.goldenbaseline.GetDeviceGBRule (   device_name,
  ruleGen_Type,
  source,
  source_param,
  variable_name,
  source_type 
)

get device goldenbaseline rule

Parameters
device_name(string) device name
ruleGen_Type(int) rule generate type. defined in GBRuleGenerateType
source(string) source path
source_param(string) source parameter
variable_name(string) variable name
source_type(int) source type defined in GBVariableSourceType

◆ GetInterfaceGBRule()

def netbrain.sysapi.goldenbaseline.GetInterfaceGBRule (   device_name,
  ruleGen_Type,
  intfsList,
  source,
  source_param,
  variable_name,
  source_type 
)

get device's interface goldenbaseline rule

Parameters
device_name(string) device name
ruleGen_Type(int) rule generate type defined in GBRuleGenerateType
intfsList(string) interface list
source(string) source path
source_param(string) source parameter
variable_name(string) variable name
source_type(int) source type defined in GBVariableSourceType

◆ SetDeviceGBRule()

def netbrain.sysapi.goldenbaseline.SetDeviceGBRule (   device_name,
  source,
  source_param,
  variable_name,
  rule_type,
  rule_param,
  variable_type,
  bEnableVarMapping,
  source_type 
)

set device goldenbaseline rule

Parameters
device_name(string) device name
source(string) source path
source_param(string) source parameter
variable_name(string) variable name
rule_type(int) rule type defined in GBRuleType
rule_param(string) rule parameter
variable_type(int) variable value type
bEnableVarMapping(bool) whether enable variable mapping
source_type(int) source type defined in GBVariableSourceType

◆ SetInterfaceGBRule()

def netbrain.sysapi.goldenbaseline.SetInterfaceGBRule (   device_name,
  intfsList,
  source,
  source_param,
  variable_name,
  rule_type,
  rule_param,
  variable_type,
  bEnableVarMapping,
  source_type 
)

set interface goldenbaseline rule

Parameters
device_name(string) device name
intfsList(List) interface list
source(string) source path
source_param(string) source parameter
variable_name(string) variable name
rule_type(int) rule type defined in GBRuleType
rule_param(string) rule parameter
variable_type(int) variable value type
bEnableVarMapping(bool) whether enable variable mapping
source_type(int) source type defined in GBVariableSourceType

◆ TriggerFSC()

def netbrain.sysapi.goldenbaseline.TriggerFSC (   source_type)

trigger fsc for resource update to fs

Parameters
source_type(int) source type defined in FSCSourceType

Variable Documentation

◆ str_stack

netbrain.sysapi.goldenbaseline.str_stack = traceback.format_exc();