-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #13361 from LabNConsulting/chopps/munet-cfgopt-and…
…-native cfgopt in munet and native config support and example
- Loading branch information
Showing
20 changed files
with
215 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
version: 1 | ||
topology: | ||
ipv6-enable: true | ||
networks-autonumber: true | ||
networks: | ||
- name: net1 | ||
- name: net2 | ||
nodes: | ||
- name: r1 | ||
kind: frr | ||
connections: ["net1"] | ||
- name: r2 | ||
kind: frr | ||
connections: ["net1", "net2"] | ||
- name: r3 | ||
kind: frr | ||
connections: ["net2"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
zebra=1 | ||
staticd=1 | ||
vtysh_enable=1 | ||
watchfrr_enable=1 | ||
zebra_options="-d -F traditional --log=file:/var/log/frr/zebra.log" | ||
staticd_options="-d -F traditional --log=file:/var/log/frr/staticd.log" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
log file /var/log/frr/frr.log | ||
service integrated-vtysh-config | ||
|
||
interface eth0 | ||
ip address 10.0.1.1/24 | ||
|
||
ip route 10.0.0.0/8 blackhole |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
service integrated-vtysh-config |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
zebra=1 | ||
staticd=1 | ||
vtysh_enable=1 | ||
watchfrr_enable=1 | ||
zebra_options="-d -F traditional --log=file:/var/log/frr/zebra.log" | ||
staticd_options="-d -F traditional --log=file:/var/log/frr/staticd.log" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
log file /var/log/frr/frr.log | ||
service integrated-vtysh-config | ||
|
||
interface eth0 | ||
ip address 10.0.1.2/24 | ||
|
||
interface eth1 | ||
ip address 10.0.2.2/24 | ||
|
||
ip route 10.0.0.0/8 blackhole |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
service integrated-vtysh-config |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
zebra=1 | ||
staticd=1 | ||
vtysh_enable=1 | ||
watchfrr_enable=1 | ||
zebra_options="-d -F traditional --log=file:/var/log/frr/zebra.log" | ||
staticd_options="-d -F traditional --log=file:/var/log/frr/staticd.log" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
log file /var/log/frr/frr.log | ||
service integrated-vtysh-config | ||
|
||
interface eth0 | ||
ip address 10.0.2.3/24 | ||
|
||
ip route 10.0.0.0/8 blackhole |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
service integrated-vtysh-config |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# -*- coding: utf-8 eval: (blacken-mode 1) -*- | ||
# SPDX-License-Identifier: GPL-2.0-or-later | ||
# | ||
# April 23 2023, Christian Hopps <chopps@labn.net> | ||
# | ||
# Copyright (c) 2023, LabN Consulting, L.L.C. | ||
# | ||
async def test_native_test(unet): | ||
o = unet.hosts["r1"].cmd_nostatus("ip addr") | ||
print(o) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
version: 1 | ||
kinds: | ||
- name: frr | ||
cmd: | | ||
chown frr:frr -R /var/run/frr | ||
chown frr:frr -R /var/log/frr | ||
/usr/lib/frr/frrinit.sh start | ||
tail -F /var/log/frr/frr.log | ||
cleanup-cmd: | | ||
/usr/lib/frr/frrinit.sh stop | ||
volumes: | ||
- "./%NAME%:/etc/frr" | ||
- "%RUNDIR%/var.log.frr:/var/log/frr" | ||
- "%RUNDIR%/var.run.frr:/var/run/frr" | ||
cap-add: | ||
- SYS_ADMIN | ||
- AUDIT_WRITE | ||
merge: ["volumes"] | ||
cli: | ||
commands: | ||
- name: "" | ||
exec: "vtysh -c '{}'" | ||
format: "[ROUTER ...] COMMAND" | ||
help: "execute vtysh COMMAND on the router[s]" | ||
kinds: ["frr"] | ||
- name: "vtysh" | ||
exec: "/usr/bin/vtysh" | ||
format: "vtysh ROUTER [ROUTER ...]" | ||
new-window: true | ||
kinds: ["frr"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.