srl-labs / containerlab

container-based networking labs
https://containerlab.dev
BSD 3-Clause "New" or "Revised" License
1.52k stars 261 forks source link

Help with openvswitch #1807

Closed eayetsi closed 9 months ago

eayetsi commented 9 months ago

Hello All,

Please I need help in creating openvswitch for containerlab. I created one and when I reference it in the yaml topology, I get below error. INFO[0000] Containerlab v0.49.0 started INFO[0000] Parsing & checking topology file: ceos-test.yml _Error: interface vSwitch:port1 is defined via topology but does already exist: interface vSwitch:port2 is defined via topology but does already exist: _

Please any help will be much appreciated. Thanks a lot

eayetsi commented 9 months ago

Below is my ovs details

labserver@lab:~/clab$ sudo ovs-vsctl show db49f99e-7da0-49fc-909b-ff6320e8d9af Bridge br-bridge Port brp1 Interface brp1 type: internal Port br-bridge Interface br-bridge type: internal Port brp2 Interface brp2 type: internal ovs_version: "2.17.8

sacckth commented 9 months ago

Below is my ovs details

labserver@lab:~/clab$ sudo ovs-vsctl show db49f99e-7da0-49fc-909b-ff6320e8d9af Bridge br-bridge Port brp1 Interface brp1 type: internal Port br-bridge Interface br-bridge type: internal Port brp2 Interface brp2 type: internal ovs_version: "2.17.8 Can you please share you full YAML topology?

eayetsi commented 9 months ago

Please find below the full YAML topology as requested.

Arista Ceos with vSwitch test

name: ceos-test prefix: ""

topology: nodes: R1: kind: ceos image: ceos:4.30.3M R2: kind: ceos image: ceos:4.30.3M br-bridge: kind: ovs-bridge

links:

eayetsi commented 9 months ago

Hello All,

I have been able to find my way out. Thanks a lot