Skip to content

Commit

Permalink
T7076: VPP check ethernet interface exist before adding to vpp
Browse files Browse the repository at this point in the history
  • Loading branch information
natali-rs1985 committed Jan 28, 2025
1 parent dfda2c7 commit f94b7e5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/conf_mode/vpp.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
from vyos.config import Config
from vyos.configdep import set_dependents, call_dependents
from vyos.configdict import node_changed, leaf_node_changed
from vyos.configverify import verify_interface_exists
from vyos.utils.cpu import get_core_count
from vyos.ifconfig import Section
from vyos.template import render
Expand Down Expand Up @@ -136,6 +137,9 @@ def get_config(config=None):
if 'settings' in config:
if 'interface' in config['settings']:
for iface, iface_config in config['settings']['interface'].items():
# verify interface exists
verify_interface_exists(config, iface)

# Driver must be configured to continue
if 'driver' not in iface_config:
raise ConfigError(
Expand Down

0 comments on commit f94b7e5

Please sign in to comment.