We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
import yamlordereddictloader from jnpr.junos.factory import loadyaml import yaml from pprint import pprint from jnpr.junos import Device import json import yamlordereddictloader from jnpr.junos.factory.factory_loader import FactoryLoader yaml_data = """ --- EgressCrcErrorsTable: command: command | display xml target: fpc9 item: showFwengHistStart/showFwengHist key: - headMsg view: EgressHistTableView EgressHistTableView: fields: headmsg: headMsg errors: _EgressCrcErrorsView _EgressCrcErrorsView: item: fehistErrors key: - histChipDpLbl view: EgressCrcErrorsFieldsView EgressCrcErrorsFieldsView: fields: BT: histChipDpLbl PFE: histPpfeId DRAM: drPagCrcErrS Egress: egrCrcLHdErrs """ globals().update(FactoryLoader().load(yaml.load(yaml_data, Loader=yamlordereddictloader.Loader))) with Device(host='xyzzy', user='xyzzy', password='xyzzy', port=22) as dev: stats1 = EgressCrcErrorsTable(dev).get() print("thesse are stats") print(stats1) print("pretty stats") pprint(json.loads(stats1.to_json()))
The text was updated successfully, but these errors were encountered:
chidanandpujar
No branches or pull requests
The text was updated successfully, but these errors were encountered: