Skip to content
Snippets Groups Projects
Commit b6e7ee46 authored by David José Araújo Ferreira's avatar David José Araújo Ferreira
Browse files

Corrected

Limit the static configuration of devices

README added

SRL cli configs
parent 86da281e
No related branches found
No related tags found
2 merge requests!294Release TeraFlowSDN 4.0,!236Fixing containerlab hackfest example
# ContainerLab
The setup consists of a management network for configuring and managing nodes.
srl1 and srl2 are interconnected.
client1 is connected to srl1 and client2 to srl2.
Routing between client1 and client2 is set up via the Nokia SR Linux nodes.
## Management Network
Name: mgmt-net
Subnet: 172.100.100.0/24
## Node Kinds
Nokia SR Linux: Image ghcr.io/nokia/srlinux:23.10.3
Linux: Image ghcr.io/hellt/network-multitool
## Nodes
### Nokia SR Linux
- Type: ixr6
- CPU: 0.5
- Memory: 2GB
- Management IP: 172.100.100.101
The provided SR Linux CLI commands in the _srl.cli_ enables system management and configures the GNMI server with OpenConfig models.
### Linux
Assigns IP 172.16.1.10/24 to eth1 and adds route to 172.16.2.0/24 via 172.16.1.1
In this topology file, the clients are pre-configured with the respectivly IP addresses in their interfaces and routes in their IP tables.
### Links
- Connect srl1:e1-1 to srl2:e1-1
- Connect client1:eth1 to srl1:e1-2
- Connect client2:eth1 to srl2:e1-2
\ No newline at end of file
set / system management openconfig admin-state enable
set / system gnmi-server network-instance mgmt yang-models openconfig
\ No newline at end of file
set / interface ethernet-1/2 admin-state enable
set / interface ethernet-1/2 subinterface 0 ipv4 admin-state enable
set / interface ethernet-1/2 subinterface 0 ipv4 address 172.16.1.1/24
set / interface ethernet-1/1 admin-state enable
set / interface ethernet-1/1 subinterface 0 ipv4 admin-state enable
set / interface ethernet-1/1 subinterface 0 ipv4 address 172.0.0.1/30
set / network-instance default interface ethernet-1/1.0
set / network-instance default interface ethernet-1/2.0
set / network-instance default next-hop-groups group group1 nexthop 1 ip-address 172.0.0.2 admin-state enable
set / network-instance default static-routes route 172.16.2.0/24 next-hop-group group1 admin-state enable
set / system management openconfig admin-state enable
set / system gnmi-server network-instance mgmt yang-models openconfig
set / interface ethernet-1/2 admin-state enable
set / interface ethernet-1/2 subinterface 0 ipv4 admin-state enable
set / interface ethernet-1/2 subinterface 0 ipv4 address 172.16.2.1/24
set / interface ethernet-1/1 admin-state enable
set / interface ethernet-1/1 subinterface 0 ipv4 admin-state enable
set / interface ethernet-1/1 subinterface 0 ipv4 address 172.0.0.2/30
set / network-instance default interface ethernet-1/1.0
set / network-instance default interface ethernet-1/2.0
set / network-instance default next-hop-groups group group1 nexthop 1 ip-address 172.0.0.1 admin-state enable
set / network-instance default static-routes route 172.16.1.0/24 next-hop-group group1 admin-state enable
set / system management openconfig admin-state enable
set / system gnmi-server network-instance mgmt yang-models openconfig
......@@ -33,14 +33,14 @@ topology:
cpu: 0.5
memory: 2GB
mgmt-ipv4: 172.100.100.101
startup-config: srl1.cli
startup-config: srl.cli
srl2:
kind: nokia_srlinux
type: ixr6
cpu: 0.5
memory: 2GB
mgmt-ipv4: 172.100.100.102
startup-config: srl2.cli
startup-config: srl.cli
client1:
kind: linux
cpu: 0.1
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment