[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: What happened to <format> parameter on <get-config>?



"Steven Berl \(sberl\)" writes:
>I know we used to have a <format> parameter as part of the <get-config>
>operation, and that it got removed in an earlier draft. I can't seem to find
>the reason why it was removed, and what alternative has been provided to
>allow me to send an additional parameter as part of a <get-config> request.

The concensus was that namespaces could be used to determine
the sort of information that was being requested.

<rpc>
  <get-config>  <!-- from memory; caveat xmler -->
    <config>
       <configuration-text xmlns="http://example.com/text/1.0"/>
    </config>
  </get-config>
</rpc>

It does give a richer set of possible configs (and the strings
the describe them), but is a bit uglier.

>Basically my problem is that the config can be represented in 2 different
>ways and I need to tell <get-config> which way to return it. 

Same here.  We default to xml and allow the above hook to
get normal text output (ala "show configuration").

Thanks,
 Phil

--
to unsubscribe send a message to netconf-request@ops.ietf.org with
the word 'unsubscribe' in a single line as the message text body.
archive: <http://ops.ietf.org/lists/netconf/>