Symptom
In mixed mode with both feature analytics and netflow enabled if geneve enable is part of the configuration, then in show run the output may be outside analytics submode.
Conditions
An example of this issue being hit is given below where geneve enable is configured under analytics submode but in show run it is outside analytics submode. This will cause config replace to fail with this configuration as this is an invalid configuration. If reload ascii is done with this config, the config will be missing after reload.
switch(config-analytics)# show run analytics
!Command: show running-config analytics
!Running configuration last done at: Wed Jan 17 03:53:00 2024
!Time: Wed Jan 17 03:53:01 2024
version 10.4(2) Bios:version 05.51
feature netflow
feature analytics
geneve enable
analytics
Workaround
In mixed mode with both feature analytics and netflow enabled if geneve enable is coming outside analytics submode, then config replace and reload ascii will have this config failing.
Remove geneve enable from the configuration and re-enable after config replace.
If geneve enable is missing in configuration after reload ascii, then add geneve enable under analytics submode after reload ascii.
We can also use "no feature analytics" to clear the configuration completely and reapply post reload.
Further Problem Description