Symptom
When you type a bad command that is not handled properly in the BGP yang model the dmi infra is operating in degraded mode
*Dec 11 17:38:50.820: %DMI-3-SYNC_ERR: R0/0: dmiauthd: An attempt to synchronize the running configuration to the NETCONF running data store has failed:
*Dec 11 17:38:50.821: %DMI-3-DMI_DEGRADED: R0/0: dmiauthd: The dmi infra is operating in degraded mode. Most synchronizations from IOS to NETCONF datastore will not be performed
Conditions
This happens when netconf-yang feature candidate-datastore is enabled
Workaround
There are two options to restore the synchronization between these two datastores
1. You should be able to recover by removing the candidate-datatstore then reconfiguring it:
Config t
No Netconf-yang feature candidate-datastore
Netconf-yang feature candidate-datatstore
End
2. Send an sync-from RPC using the cisco-ia yang model:
<sync-from xmlns="http://cisco.com/yang/cisco-ia"/>
Further Problem Description
When the candidate is being used, we have a process that merges the candidate config with the running config. If someone makes a change to the running config, then it is automatically sync to the candidate. If someone makes a change to the candidate then does a commit, the change is synced to the running. Degraded mode occurs, when someone makes a change to the running but for some reason confd / syncfd are not able to merge that change to the candidate