srl-labs / sros-anysec-macsec-lab Goto Github PK
View Code? Open in Web Editor NEWThis is an ANYSec and MACSec demo using Nokia SROS vSIMs with SR-ISIS and Flex-Algo Slicing, gNMIc Streaming Telemetry and Python/Flask Automation.
This is an ANYSec and MACSec demo using Nokia SROS vSIMs with SR-ISIS and Flex-Algo Slicing, gNMIc Streaming Telemetry and Python/Flask Automation.
Embedded types can be referenced in the clab file as simple as
type: sr-1
There is a good amount of embedded types that we added to make sure that the most common platforms have a short type name.
The custom types are only meant to be used when additional mem/cpu is required or a specific mda/iom
My DHCP server uses 1.1.1.1 for the nameserver, so the setup-client7.sh script fails to install the necessary components because it can't resolve any dns. Would be better not to use routable address space in the topology.
ย
bash-5.0# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default 172.50.50.1 0.0.0.0 UG 0 0 0 eth0
1.1.1.0 * 255.255.255.0 U 0 0 0 eth3
172.50.50.0 * 255.255.255.0 U 0 0 0 eth0
192.168.1.0 * 255.255.255.0 U 0 0 0 eth1
192.168.2.0 * 255.255.255.0 U 0 0 0 eth2
192.168.3.0 1.1.1.1 255.255.255.0 UG 0 0 0 eth3
bash-5.0# hostname
client8
bash-5.0# ip a show eth3
231: eth3@if230: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 9500 qdisc noqueue state UP group default
link/ether aa:c1:ab:67:63:14 brd ff:ff:ff:ff:ff:ff link-netnsid 1
inet 1.1.1.8/24 scope global eth3
valid_lft forever preferred_lft forever
inet6 fe80::a8c1:abff:fe67:6314/64 scope link
valid_lft forever preferred_lft forever
bash-5.0#
Client7 is also acting as the automation node. It uses the "standard" multitool image and installs all other required automation tools when the lab is deployed. This requires Internet connection and could lead to issues when proxy or frw are used.
Using a new image with the automation tools already installed will simplify and avoid potential issues. This could be also useful in the future for other Labs.
Following tasks should be completed:
instead of multiple exec calls
My machine needs to pass through a proxy to reach internet, so I passed proxy env vars to grafana node so it can download the plugins set in GF_INSTALL_PLUGINS:
no_proxy=localhost,172.50.50.0/24
https_proxy=http://proxy.local:8080/
HTTPS_PROXY=http://proxy.local:8080/
HTTP_PROXY=http://proxy.local:8080/
http_proxy=http://proxy.local:8080/
However, grafana is not ignoring the proxy when trying to reach internal node prometheus, therefore breaking the scenario. As workaround, instead of passing proxies to grafana, created a container with nginx hosting the plugin files.
httprepo:
kind: linux
image: nginx
mgmt-ipv4: 172.50.50.20
binds:
- ./httprepo/:/usr/share/nginx/html:ro
group: "10"
grafana:
(...)
GF_INSTALL_PLUGINS: http://httprepo/agenty-flowcharting-panel-1.0.0d.220606199-SNAPSHOT.zip;agenty-flowcharting-panel,http://httprepo/cloudspout-button-panel.zip;cloudspout-button-panel
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.