This articles describes the solution for the issue of not being able to add a device/cluster to the Security Director Cloud. It fails with the error message:
Reason: Sync Config : rpc error: code = Unknown desc = referenced resource not found, referrer:NetworkInstance[name=test-1], referenced resource:Interface[name=reth1]/Subinterface[name=200]
In this example, the issue here is for the network instance test-1 which has the reth1.200 interface assigned to it.
Check the device config to confirm if the configuration for the reth1.200 interface is configured on the device config.
It should contain the following:
set routing-instances test-1 interface reth1.200 set interface reth1 unit 200 family inet address x.x.x.x/x
If the interface configuration is missing, then the commit will work at the device level, but when onboarding the device to the SD Cloud, the reference for the reth1.200 will not be found by SDC and hence the device onboarding will fail.
Either add the interface configuration at the device level or delete the routing-instance configuration from the device CLI and commit.
Once done, please delete the current entry for the device from the SD Cloud and add the device again.Similarly, the configuration needs to be checked for the error message that is seen on the SDC and need to check if all the references in the configuration are configured as expected.