When a partial configuration has been received by the device, each line of the configuration will be applied in the same
order as it was received. If the Cisco parser has an error with one of the lines of the configuration, then all the configuration
up to this point will be applied to the device, but none of the configuration beyond the error will be applied. If an error
occurs, the
cns
config
partial command will retry until the configuration successfully completes. In the pull mode, the command will not retry after an
error. By default, NVRAM will be updated except when the
no-persist keyword is configured.
A message will be published on the Cisco Networking Services event bus after the partial configuration is complete. The Cisco
Networking Services event bus will display one of the following status messages:
-
cisco.mgmt.cns.config.complete—Cisco Networking Services configuration agent successfully applied the partial configuration.
-
cisco.mgmt.cns.config.warning—Cisco Networking Services configuration agent fully applied the partial configuration, but
encountered possible semantic errors.
-
cisco.mgmt.cns.config.failure (CLI syntax)—Cisco Networking Services configuration agent encountered a command line interface
(CLI) syntax error and was not able to apply the partial configuration.
-
cisco.mgmt.cns.config.failure (CLI semantic)—Cisco Networking Services configuration agent encountered a CLI semantic error
and was not able to apply the partial configuration.
With the CNS Enhanced Results Messages feature, a second message is sent to the subject “cisco.cns.config.results” in addition
to the appropriate message above. The second message contains both overall and line-by-line information about the configuration
that was sent and the result of the action requested in the original message. If the action requested was to apply the configuration,
then the information in the results message is semantic in nature. If the action requested was to check syntax only, then
the information in the results message is syntactical in nature.