- play_arrow Overview
- play_arrow NETCONF XML Management Protocol Overview
- play_arrow NETCONF and Junos XML Tags Overview
- XML and Junos OS Overview
- XML Overview
- XML and NETCONF XML Management Protocol Conventions Overview
- Map Junos OS Commands and Command Output to Junos XML Tag Elements
- Map Configuration Statements to Junos XML Tag Elements
- Using NETCONF Configuration Response Tag Elements in NETCONF Requests and Configuration Changes
-
- play_arrow Manage Configurations Using NETCONF
- play_arrow Change the Configuration Using NETCONF
- Edit the Configuration Using NETCONF
- Upload and Format Configuration Data in a NETCONF Session
- Set the Edit Configuration Mode in a NETCONF Session
- Handle Errors While Editing the Candidate Configuration in a NETCONF Session
- Replace the Candidate Configuration Using NETCONF
- Roll Back Uncommitted Changes in the Candidate Configuration Using NETCONF
- Delete the Configuration Using NETCONF
- Change Individual Configuration Elements Using NETCONF
- Merge Configuration Elements Using NETCONF
- Create Configuration Elements Using NETCONF
- Delete Configuration Elements Using NETCONF
- Replace Configuration Elements Using NETCONF
- Replace Patterns in Configuration Data Using the NETCONF or Junos XML Protocol
- play_arrow Commit the Configuration Using NETCONF
- play_arrow Ephemeral Configuration Database
- Understanding the Ephemeral Configuration Database
- Unsupported Configuration Statements in the Ephemeral Configuration Database
- Enable and Configure Instances of the Ephemeral Configuration Database
- Commit and Synchronize Ephemeral Configuration Data Using the NETCONF or Junos XML Protocol
- Managing Ephemeral Configuration Database Space
- Example: Configure the Ephemeral Configuration Database Using NETCONF
-
- play_arrow Request Operational and Configuration Information Using NETCONF
- play_arrow Request Operational Information Using NETCONF
- play_arrow Request Configuration Information Using NETCONF
- Request the Committed Configuration and Device State Using NETCONF
- Request Configuration Data Using NETCONF
- Specify the Source for Configuration Information Requests Using NETCONF
- Specify the Scope of Configuration Information to Return in a NETCONF Response
- Request the Complete Configuration Using NETCONF
- Request a Configuration Hierarchy Level or Container Object Without an Identifier Using NETCONF
- Request All Configuration Objects of a Specified Type Using NETCONF
- Request Identifiers for Configuration Objects of a Specified Type Using NETCONF
- Request A Specific Configuration Object Using NETCONF
- Request Specific Child Tags for a Configuration Object Using NETCONF
- Request Multiple Configuration Elements Simultaneously Using NETCONF
- Retrieve a Previous (Rollback) Configuration Using NETCONF
- Compare Two Previous (Rollback) Configurations Using NETCONF
- Retrieve the Rescue Configuration Using NETCONF
- Request an XML Schema for the Configuration Hierarchy Using NETCONF
-
- play_arrow NETCONF Utilities
- play_arrow NETCONF Perl Client
- play_arrow Develop NETCONF Perl Client Applications
- Write NETCONF Perl Client Applications
- Import Perl Modules and Declare Constants in NETCONF Perl Client Applications
- Connect to the NETCONF Server in Perl Client Applications
- Collect Parameters Interactively in NETCONF Perl Client Applications
- Submit a Request to the NETCONF Server in Perl Client Applications
- Example: Request an Inventory of Hardware Components Using a NETCONF Perl Client Application
- Example: Change the Configuration Using a NETCONF Perl Client Application
- Parse the NETCONF Server Response in Perl Client Applications
- Close the Connection to the NETCONF Server in Perl Client Applications
-
- play_arrow YANG
- play_arrow YANG Overview
- Understanding YANG on Devices Running Junos OS
- Understanding Junos YANG Modules
- YANG Modules Overview
- Understanding the YANG Modules That Define the Junos OS Configuration
- Understanding the YANG Modules for Junos Operational Commands
- Junos Genstate YANG Data Models
- Understanding the Junos DDL Extensions YANG Module
- YANG Metadata Annotations for Junos Devices
- Use Juniper Networks YANG Modules
- play_arrow Create and Use Non-Native YANG Modules
- Understanding the Management of Nonnative YANG Modules on Devices Running Junos OS
- Manage YANG Packages, Modules, and Scripts on Junos Devices
- Managing YANG Packages and Configurations During a Software Upgrade or Downgrade
- Create Translation Scripts for YANG Configuration Models
- Disable and Enable YANG Translation Scripts on Devices Running Junos OS
- Commit and Display Configuration Data for Nonnative YANG Modules
- Create Custom RPCs in YANG for Devices Running Junos OS
- Create Action Scripts for YANG RPCs on Junos Devices
- Use Custom YANG RPCs on Devices Running Junos OS
- Example: Use a Custom YANG RPC to Retrieve Operational Information on Junos Devices
- Understanding Junos OS YANG Extensions for Formatting RPC Output
- Customize YANG RPC Output on Devices Running Junos OS
- Define Different Levels of Output in Custom YANG RPCs for Junos Devices
- Display Valid Command Option and Configuration Statement Values in the CLI for Custom YANG Modules
- Configure a NETCONF Proxy Telemetry Sensor in Junos
-
- play_arrow OpenDaylight Integration
- play_arrow Configure OpenDaylight Integration
-
- play_arrow Configuration Statements and Operational Commands
Generate Well-Formed XML Documents
Each set of NETCONF and Junos XML tag elements emitted by the NETCONF server and a
client application within a <hello>
,
<rpc>
, or <rpc-reply>
tag element
must constitute a well-formed XML document. That is, it must obey the structural
rules defined in the document type definition (DTD) for the kind of information
being sent. The client application must emit tag elements in the required order and
only in the allowed contexts.
NETCONF sessions use a framing mechanism to separate the messages that the NETCONF server and client send within the session. The NETCONF server and client must emit messages using the framing mechanism appropriate for that session. Junos devices support the following framing mechanisms:
End-of-document character sequence (]]>]]>)—Message separator defined in RFC 4742 Using the NETCONF Configuration Protocol over Secure SHell (SSH)
Chunked framing—Framing mechanism defined in RFC 6242, Using the NETCONF Protocol over Secure Shell (SSH), which encodes all NETCONF messages with chunked framing.
You can configure supported Junos devices to comply with RFC 6242 by configuring the
rfc-compliant
and version-1.1
statements at
the [edit system services netconf]
hierarchy level. When you enable
RFC 6242 compliance and both peers advertise the :base:1.1
capability, the NETCONF session uses the chunked framing mechanism for the remainder
of the session. For more information, see Configure RFC-Compliant NETCONF Sessions.
If the NETCONF session does not use the chunked framing mechanism, the NETCONF server
and client applications comply with RFC 4742. In particular, the server and
applications send the end-of-document character sequence
]]>]]>
after each XML document. In practice, the client
application sends the sequence after the closing </hello>
tag
and each closing </rpc>
tag, and the NETCONF server sends it
after the closing </hello>
tag and each closing
</rpc-reply>
tag.
The following example demonstrates the general structure of the XML document and the ]]>]]> character sequence in a NETCONF session:
<!-- generated by the client application --> <hello | rpc> <!-- contents of top-level tag element --> </hello | /rpc> ]]>]]> <!-- generated by the NETCONF server --> <hello | rpc-reply attributes> <!-- contents of top-level tag element --> </hello | /rpc-reply> ]]>]]>
When the NETCONF session uses chunked framing, the server and client encode all NETCONF messages as chunked following the Augmented Backus-Naur Form (ABNF) rule Chunked-Message. The following example uses chunked framing:
<!-- generated by the client application --> \n#140\n <?xml version="1.0" encoding="UTF-8"?>\n <rpc message-id="106"\n xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">\n <close-session/>\n </rpc> \n##\n <!-- generated by the NETCONF server --> \n#139\n <?xml version="1.0" encoding="UTF-8"?>\n <rpc-reply id="106"\n xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">\n <ok/>\n </rpc-reply> \n##\n