From 6472e5e412f4fd5adf519601fdd6dfd6ad2e86d7 Mon Sep 17 00:00:00 2001 From: WeebDataHoarder <57538841+WeebDataHoarder@users.noreply.github.com> Date: Tue, 16 Nov 2021 16:26:33 +0100 Subject: [PATCH] Fix switch configuration setting --- config.example.yml | 2 +- src/fm10k/FM10K.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/config.example.yml b/config.example.yml index 180dcfe..79b0361 100644 --- a/config.example.yml +++ b/config.example.yml @@ -45,7 +45,7 @@ switch: #cpu_port: # shared (default), per_vlan, multiple (not supported?) - stp_mode: shared + #stp_mode: shared lag: # static (default, static groups, discard), dynamic (pass to application) diff --git a/src/fm10k/FM10K.cpp b/src/fm10k/FM10K.cpp index 115b660..021fc85 100644 --- a/src/fm10k/FM10K.cpp +++ b/src/fm10k/FM10K.cpp @@ -766,7 +766,7 @@ bool FM10K::FM10K::initialize(const ryml::Tree& tree) const { }); } - if(!root["switch"].is_seed() && root["switch"].is_seq()){ + if(!root["switch"].is_seed() && root["switch"].is_map()){ if(!root["switch"]["attributes"].is_seed() && root["switch"]["attributes"].is_map()){ for(auto attr : root["switch"]["attributes"]){