Home
last modified time | relevance | path

Searched refs:LYD_JSON (Results 1 – 25 of 25) sorted by relevance

/dports/net/libyang/libyang-1.0.240/tests/data/
H A Dtest_json.c517 st->dt = lyd_parse_mem(st->ctx, if_data, LYD_JSON, LYD_OPT_CONFIG); in test_parse_if()
535 st->dt = lyd_parse_mem(st->ctx, num_data, LYD_JSON, LYD_OPT_CONFIG); in test_parse_numbers()
622 st->dt = lyd_parse_mem(st->ctx, string_data_001, LYD_JSON, LYD_OPT_CONFIG); in test_parse_string()
625 st->dt = lyd_parse_mem(st->ctx, string_data_002, LYD_JSON, LYD_OPT_CONFIG); in test_parse_string()
628 st->dt = lyd_parse_mem(st->ctx, string_data_003, LYD_JSON, LYD_OPT_CONFIG); in test_parse_string()
631 st->dt = lyd_parse_mem(st->ctx, string_data_004, LYD_JSON, LYD_OPT_CONFIG); in test_parse_string()
634 st->dt = lyd_parse_mem(st->ctx, string_data_005, LYD_JSON, LYD_OPT_CONFIG); in test_parse_string()
637 st->dt = lyd_parse_mem(st->ctx, string_data_006, LYD_JSON, LYD_OPT_CONFIG); in test_parse_string()
640 st->dt = lyd_parse_mem(st->ctx, string_data_007, LYD_JSON, LYD_OPT_CONFIG); in test_parse_string()
643 st->dt = lyd_parse_mem(st->ctx, string_data_008, LYD_JSON, LYD_OPT_CONFIG); in test_parse_string()
[all …]
H A Dtest_metadata.c152 st->data = lyd_parse_mem(st->ctx, input, LYD_JSON, LYD_OPT_CONFIG, NULL); in test_unknown_metadata_json()
397 st->data = lyd_parse_mem(st->ctx, input, LYD_JSON, LYD_OPT_EDIT , NULL); in test_nc_editconfig1_json()
462 st->data = lyd_parse_mem(st->ctx, input, LYD_JSON, LYD_OPT_EDIT, NULL); in test_nc_editconfig2_json()
523 st->data = lyd_parse_mem(st->ctx, input, LYD_JSON, LYD_OPT_EDIT, NULL); in test_nc_editconfig3_json()
525 lyd_print_mem(&st->str, st->data, LYD_JSON, 0); in test_nc_editconfig3_json()
774 st->data = lyd_parse_mem(st->ctx, input, LYD_JSON, LYD_OPT_EDIT, NULL); in test_nc_editconfig7_json()
837 st->data = lyd_parse_mem(st->ctx, input, LYD_JSON, LYD_OPT_EDIT, NULL); in test_nc_editconfig8_json()
839 lyd_print_mem(&st->str, st->data, LYD_JSON, 0); in test_nc_editconfig8_json()
904 lyd_print_mem(&st->str, st->data, LYD_JSON, 0); in test_nc_editconfig9_json()
1230 lyd_print_mem(&st->str, st->data, LYD_JSON, 0); in test_nc_editconfig14_json()
[all …]
H A Dtest_parse_print.c1167 st->dt = lyd_parse_path(st->ctx, data, LYD_JSON, LYD_OPT_CONFIG); in test_parse_print_json()
1169 lyd_print_mem(&(st->str2), st->dt, LYD_JSON, LYP_FORMAT); in test_parse_print_json()
1220 lyd_print_mem(&(st->str2), st->dt, LYD_JSON, LYP_FORMAT | LYP_NETCONF); in test_parse_print_json()
1296 lyd_print_mem(&(st->str2), st->dt, LYD_JSON, LYP_FORMAT); in test_parse_print_json()
1321 lyd_print_mem(&(st->str2), st->dt, LYD_JSON, LYP_FORMAT); in test_parse_print_json()
1350 lyd_print_mem(&(st->str2), st->dt, LYD_JSON, LYP_FORMAT); in test_parse_print_keyless()
1403 st->dt = lyd_parse_path(st->ctx, data, LYD_JSON, LYD_OPT_CONFIG); in test_parse_print_lyb()
1411 lyd_print_mem(&(st->str2), st->dt, LYD_JSON, LYP_FORMAT); in test_parse_print_lyb()
1568 lyd_print_mem(&(st->str2), st->dt, LYD_JSON, LYP_FORMAT); in test_parse_print_lyb()
1597 lyd_print_mem(&(st->str2), st->dt, LYD_JSON, LYP_FORMAT); in test_parse_print_lyb()
[all …]
H A Dtest_values.c460 lyd_print_mem(&st->data, st->dt, LYD_JSON, LYP_WITHSIBLINGS | LYP_WD_ALL); in test_xmltojson_anydata()
469 lyd_print_mem(&st->data, st->dt, LYD_JSON, LYP_WITHSIBLINGS | LYP_WD_ALL); in test_xmltojson_anydata()
478 lyd_print_mem(&st->data, st->dt, LYD_JSON, LYP_WITHSIBLINGS | LYP_WD_ALL); in test_xmltojson_anydata()
505 lyd_print_mem(&st->data, st->dt, LYD_JSON, LYP_WITHSIBLINGS | LYP_WD_ALL); in test_xmltojson_extension()
H A Dtest_yang_data.c170 st->dt = lyd_parse_mem(st->ctx, json_file1, LYD_JSON, LYD_OPT_DATA_TEMPLATE, "data"); in test_mem_yangdata()
172 st->dt = lyd_parse_mem(st->ctx, json_file2, LYD_JSON, LYD_OPT_DATA_TEMPLATE, "data"); in test_mem_yangdata()
/dports/net/libyang/libyang-1.0.240/tests/internal/
H A Dtest_lyb.c305 …st->dt1 = lyd_parse_path(st->ctx, TESTS_DIR"/data/files/ietf-interfaces.json", LYD_JSON, LYD_OPT_C… in test_ietf_interfaces()
346 …st->dt1 = lyd_parse_path(st->ctx, TESTS_DIR"/data/files/test-origin.json", LYD_JSON, LYD_OPT_CONFI… in test_origin()
544 …e_path(st->ctx, TESTS_DIR"/data/files/ietf-netconf-notifications.json", LYD_JSON, LYD_OPT_NOTIF | … in test_anydata()
587 …e_path(st->ctx, TESTS_DIR"/data/files/ietf-netconf-notifications.json", LYD_JSON, LYD_OPT_NOTIF | … in test_anydata()
605 …st->dt1 = lyd_parse_path(st->ctx, TESTS_DIR"/data/files/test-submodule-feature.json", LYD_JSON, LY… in test_submodule_feature()
649 …st->dt1 = lyd_parse_path(st->ctx, TESTS_DIR"/data/files/leafrefs2.json", LYD_JSON, LYD_OPT_CONFIG … in test_leafrefs()
/dports/net/libyang/libyang-1.0.240/swig/python/examples/
H A Dsubtype.py30 …e = ctx.parse_data_path("/etc/sysrepo/data/ietf-interfaces.startup", ly.LYD_JSON, ly.LYD_OPT_CONFI…
H A Dxpath.py27 …de = ctx.parse_data_path("/etc/sysrepo/data/turing-machine.startup", ly.LYD_JSON, ly.LYD_OPT_CONFI…
H A Dprocess_tree.py36 …de = ctx.parse_data_path("/etc/sysrepo/data/turing-machine.startup", ly.LYD_JSON, ly.LYD_OPT_CONFI…
/dports/net/libyang/libyang-1.0.240/tools/lint/
H A Dmain_ni.c221 informat_d = LYD_JSON; in get_fileformat()
355 outformat_d = LYD_JSON; in main_ni()
540 ylformat = LYD_JSON; in main_ni()
H A Dcommands.c515 return LYD_JSON; in detect_data_format()
723 outformat = LYD_JSON; in cmd_data()
735 informat = LYD_JSON; in cmd_data()
1142 outformat = LYD_JSON; in cmd_list()
/dports/net/libyang/libyang-1.0.240/swig/java/tests/
H A DTreeDataTest.java4 import static org.cesnet.LYD_FORMAT.LYD_JSON;
567 String result = root.print_mem(LYD_JSON, LYP_FORMAT); in test_ly_data_node_print_mem_json()
/dports/net/libyang/libyang-1.0.240/tests/api/
H A Dtest_tree_data.c1302 rc = lyd_print_mem(&result, root, LYD_JSON, LYP_FORMAT); in test_lyd_print_mem_json()
1415 rc = lyd_print_fd(fd, root, LYD_JSON, LYP_FORMAT); in test_lyd_print_fd_json()
1575 rc = lyd_print_file(f, root, LYD_JSON, LYP_FORMAT); in test_lyd_print_file_json()
1691 rc = lyd_print_clb(custom_lyd_print_clb, arg, root, LYD_JSON, LYP_FORMAT); in test_lyd_print_clb_json()
/dports/net/frr7-pythontools/frr-frr-7.5.1/lib/
H A Dnorthbound_cli.c460 ly_format = (format == NB_CFG_FMT_JSON) ? LYD_JSON : LYD_XML; in nb_cli_candidate_load_file()
678 return nb_cli_show_config_libyang(vty, LYD_JSON, config, in nb_cli_show_config()
1455 format = LYD_JSON;
H A Dyang_translator.c140 dnode = lyd_parse_path(ly_translator_ctx, path, LYD_JSON, in yang_translator_load()
H A Dnorthbound_grpc.cpp1100 return LYD_JSON; in encoding2lyd_format()
/dports/net/frr7/frr-frr-7.5.1/lib/
H A Dnorthbound_cli.c460 ly_format = (format == NB_CFG_FMT_JSON) ? LYD_JSON : LYD_XML; in nb_cli_candidate_load_file()
678 return nb_cli_show_config_libyang(vty, LYD_JSON, config, in nb_cli_show_config()
1455 format = LYD_JSON;
H A Dyang_translator.c140 dnode = lyd_parse_path(ly_translator_ctx, path, LYD_JSON, in yang_translator_load()
H A Dnorthbound_grpc.cpp1100 return LYD_JSON; in encoding2lyd_format()
/dports/net/libyang/libyang-1.0.240/src/
H A Dtree_data.h43 LYD_JSON, /**< JSON format of the instance data */ enumerator
H A Dprinter.c711 case LYD_JSON: in lyd_print_()
H A Dtree_data.c966 case LYD_JSON: in lyd_parse_()
/dports/net/libyang/libyang-1.0.240/swig/cpp/tests/
H A Dtest_tree_data.cpp608 auto result = root->print_mem(LYD_JSON, LYP_FORMAT); in TEST()
/dports/net/libyang/libyang-1.0.240/swig/python/tests/
H A Dtest_tree_data.py592 result = root.print_mem(ly.LYD_JSON, ly.LYP_FORMAT)
/dports/net/libyang/libyang-1.0.240/
H A Dlibyang.dump3073 'name' => 'LYD_JSON',