Create a Commit Script Macro to Read the Custom Syntax and Generate Related Configuration Statements
Commit script macros enable you to expand custom configuration
syntax into standard Junos OS configuration statements. By itself,
the custom syntax in an apply-macro statement has no operational
impact on the device. To give meaning to your syntax, there must be
a corresponding commit script that uses the syntax as data for generating
related Junos OS statements.
To write such a script:
If all the commit scripts run without errors, any persistent changes are loaded into the candidate configuration, and any transient changes are loaded into the checkout configuration, but not to the candidate configuration. The commit process then continues by validating the configuration and propagating changes to the affected processes on the device running Junos OS.