Uploaded image for project: 'netconf'
  1. netconf
  2. NETCONF-662

[RFC8040] Implement RESTCONF Extensibility (discovery)

XMLWordPrintable

    • Icon: New Feature New Feature
    • Resolution: Duplicate
    • Icon: Medium Medium
    • None
    • None
    • None

      The discovery feature is not implemented.

      link to RFC section

      A brief email exchange:

      Wang, please also open a Jira ticket for this or any other issue you find so we can track it.
      
      BR/Luis
      
      
      > On Apr 8, 2020, at 6:06 AM, <wang.senxiao@zte.com.cn> <wang.senxiao@zte.com.cn> wrote:
      >
      >
      > Ok, I will try to fix it, and next time I send the mail to mail list.
      >
      >
      > Best Regards
      >
      > Wang
      >
      >
      >
      >
      >
      >
      > 原始邮件
      > 发件人:RobertVarga <nite@hq.sk>
      > 收件人:王森枭10200860;jluhrsen@gmail.com <jluhrsen@gmail.com>;ecelgp@gmail.com <ecelgp@gmail.com>;
      > 抄送人:庄威10258030;
      > 日 期 :2020年04月08日 20:35
      > 主 题 :Re: odl-restconf-nb-rfc8040 feature not support URL  /.well-known/host-meta  query
      > On 08/04/2020 14:30, wang.senxiao@zte.com.cn wrote:
      > > 
      > > Hi Robert, Luis and Jamo,
      >
      > Hello Wang,
      >
      > this is a known gap in the implementation, i.e. the discovery feature is
      > not implemented. Please file an issue.
      >
      > Also, can you use the mailing lists, please? Point-to-point
      > communications are contrary to our principles of openness.
      >
      > Thanks,
      > Robert
      >
      >
      > > 
      > >     As the rfc8040 1.5 chapter description, the restconf should support
      > > the /.well-known/host-meta  query:
      > > 
      > >                      The client might send the following:
      > > 
      > >                             GET /.well-known/host-meta HTTP/1.1
      > > 
      > >                             Host: example.com
      > > 
      > >                             Accept: application/xrd+xml
      > > 
      > > 
      > >                      The server might respond as follows:
      > > 
      > >                             HTTP/1.1 200 OK
      > > 
      > >                             Content-Type: application/xrd+xml
      > > 
      > >                             Content-Length: nnn
      > > 
      > >                    
      > > 
      > >                       <XRD
      > > xmlns='http://docs.oasis-open.org/ns/xri/xrd-1.0'>
      > > 
      > >                               <Link rel='restconf' href='/restconf'/>
      > > 
      > >                               <Link rel='restconf2' href='/restconf2'/>
      > > 
      > >                       </XRD>
      > > 
      > > 
      > >    If I install feature odl-restconf-nb-rfc8040, then I query use url
      > > <http://127.0.0.1:8181/.well-known/host-meta,><http://127.0.0.1:8181/.well-known/host-meta,><http://127.0.0.1:8181/.well-known/host-meta,><http://127.0.0.1:8181/.well-known/host-meta,><http://127.0.0.1:8181/.well-known/host-meta,><http://127.0.0.1:8181/.well-known/host-meta,><http://127.0.0.1:8181/.well-known/host-meta,><http://127.0.0.1:8181/.well-known/host-meta,><http://127.0.0.1:8181/.well-known/host-meta,><http://127.0.0.1:8181/.well-known/host-meta,><http://127.0.0.1:8181/.well-known/host-meta,>http://127.0.0.1:8181/.well-known/host-meta, it
      > > should return the body as follows, but return code 404:       
      > > 
      > >                       <XRD
      > > xmlns='http://docs.oasis-open.org/ns/xri/xrd-1.0'>
      > > 
      > >                               <Link rel='restconf' href='/rests'/>
      > > 
      > >                       </XRD>
      > > 
      > >    I have checked code, but no idea to fix it temporarily, could you
      > > please help check it? Thanks.
      > > 
      > > 
      > > 
      > > Best Regards
      > > 
      > > Wang
      

            wsx25289 wang senxiao
            jluhrsen Jamo Luhrsen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: