def get_disabled_container_leaf(mgr): return find_single_xpath( mgr.get().data_xml, "/nc:data/test-validation:disabled-container/test-validation:disabled-container-leaf", )
def get_config_disabled_container_leaf(mgr, datastore="running"): return find_single_xpath( mgr.get_config(source=datastore).data_xml, "/nc:data/test-validation:disabled-container/test-validation:disabled-container-leaf", )
def get_config_enabled_leaf(mgr, datastore="running"): return find_single_xpath( mgr.get_config(source=datastore).data_xml, "/nc:data/test-validation:disabled-elements/test-validation:enabled-leaf", )
def get_enabled_leaf_from_data_xml(data_xml): return find_single_xpath( data_xml, "/nc:data/test-validation:disabled-elements/test-validation:enabled-leaf", )
def get_test_container_when_check_from_data_xml(data_xml): return find_single_xpath( data_xml, "/nc:data/test-when:test-when/test-when:when-check", )
def get_test_container_gated_data_from_data_xml(data_xml): return find_single_xpath( data_xml, "/nc:data/test-when:test-when/test-when:gated-data", )
def get_simple_string_from_data_xml(data_xml): return find_single_xpath( data_xml, "/nc:data/test-cand-cfg:test-candidate-config-container/test-cand-cfg:simple-string", )