Giter Site home page Giter Site logo

srl-labs / sros-anysec-macsec-lab Goto Github PK

View Code? Open in Web Editor NEW
13.0 6.0 3.0 3.86 MB

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.

Shell 12.61% Python 55.69% HTML 17.14% JavaScript 14.56%
anysec automation clab flask fp5 gnmic grafana macsec prometheus python

sros-anysec-macsec-lab's People

Contributors

alfilipe avatar hellt avatar mairp avatar tiago-amado avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

sros-anysec-macsec-lab's Issues

1.1.1.0/24 used in topology breaks resolution for setup-client7.sh

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#

Create a new Multitool image with gnmic, python3 and flask already installed to be used by the Automation node

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.

grafana docker image breaks when using proxys

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.