If the requirement was to send ICMP pings from the shell of a Versa CPE to a remote Versa CPE using their Transport-VR. Ie instead of eth0 as the default from shell , we can make Linux to use the Versa Transport-VR as the WAN exit.
Below should done along with the note stated or at the max for a VM testing purpose rather on Live production asks:
On the FlexVNF shell,
admin@Branch1:~$ sudo ip netns exec <Transport-VR-name> bash
root@Branch1:~# ping <ip-address>
Imp Note :
The above is not work wide customer distribution and with below added note that
We don’t recommend opening shells and changing to a different namespace.
Note that config changes may not work, if services restart then it will definitely not clean up name spaces. The system will be left in an invalid state. We don’t recommend changing namespaces and we won’t support from TAC Support for any issues arising from doing the above changes if done by customer for whatsoever need be.