summaryrefslogtreecommitdiff
path: root/src/conf_mode/vpp.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/conf_mode/vpp.py')
-rwxr-xr-xsrc/conf_mode/vpp.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/conf_mode/vpp.py b/src/conf_mode/vpp.py
index aa6c14e89..d541e52ba 100755
--- a/src/conf_mode/vpp.py
+++ b/src/conf_mode/vpp.py
@@ -28,8 +28,8 @@ from vyos.template import render
from vyos.xml import defaults
from vyos import ConfigError
-from vyos import vpp
from vyos import airbag
+from vyos.vpp import VPPControl
airbag.enable()
@@ -124,10 +124,11 @@ def apply(config):
call('systemctl daemon-reload')
call('sudo sysctl -w vm.nr_hugepages=4096')
+ vpp_control = VPPControl()
for iface, _ in config['interface'].items():
# Create lcp
if iface not in Section.interfaces():
- vpp.lcp_create_host_interface(iface)
+ vpp_control.lcp_pair_add(iface, iface)
# update interface config
#e = EthernetIf(iface)