[Contents] [Prev] [Next] [Index] [Report an Error]

Requesting Information from the Candidate Configuration

To request information from the candidate configuration, a client application includes the <source> tag element and <candidate/> tag in <rpc> and <get-config> tag elements:


<rpc>
    <get-config>
      <source>
        <candidate/>
      </source>
       <filter>
            <!- - tag elements representing the configuration elements to return - ->
       </filter>
    </get-config>
</rpc>
]]>]]>

Note: If requesting the entire configuration, the application omits the <filter> tag element. For information about the <filter> tag element, see Specifying the Scope of Configuration Information to Return.

The NETCONF server encloses its reply in <configuration>, <data>, and <rpc-reply> tag elements. In the opening <configuration> tag, it includes the xmlns attribute to specify the namespace for the enclosed tag elements.

When returning information from the candidate configuration, the NETCONF server also includes attributes that indicate when the configuration last changed (they appear on multiple lines here only for legibility):


<rpc-reply xmlns="URN" xmlns:sdx="URL”>
    <data>
        <configuration xmlns="URL" sdx:changed-seconds=seconds" \
                sdx:changed-localtime="YYYY-MM-DD hh:mm:ss TZ">
            <!- - SRC XML tag elements representing the configuration - ->
        </configuration>
    </data>
</rpc-reply>
]]>]]>

sdx:changed-localtime represents the time of the last change as the date and time in the C-series Controller’s local time zone.

sdx:changed-seconds represents the time of the last change as the number of seconds since midnight on 1 January 1970.


[Contents] [Prev] [Next] [Index] [Report an Error]