If a VPP interface can’t be brought to its configured state during boot, the operator isn’t told which interface failed or why. The failure should be reported in the system log and in op-mode, with the interface name and the reason.
Current behaviour:
- The VPP config is rejected at boot (for example, a configured NIC is missing). The whole vpp node isn’t applied, which is fine, but:
- The error (Error: eth1 interface does not exist in the system) is lost, because the boot config loader drops the commit output when the commit fails.
- show interfaces vpp prints VPP interfaces not configured.
- vpp.py fails during initialisation. The logged error doesn’t name the interface. Non-API errors appear only as a traceback, and the rollback doesn’t run. For example, lcp_pair_add() can fail with AttributeError when the interface isn’t in VPP.
- An interface ends up in the wrong state after boot (for example, a VLAN admin down although it isn’t disabled). show interfaces vpp shows only down, and nothing is logged.
Also worth fixing while working on this:
If VPP isn’t running, show interfaces vpp waits about 5 seconds and fails with a traceback. It should print a clear message instead.