Download Yuma Quickstart Guide
Transcript
Yuma Quickstart Guide yangcli> Note that the prompt returned to the default form, once the session was dropped by the NETCONF server. The terminate the yangcli program, use the 'quit' command: yangcli> quit mydir> 4 Advanced Topics This section introduces some advanced features of the NETCONF protocol and YANG data modeling language. 4.1 Data Retrieval 4.1.1 BASIC NETCONF RETRIEVAL OPERATIONS The NETCONF protocol has 2 different retrieval operations: • <get>: get state data and the running configuration database. • <get-config>: get just the specified configuration database. Each of these operations accepts a <filter> parameter, which has 2 forms: • subtree filter: retrieve just the subtrees in the database that match the XML subtrees in the filter. • XPath filter: retrieve just the subtrees that match the result node set produced by evaluating the specified XPath expression against the database. This mode cannot be used unless the :xpath capability must be advertised by the server. The yangcli program supports 3 different forms of each command: • plain: plain NETCONF operation with user-supplied filter • subtree: XPath path expression or user variable is converted to XML for the <filter> parameter subtree XML. • xpath: XPath path expression or user variable is converted to XML for the <filter> parameter 'select' XML attribute yangcli Retrieval Commands command get Page 20 description plain <get> operation Version 2.2 example get with-defaults=trim