diff options
author | Viacheslav Hletenko <v.gletenko@vyos.io> | 2023-06-27 19:08:15 +0300 |
---|---|---|
committer | Viacheslav Hletenko <v.gletenko@vyos.io> | 2023-06-27 16:17:44 +0000 |
commit | bc92f6d088105d2ede94ef7471fd987a0479faff (patch) | |
tree | 7f5c8a26ac7750853558839b4b671da0a302b38c /src/conf_mode/vpp.py | |
parent | 8f402c2ba47ed3ccbf94f9f037ec6e18d6b975ea (diff) | |
parent | e30c7fe6a42cd76427432b70a5b629c32be22c47 (diff) | |
download | vyos-1x-bc92f6d088105d2ede94ef7471fd987a0479faff.tar.gz vyos-1x-bc92f6d088105d2ede94ef7471fd987a0479faff.zip |
VPP: T1797: Replaced CLI with API
Diffstat (limited to 'src/conf_mode/vpp.py')
-rwxr-xr-x | src/conf_mode/vpp.py | 5 |
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) |