Overview of Using Junos PyEZ Configuration Tables to Define and Configure Structured Resources
Starting in Junos PyEZ Release 2.0, Junos PyEZ enables you to use Tables and Views to configure devices running Junos OS. Tables and Views are defined using simple YAML files that contain key and value pair mappings, so no complex coding is required to create them. You can create Tables and Views that define structured configuration resources. When you add the Table to the Junos PyEZ framework, Junos PyEZ dynamically creates a configuration class for the resource, which you can use to programmatically configure the resource on a device.
To configure devices running Junos OS using configuration Tables and Views, you must identify the resource to model, create the Table and View definitions for that resource, and then use those definitions to configure the resource in your Junos PyEZ application. The general steps are outlined in this topic.
Create the Structured Resource
To create the structured resource:
Use the Resource in a Junos PyEZ Application
To configure the resource in your Junos PyEZ application:
For more information about the using the different methods to load and commit the configuration data, see Use Junos PyEZ to Configure Devices Running Junos OS and Use Junos PyEZ to Commit the Configuration.