ydk-gen icon indicating copy to clipboard operation
ydk-gen copied to clipboard

Fix issue #1096.

Open drewtoto opened this issue 1 year ago • 0 comments

Section 3.1 of the RESTCONF Protocol (RFC 8040) published by IETF at https://datatracker.ietf.org/doc/html/rfc8040#section-3.1 specifies that the root resource is discovered by getting "/.well-known/host-meta" resource and finding the <Link> element containing the "restconf" attribute.

Fix parsing of "/.well-known/host-meta" response by iterating through each of the <Link> elements until one containing "rel='restconf'" is found and use the value found in the href attribute as the Root Resource.

drewtoto avatar Apr 24 '24 21:04 drewtoto