Commit a846ef0a authored by Ladislav Lhotka's avatar Ladislav Lhotka

Update the test script to reflect yangson-0.1.3.

parent 8c736f82
from yangson.datamodel import DataModel
DataModel.module_dir = "/Users/lhotka/Projects/jetconf/yang"
from yangson import DataModel
module_dir = "/Users/lhotka/Projects/jetconf/yang"
with open("/Users/lhotka/Projects/jetconf/data/yang-library-data.json",
encoding="utf-8") as infile:
txt =
dm = DataModel.from_yang_library(txt)
dm = DataModel.from_yang_library(txt, module_dir)
nacm = dm.get_schema_node("/ietf-netconf-acm:nacm")
rpcname = dm.get_data_node("/ietf-netconf-acm:nacm/rule-list/rule/rpc-name")
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment