项目作者: opennms-forge

项目描述 :
🐳 OpenNMS demo environment with Docker and Docker Compose
高级语言: Shell
项目地址: git://github.com/opennms-forge/opennms-demo.git
创建时间: 2017-03-14T08:25:52Z
项目社区:https://github.com/opennms-forge/opennms-demo

开源协议:GNU Affero General Public License v3.0

下载


OpenNMS Horizon Demo

OpenNMS Horizoon demo environment with Docker and Docker Compose.

Usage

Initialize the environment.

  1. git clone https://github.com/opennms-forge/opennms-demo.git
  2. cd opennms-demo
  3. docker-compose up -d

HINT: By default OpenNMS Horizon uses the floating tag latest with the current stable release from DockerHub.

Bootstrap inventory and custom topology

To feed the demo environment with data you can use the demo-data.sh script which does following things:

  • Creates a foreign-source without detectors
  • Creates a requisition with all nodes from the demo environment
  • Uploades a GraphML topology which represents the network topology named OpenNMS Demo

Usage:

  1. cd setup
  2. ./demo-data.sh

Enabling LLDP

Forwarding LLDPDU is not enabled by default on Linux bridges.
To enable LLDPDU forwarding it is required to change the group_fwd_mask for a given bridge.

Using docker-compose up -d will create two additional bridges from this repository.
One bridge simulating a local area network and second bridge for a isolated network in a remote office.

To enable LLDPDU forwarding it is required to identify the bridge on the docker host system with:

  1. docker network ls
  2. a0713f06e511 lldp_branch bridge local
  3. 2bde8ffcb81b lldp_default bridge local
  4. bb562d6d9e30 lldp_local bridge local

The NETWORK ID is part of the bridge name on the host system.
To enable LLDPDU forwarding for the local network a bridge is created.

  1. brctl show | grep bb562d6d9e30
  2. br-bb562d6d9e30 8000.0242deaee63c no veth067f1fa

The filter can be set with

  1. echo 16384 > /sys/class/net/br-bb562d6d9e30/bridge/group_fwd_mask

LLDPDU forwarding is now enabled and works immediately.