|
Python Api
IE10.1
|
Functions | |
| def | get_parser_sample (device, parser, params=dict(), kws) |
| get parser sample content on device, Notice: API parser is not supported More... | |
| def | get_parser_result (content, parser) |
| get parsed result More... | |
Variables | |
| str_stack = traceback.format_exc(); | |
| sample_result = namedtuple('sample_result', ['sample', 'success', 'error', 'livelog']) | |
| parser_result = namedtuple('parser_result', ['variables', 'success', 'error']) | |
| def netbrain.sysapi.parserlibrary.get_parser_result | ( | content, | |
| parser | |||
| ) |
get parsed result
| content(string) | parser sample |
| parser(string) | parser path |
| def netbrain.sysapi.parserlibrary.get_parser_sample | ( | device, | |
| parser, | |||
params = dict(), |
|||
| kws | |||
| ) |
get parser sample content on device, Notice: API parser is not supported
| device(string) | name of device |
| parser(string) | path of paser |
| param(dict) | parameter for parser with variables, value MUST be string |
| kws(dict) | other options: live:liveaccess to device to get data, 1.default is True, 2.False means use baseline data 3.using show command format to cache data to baseline 4.show command is constructed in: parser.bizType:parser.command keep_raw:
|
| netbrain.sysapi.parserlibrary.parser_result = namedtuple('parser_result', ['variables', 'success', 'error']) |
| netbrain.sysapi.parserlibrary.sample_result = namedtuple('sample_result', ['sample', 'success', 'error', 'livelog']) |
| netbrain.sysapi.parserlibrary.str_stack = traceback.format_exc(); |
1.8.14