Skip to content
Amy Buck edited this page Jan 22, 2019 · 4 revisions

OPX currently uses the Linux kernel’s network namespace to create VRFs. As a result of this approach, isolation extends beyond Layer 3 (L3). Using namespace also isolates interfaces to a particular namespace - separate processes may need to be created for monitoring services so they monitor their own individual namespace.

Usage

There are two ways to setup VRFs in OPX. The recommended way is to use the opx_config_vrf command, but there is also a way to do it via CPS commands.

VRF configuration script

Setup VRFs using cps_config_vrf.py

root@OPX:~# opx-config-vrf --create --vrf blue
Configuration Successful...

Query VRF info

root@OPX:~# opx-config-vrf --show
Key: 1.292.44.2883617.2883612.2883613.
ni/network-instances/network-instance/name = blue
Key: 1.292.44.2883617.2883612.2883613.
ni/network-instances/network-instance/name = default

Create additional VRF

root@OPX:~# opx-config-vrf --create --vrf red
Configuration Successful...

Query VRF info

root@OPX:~# opx-config-vrf --show
Key: 1.292.44.2883617.2883612.2883613.
ni/network-instances/network-instance/name = red
Key: 1.292.44.2883617.2883612.2883613.
ni/network-instances/network-instance/name = blue
Key: 1.292.44.2883617.2883612.2883613.
ni/network-instances/network-instance/name = default
root@OPX:~#

CPS commands

Clone this wiki locally