Users may find that the AppNeta CPE40 container on Arista switches only connects via the default VRF.
In environments where monitoring is required via a non-default VRF (e.g., a dedicated 'management' or 'data' VRF), the container fails to see the necessary interfaces, routes, or DNS settings associated with that specific VRF.
By default, the cpe40-Arista container is deployed within the default network namespace.
Standard Docker configurations do not automatically bridge into Arista-specific VRF namespaces without manual overrides in the container startup options.
To deploy the CPE40 container within a non-default VRF, follow these configuration changes during the initial setup or by modifying the existing container configuration on the Arista switch.
Link to main deployment steps: https://techdocs.broadcom.com/us/en/ca-enterprise-software/it-operations-management/appneta/GA/appliance-overview/arista-cpe40-mp-intro/arista-cpe40-setup/arista-cpe40-mp-setup-cpe-arista.html
management).In the options directive of the Arista container configuration, add the following arguments to allow the container to interact with the host's network namespaces:
Review this command before running it.
--user root --privileged -v /var/run/netns:/var/run/netns:ro --entrypoint ip--user root and --privileged: Grants permissions to interact with network namespaces.-v /var/run/netns...: Mounts the host's namespaces as a read-only volume.--entrypoint ip: Overrides the default entrypoint to allow manual namespace execution.Add or update the command directive to wrap the standard entrypoint script within the specific VRF namespace.
Note: Arista prefixes VRF namespaces with ns-. If your VRF is named management, the namespace is ns-management.
Review this command before running it.
command netns exec ns-<VRF_NAME> /sbin/entrypoint.sh(Example for management VRF: command netns exec ns-management /sbin/entrypoint.sh)
Follow the rest of the installation steps as normal. The CMP should come up as normal and report only the interfaces that are present in the management VRF.
Sample Configuration:
container-manager
container cpe40-arista-vrf
image pathview-cpe:[VERSION]
no shutdown
memory 1200m
options --restart=always --user root --privileged -v /var/run/netns:/var/run/netns:ro --entrypoint ip -e APPNETA_SERVER_ADDRESS=<CUSTOMER_URL> -e APPNETA_SERVER_KEY=<SERVER_KEY> -e APPNETA_TENANT_ID=<TENANT_ID> -e APPNETA_DEVICE_KEY=<DEVICE_KEY> --network host
command netns exec ns-[VRF_NAME] /sbin/entrypoint.sh