Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initial VLAN implementation on IOL/IOLL2 #1390

Merged
merged 2 commits into from
Oct 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions docs/caveats.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,8 @@ Host 192.168.121.*
* Cisco IOL and IOL L2 images work only as containers created with Roman Dodin's fork of [vrnetlab](https://github.com/hellt/vrnetlab/).
* You need Containerlab 0.58.0 or greater to run these images.
* You cannot use VLANs 1002 through 1005 with Cisco IOL layer-2 image
* Bridging (bridge groups) does not work in Cisco IOL (router) image.
* Containerlab 0.58.0 sets the same base MAC address for all IOL nodes, resulting in duplicate spanning tree system IDs. Lab topologies with more than one IOL node might not work correctly.

See also [common Cisco IOS](caveats-iosv) caveats.

Expand Down
1 change: 1 addition & 0 deletions docs/module/vlan.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ VLANs are supported on these platforms:
| Aruba AOS-CX | ✅ | ✅ | ❌ | ✅ | ✅ |
| Cisco IOSv | ✅ | ✅ | ✅ | ✅ | ✅ |
| Cisco IOSvL2 | ✅ | ✅ | ❌ | ✅ | ✅ |
| Cisco IOL L2 [❗](caveats-iol) | ✅ | ✅ | ❌ | ❌ | ✅ |
| Cisco Catalyst 8000v | ✅ | ✅ | ❌[❗](caveats-csr) | ✅ | ✅ |
| Cisco CSR 1000v | ✅ | ✅ | ❌[❗](caveats-csr) | ✅ | ✅ |
| Cisco Nexus OS | ✅ | ✅ | ✅ | ✅ | ✅ |
Expand Down
8 changes: 8 additions & 0 deletions netsim/ansible/templates/initial/iol.vlan.j2
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
!
bridge irb
!
{% for vname,vdata in vlans.items() %}
bridge {{ vdata.bridge_group }} protocol vlan-bridge
bridge {{ vdata.bridge_group }} route ip
!
{% endfor +%}
1 change: 1 addition & 0 deletions netsim/ansible/templates/initial/ioll2.vlan.j2
2 changes: 1 addition & 1 deletion netsim/ansible/templates/initial/ios.j2
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ ipv6 unicast-routing
!
{% endif %}
{% if vlans is defined %}
{% include netlab_device_type ~ '.vlan.j2' +%}
{% include [ netlab_device_type ~ '.vlan.j2', 'ios.vlan.j2' ] +%}
!
{% endif %}
!
Expand Down
1 change: 1 addition & 0 deletions netsim/ansible/templates/vlan/ioll2.j2
1 change: 1 addition & 0 deletions netsim/devices/iol.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ clab:

features:
sr: true
vlan: false

libvirt:
image:
Expand Down