After establishing IKEv2 connection and creating ipsec0 interface, this interface is not present in vpp_api_test -> sw_interface_dump.
Thus some KW cannot get the right index.