Add device-type, to ensure that plan --novpp generates MTU statements

This commit is contained in:
Pim van Pelt
2023-05-25 16:54:01 +02:00
parent 3249432681
commit cf5f1f0944
4 changed files with 12 additions and 1 deletions

View File

@ -77,7 +77,8 @@ class Validator:
The purpose is to ensure that the YAML file is both syntactically correct,
which is ensured by Yamale, and semantically correct, which is ensured by a set
of built-in validators, and user-added validators (see the add_validator() method)."""
of built-in validators, and user-added validators (see the add_validator() method).
"""
def __init__(self, schema):
self.logger = logging.getLogger("vppcfg.config")

View File

@ -7,13 +7,16 @@ bondethernets:
interfaces:
GigabitEthernet3/0/0:
device-type: dpdk
mtu: 9000
description: "LAG #1"
GigabitEthernet3/0/1:
device-type: dpdk
mtu: 9000
description: "LAG #2"
HundredGigabitEthernet12/0/0:
device-type: dpdk
lcp: "ice12-0-0"
mac: f2:01:00:12:00:00
mtu: 9000
@ -34,6 +37,7 @@ interfaces:
exact-match: True
HundredGigabitEthernet12/0/1:
device-type: dpdk
mtu: 2000
description: "Bridged"