Migrating from the CLI to NETCONF
In this recipe, you will learn how to enable the NETCONF protocol on Junos devices. This task is critical since you will use NETCONF in all future recipes to manage the Juniper devices. NETCONF provides several advantages compared to the traditional CLI configuration; for example, configuration management using YANG models allows for a more standardized approach to configuring network devices. Another advantage is the ability to manage configurations using different datastores (e.g., startup, running, and candidate). The candidate datastore allows changes to be prepped ahead of time!
Note
Although not used here, a lot of modern network equipment also supports a RESTCONF interface. RESTCONF supports similar configuration datastores, but simplifies the available operations (via HTTP methods) compared to NETCONF. Also, RESTCONF supports both XML and JSON, versus NETCONF, which supports only XML.
Before you can use NETCONF,...