/dports/net/libyang/libyang-1.0.240/tests/data/ |
H A D | test_json.c | 517 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 D | test_metadata.c | 152 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 D | test_parse_print.c | 1167 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 D | test_values.c | 460 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 D | test_yang_data.c | 170 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 D | test_lyb.c | 305 …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 D | subtype.py | 30 …e = ctx.parse_data_path("/etc/sysrepo/data/ietf-interfaces.startup", ly.LYD_JSON, ly.LYD_OPT_CONFI…
|
H A D | xpath.py | 27 …de = ctx.parse_data_path("/etc/sysrepo/data/turing-machine.startup", ly.LYD_JSON, ly.LYD_OPT_CONFI…
|
H A D | process_tree.py | 36 …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 D | main_ni.c | 221 informat_d = LYD_JSON; in get_fileformat() 355 outformat_d = LYD_JSON; in main_ni() 540 ylformat = LYD_JSON; in main_ni()
|
H A D | commands.c | 515 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 D | TreeDataTest.java | 4 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 D | test_tree_data.c | 1302 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 D | northbound_cli.c | 460 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 D | yang_translator.c | 140 dnode = lyd_parse_path(ly_translator_ctx, path, LYD_JSON, in yang_translator_load()
|
H A D | northbound_grpc.cpp | 1100 return LYD_JSON; in encoding2lyd_format()
|
/dports/net/frr7/frr-frr-7.5.1/lib/ |
H A D | northbound_cli.c | 460 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 D | yang_translator.c | 140 dnode = lyd_parse_path(ly_translator_ctx, path, LYD_JSON, in yang_translator_load()
|
H A D | northbound_grpc.cpp | 1100 return LYD_JSON; in encoding2lyd_format()
|
/dports/net/libyang/libyang-1.0.240/src/ |
H A D | tree_data.h | 43 LYD_JSON, /**< JSON format of the instance data */ enumerator
|
H A D | printer.c | 711 case LYD_JSON: in lyd_print_()
|
H A D | tree_data.c | 966 case LYD_JSON: in lyd_parse_()
|
/dports/net/libyang/libyang-1.0.240/swig/cpp/tests/ |
H A D | test_tree_data.cpp | 608 auto result = root->print_mem(LYD_JSON, LYP_FORMAT); in TEST()
|
/dports/net/libyang/libyang-1.0.240/swig/python/tests/ |
H A D | test_tree_data.py | 592 result = root.print_mem(ly.LYD_JSON, ly.LYP_FORMAT)
|
/dports/net/libyang/libyang-1.0.240/ |
H A D | libyang.dump | 3073 'name' => 'LYD_JSON',
|