NSO-developer / pioneer

Your Swiss army knife for NETCONF, YANG and NSO NEDs
33 stars 13 forks source link

Pioneer should try other ways to get list of models #2

Open tias77 opened 6 years ago

tias77 commented 6 years ago

As per RFC6022 the way to list a servers schemas is to send a:

<rpc message-id="101"
     xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
  <get>
    <filter type="subtree">
      <netconf-state xmlns=
      "urn:ietf:params:xml:ns:yang:ietf-netconf-monitoring">
        <schemas/>
      </netconf-state>
    </filter>
  </get>
</rpc>

Today it seems pioneer is relying on what capablities are listed in hello-reply