freeconf / restconf

Implementation of RESTCONF Management protocol - IETF RFC8040

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

notification event formatting

dhubler opened this issue · comments

notification should be wrapped with

{
     "ietf-restconf:notification" : {
         "eventTime": "2008-07-08T00:01:00Z",
          "event": {  
                 payload here
           }
      }
}

see https://datatracker.ietf.org/doc/html/rfc7950#section-7.16.3

Bit of a rabbit hole...

  • In order to use that namespace, I probably should implement ietf-restconf.yang
  • ietf-restconf.yang is a "conceptual" model. What does that even mean?

The YANG model has an extension that i don't even know what to do with this:

extension yang-data {
    argument name {
       yin-element true;
}
...
rc:yang-data yang-errors {
    uses errors;
}

YANG inside a extension?! When I lookup yin-element in YANG RFC, seems to indicate xml encoding or something.

Anyone have pointers to what I'm supposed to do here?
Link to YANG online...
https://raw.githubusercontent.com/YangModels/yang/39c9ea61985fc8efdf90db25b58118cac2bf1533/standard/ietf/RFC/ietf-restconf@2017-01-26.yang

fixed on compliance branch