Python Api
IE10.1
|
Functions | |
def | Query (protocol) |
def | Save (protocol) |
def | GetCPNATTable (device_name) |
def | GetCPPolicyTable (device_name) |
def | GetCPIPsecVPNTable (device_name) |
def | GetBaselineConfig (device_name, include_auxiliary=True) |
def | GetBaselineAuxiliaryCli (device_name) |
get the device cinfig Auxiliary Cli. More... | |
def | GetConfig (device_name, include_auxiliary=True) |
def | SaveConfig (device_name, config) |
def | GetCLIData (device_name, cli_command) |
def | SaveCLIData (device_name, cli_command, cli_outputs) |
def | GetNCTTable (device_name, table_name, tableIdentifier=None) |
get the device nct table. More... | |
def | SaveNCTTable (device_name, csv_content, table_name, tableIdentifier=None, tableProperties=None) |
save the device nct table. More... | |
def | GetRouteTable (device_name, vrf='') |
def | SaveRouteTable (device_name, csv_content, vrf='') |
def | GetMatchedRouteTable (device_name, dest_ip, vrf='') |
def | GetARPTable (device_name, vrf='') |
def | SaveARPTable (device_name, csv_content, vrf='') |
def | GetMACTable (device_name) |
get the mac table content of one device from baseline. More... | |
def | SaveMACTable (device_name, csv_content) |
save the mac table content of one device to baseline. More... | |
def | GetNDPTable (device_name) |
get the ndp table content of one device from baseline. More... | |
def | SaveNDPTable (device_name, csv_content) |
save the ndp table content of one device to baseline. More... | |
def | GetSTPTable (device_name) |
get the stp table content of one device from baseline. More... | |
def | SaveSTPTable (device_name, csv_content) |
save the stp table content of one device to baseline. More... | |
def | GetBGPRouteTable (device_name, peer_ip, vrf='') |
def | SaveBGPRouteTable (device_name, csv_content, peer_ip, vrf='') |
def | ImportConfig (driverId, config, dictAuxiliaryCmds={}) |
import configuration file to current baseline. More... | |
def | ImportDeviceDataByCLI (protocol) |
def | GetBaselineNCTSubNames (device_name, nctTableName) |
get nct table subnames from baseline. More... | |
def | get_all_vrf_route (device_name) |
get vrf of routing table in currentbaseline More... | |
def | get_all_vrf_arp_table (device_name) |
get vrf of arp table in currentbaseline More... | |
def | get_sending_commands (dev_ids) |
get sending commands in currentbaseline More... | |
Variables | |
str_stack = traceback.format_exc(); | |
def netbrain.sysapi.devicedata.get_all_vrf_arp_table | ( | device_name | ) |
get vrf of arp table in currentbaseline
device_name | (string) name of device |
def netbrain.sysapi.devicedata.get_all_vrf_route | ( | device_name | ) |
get vrf of routing table in currentbaseline
device_name | (string) name of device |
def netbrain.sysapi.devicedata.get_sending_commands | ( | dev_ids | ) |
get sending commands in currentbaseline
dev_ids | (array of string) ids of device,[id1, id2] |
def netbrain.sysapi.devicedata.GetARPTable | ( | device_name, | |
vrf = '' |
|||
) |
def netbrain.sysapi.devicedata.GetBaselineAuxiliaryCli | ( | device_name | ) |
get the device cinfig Auxiliary Cli.
device_name | (string) device hostname |
def netbrain.sysapi.devicedata.GetBaselineConfig | ( | device_name, | |
include_auxiliary = True |
|||
) |
def netbrain.sysapi.devicedata.GetBaselineNCTSubNames | ( | device_name, | |
nctTableName | |||
) |
get nct table subnames from baseline.
device_name | (string) driver id |
nctTableName | (string) configure content |
def netbrain.sysapi.devicedata.GetBGPRouteTable | ( | device_name, | |
peer_ip, | |||
vrf = '' |
|||
) |
def netbrain.sysapi.devicedata.GetCLIData | ( | device_name, | |
cli_command | |||
) |
def netbrain.sysapi.devicedata.GetConfig | ( | device_name, | |
include_auxiliary = True |
|||
) |
def netbrain.sysapi.devicedata.GetCPIPsecVPNTable | ( | device_name | ) |
def netbrain.sysapi.devicedata.GetCPNATTable | ( | device_name | ) |
def netbrain.sysapi.devicedata.GetCPPolicyTable | ( | device_name | ) |
def netbrain.sysapi.devicedata.GetMACTable | ( | device_name | ) |
get the mac table content of one device from baseline.
device_name | (string) device hostname |
def netbrain.sysapi.devicedata.GetMatchedRouteTable | ( | device_name, | |
dest_ip, | |||
vrf = '' |
|||
) |
def netbrain.sysapi.devicedata.GetNCTTable | ( | device_name, | |
table_name, | |||
tableIdentifier = None |
|||
) |
get the device nct table.
device_name | (string) device hostname |
table_name | (string) device table name |
tableIdentifier | (string or dict or None), if same table name have many tables, this field to identify the table if the param is string equal to dict {"subName":tableIdentifier} for back compatible |
def netbrain.sysapi.devicedata.GetNDPTable | ( | device_name | ) |
get the ndp table content of one device from baseline.
device_name | (string) device hostname |
def netbrain.sysapi.devicedata.GetRouteTable | ( | device_name, | |
vrf = '' |
|||
) |
def netbrain.sysapi.devicedata.GetSTPTable | ( | device_name | ) |
get the stp table content of one device from baseline.
device_name | (string) device hostname |
def netbrain.sysapi.devicedata.ImportConfig | ( | driverId, | |
config, | |||
dictAuxiliaryCmds = {} |
|||
) |
import configuration file to current baseline.
driverId | (string) driver id |
config | (string) configure content |
dictAuxiliaryCmds | (dict) auxiliary commands (dict key) and it's resault (dict value) |
def netbrain.sysapi.devicedata.ImportDeviceDataByCLI | ( | protocol | ) |
def netbrain.sysapi.devicedata.Query | ( | protocol | ) |
def netbrain.sysapi.devicedata.Save | ( | protocol | ) |
def netbrain.sysapi.devicedata.SaveARPTable | ( | device_name, | |
csv_content, | |||
vrf = '' |
|||
) |
def netbrain.sysapi.devicedata.SaveBGPRouteTable | ( | device_name, | |
csv_content, | |||
peer_ip, | |||
vrf = '' |
|||
) |
def netbrain.sysapi.devicedata.SaveCLIData | ( | device_name, | |
cli_command, | |||
cli_outputs | |||
) |
def netbrain.sysapi.devicedata.SaveConfig | ( | device_name, | |
config | |||
) |
def netbrain.sysapi.devicedata.SaveMACTable | ( | device_name, | |
csv_content | |||
) |
save the mac table content of one device to baseline.
device_name | (string) device hostname |
csv_content | (string) csv content of device mac |
def netbrain.sysapi.devicedata.SaveNCTTable | ( | device_name, | |
csv_content, | |||
table_name, | |||
tableIdentifier = None , |
|||
tableProperties = None |
|||
) |
save the device nct table.
device_name | (string) device hostname |
csv_content | (string) csv table content |
table_name | (string) device table name |
tableIdentifier | (string or dict or None), if same table name have many tables, this field to identify the table if the param is string equal to dict {"subName":tableIdentifier} for back compatible |
tableProperties | (dict or None) some tableProperties about the table, like displayName example when tableIdentifier is {vrf:"", peIp:"10.10.2.3"} than tableProperties can be {displayName:"Global:10.10.2.3"} |
def netbrain.sysapi.devicedata.SaveNDPTable | ( | device_name, | |
csv_content | |||
) |
save the ndp table content of one device to baseline.
device_name | (string) device hostname |
csv_content | (string) csv content of device ndp |
def netbrain.sysapi.devicedata.SaveRouteTable | ( | device_name, | |
csv_content, | |||
vrf = '' |
|||
) |
def netbrain.sysapi.devicedata.SaveSTPTable | ( | device_name, | |
csv_content | |||
) |
save the stp table content of one device to baseline.
device_name | (string) device hostname |
csv_content | (string) csv content of device stp |
netbrain.sysapi.devicedata.str_stack = traceback.format_exc(); |