- Added yang patch test: test_restconf_yang_patch.sh as placeholder for rfc 8072 tests

- Added patch-xml as valid media
This commit is contained in:
Olof hagsand 2021-07-26 12:20:06 +02:00 committed by Alan Yaniger
parent 659aaac5c6
commit 128764a570
2 changed files with 208 additions and 4 deletions

View file

@ -1329,16 +1329,15 @@ api_data_patch(clicon_handle h,
ret = api_data_write(h, req, api_path0, pcvec, pi, qvec, data, pretty,
media_in, media_out, 1, ds);
break;
case YANG_PATCH_XML:
ret = restconf_notimplemented(h, req, pretty, media_out);
break;
case YANG_PATCH_JSON: /* RFC 8072 patch */
case YANG_PATCH_XML:
#ifdef YANG_PATCH
ret = api_data_yang_patch(h, req, api_path0, pcvec, pi, qvec, data, pretty,
media_out, ds);
#else
ret = restconf_unsupported_media(h, req, pretty, media_out);
ret = restconf_notimplemented(h, req, pretty, media_out);
#endif
break;
break;
default:
ret = restconf_unsupported_media(h, req, pretty, media_out);