Sofware-Defined Networking

Reply
pyi
New Contributor
Posts: 2
Registered: ‎02-13-2015

controller vyatta - restconf northbound interface

Hi,

I'm using vyatta brocade controller in order to control netopeer tool via netconf protocol.

I succeeded in mounting the device, but in the api explorer page ...8181/apidoc/explorer/index.htm I don't understand how the input field must be compiled when invoking a post.

In general, the question is: given a yang module,  how correspondent post invocation body must be compiled?

 

Hope this example will clarify:

given the following specification for the get-config operation (RFC6241)

 

rpc get-config {
      description
        "Retrieve all or part of a specified configuration.";

      reference "RFC 6241, Section 7.1";

      input {
        container source {
          description



Enns, et al.                 Standards Track                   [Page 92]
 
RFC 6241                    NETCONF Protocol                   June 2011


            "Particular configuration to retrieve.";

          choice config-source {
            mandatory true;
            description
              "The configuration to retrieve.";
            leaf candidate {
              if-feature candidate;
              type empty;
              description
                "The candidate configuration is the config source.";
            }
            leaf running {
              type empty;
              description
                "The running configuration is the config source.";
            }
            leaf startup {
              if-feature startup;
              type empty;
              description
                "The startup configuration is the config source.
                 This is optional-to-implement on the server because
                 not all servers will support filtering for this
                 datastore.";
            }
          }
        }

        anyxml filter {
          description
            "Subtree or XPath filter to use.";
          nc:get-filter-element-attributes;
        }
      }

      output {
        anyxml data {
          description
            "Copy of the source datastore subset that matched
             the filter criteria (if any).  An empty data container
             indicates that the request did not produce any results.";
        }
      }
    }

what is the post body I have to insert in the corrispondent restconf post invocation

Join the Community

Get quick and easy access to valuable resource designed to help you manage your Brocade Network.