From b37884b2141afb85d79ea3cf8dd8fe7565475618 Mon Sep 17 00:00:00 2001 From: Hubert Gee Date: Fri, 21 Jun 2024 12:54:45 -0700 Subject: [PATCH] Work ci automation (#7) * Updates * Added new testbed folders Signed-off-by: Hubert Gee --- .../testbed_config/hw/basic_agg1/agg1/DHCP | 6 + .../hw/basic_agg1/agg1/HOSTNAME | 1 + .../testbed_config/hw/basic_agg1/agg1/HOSTS | 5 + .../hw/basic_agg1/agg1/KEEPALIVED_CONF | 0 .../hw/basic_agg1/agg1/NETWORK_INTERFACES | 16 ++ .../testbed_config/hw/basic_agg1/agg1/NTP | 59 +++++ .../hw/basic_agg1/agg1/QUAGGA_CONFIG | 11 + .../hw/basic_agg1/agg1/QUAGGA_DAEMONS | 30 +++ .../hw/basic_agg1/agg1/QUAGGA_VTYSH | 3 + .../testbed_config/hw/basic_agg1/agg1/RESOLV | 1 + .../hw/basic_agg1/agg1/SSHD_CONF | 88 ++++++++ .../testbed_config/hw/basic_agg1/testbed.json | 60 +++++ .../testbed_config/hw/basic_agg2/agg2/DHCP | 6 + .../hw/basic_agg2/agg2/HOSTNAME | 1 + .../testbed_config/hw/basic_agg2/agg2/HOSTS | 5 + .../hw/basic_agg2/agg2/KEEPALIVED_CONF | 0 .../hw/basic_agg2/agg2/NETWORK_INTERFACES | 16 ++ .../testbed_config/hw/basic_agg2/agg2/NTP | 59 +++++ .../hw/basic_agg2/agg2/QUAGGA_CONFIG | 11 + .../hw/basic_agg2/agg2/QUAGGA_DAEMONS | 30 +++ .../hw/basic_agg2/agg2/QUAGGA_VTYSH | 3 + .../testbed_config/hw/basic_agg2/agg2/RESOLV | 1 + .../hw/basic_agg2/agg2/SSHD_CONF | 88 ++++++++ .../testbed_config/hw/basic_agg2/testbed.json | 60 +++++ .../testbed_config/hw/basic_dist1/dist1/DHCP | 6 + .../hw/basic_dist1/dist1/HOSTNAME | 1 + .../testbed_config/hw/basic_dist1/dist1/HOSTS | 5 + .../hw/basic_dist1/dist1/KEEPALIVED_CONF | 0 .../hw/basic_dist1/dist1/NETWORK_INTERFACES | 16 ++ .../testbed_config/hw/basic_dist1/dist1/NTP | 59 +++++ .../hw/basic_dist1/dist1/QUAGGA_CONFIG | 11 + .../hw/basic_dist1/dist1/QUAGGA_DAEMONS | 30 +++ .../hw/basic_dist1/dist1/QUAGGA_VTYSH | 3 + .../hw/basic_dist1/dist1/RESOLV | 1 + .../hw/basic_dist1/dist1/SSHD_CONF | 88 ++++++++ .../hw/basic_dist1/testbed.json | 60 +++++ .../hw/basic_infra1/infra1/DHCP | 6 + .../hw/basic_infra1/infra1/HOSTNAME | 1 + .../hw/basic_infra1/infra1/HOSTS | 5 + .../hw/basic_infra1/infra1/KEEPALIVED_CONF | 0 .../hw/basic_infra1/infra1/NETWORK_INTERFACES | 16 ++ .../testbed_config/hw/basic_infra1/infra1/NTP | 59 +++++ .../hw/basic_infra1/infra1/QUAGGA_CONFIG | 11 + .../hw/basic_infra1/infra1/QUAGGA_DAEMONS | 30 +++ .../hw/basic_infra1/infra1/QUAGGA_VTYSH | 3 + .../hw/basic_infra1/infra1/RESOLV | 1 + .../hw/basic_infra1/infra1/SSHD_CONF | 88 ++++++++ .../hw/basic_infra1/testbed.json | 59 +++++ .../hw/basic_infra1/testbed_dentvm.json | 45 ++++ .../hw/basic_infra1/testbed_vm.json | 48 ++++ .../hw/basic_infra2/infra2/DHCP | 6 + .../hw/basic_infra2/infra2/HOSTNAME | 1 + .../hw/basic_infra2/infra2/HOSTS | 5 + .../hw/basic_infra2/infra2/KEEPALIVED_CONF | 0 .../hw/basic_infra2/infra2/NETWORK_INTERFACES | 16 ++ .../testbed_config/hw/basic_infra2/infra2/NTP | 59 +++++ .../hw/basic_infra2/infra2/QUAGGA_CONFIG | 11 + .../hw/basic_infra2/infra2/QUAGGA_DAEMONS | 30 +++ .../hw/basic_infra2/infra2/QUAGGA_VTYSH | 3 + .../hw/basic_infra2/infra2/RESOLV | 1 + .../hw/basic_infra2/infra2/SSHD_CONF | 88 ++++++++ .../hw/basic_infra2/testbed.json | 60 +++++ .../testbed_config/hw/sit/README.md | 0 .../testbed_config/hw/sit/agg1/DHCP | 6 + .../testbed_config/hw/sit/agg1/HOSTNAME | 1 + .../testbed_config/hw/sit/agg1/HOSTS | 5 + .../hw/sit/agg1/NETWORK_INTERFACES | 51 +++++ .../testbed_config/hw/sit/agg1/NTP | 60 +++++ .../testbed_config/hw/sit/agg1/QUAGGA_CONFIG | 57 +++++ .../testbed_config/hw/sit/agg1/QUAGGA_DAEMONS | 30 +++ .../testbed_config/hw/sit/agg1/QUAGGA_VTYSH | 3 + .../testbed_config/hw/sit/agg1/RESOLV | 1 + .../testbed_config/hw/sit/agg1/SSHD_CONF | 88 ++++++++ .../testbed_config/hw/sit/agg2/DHCP | 6 + .../testbed_config/hw/sit/agg2/HOSTNAME | 1 + .../testbed_config/hw/sit/agg2/HOSTS | 5 + .../hw/sit/agg2/NETWORK_INTERFACES | 41 ++++ .../testbed_config/hw/sit/agg2/NTP | 60 +++++ .../testbed_config/hw/sit/agg2/QUAGGA_CONFIG | 57 +++++ .../testbed_config/hw/sit/agg2/QUAGGA_DAEMONS | 30 +++ .../testbed_config/hw/sit/agg2/QUAGGA_VTYSH | 3 + .../testbed_config/hw/sit/agg2/RESOLV | 1 + .../testbed_config/hw/sit/agg2/SSHD_CONF | 88 ++++++++ .../testbed_config/hw/sit/dist1/DHCP | 6 + .../testbed_config/hw/sit/dist1/HOSTNAME | 1 + .../testbed_config/hw/sit/dist1/HOSTS | 5 + .../hw/sit/dist1/NETWORK_INTERFACES | 46 ++++ .../testbed_config/hw/sit/dist1/NTP | 60 +++++ .../testbed_config/hw/sit/dist1/QUAGGA_CONFIG | 50 +++++ .../hw/sit/dist1/QUAGGA_DAEMONS | 30 +++ .../testbed_config/hw/sit/dist1/QUAGGA_VTYSH | 3 + .../testbed_config/hw/sit/dist1/RESOLV | 1 + .../testbed_config/hw/sit/dist1/SSHD_CONF | 88 ++++++++ .../testbed_config/hw/sit/infra1/DHCP | 6 + .../testbed_config/hw/sit/infra1/HOSTNAME | 1 + .../testbed_config/hw/sit/infra1/HOSTS | 5 + .../hw/sit/infra1/KEEPALIVED_CONF | 37 +++ .../hw/sit/infra1/NETWORK_INTERFACES | 90 ++++++++ .../testbed_config/hw/sit/infra1/NTP | 60 +++++ .../hw/sit/infra1/QUAGGA_CONFIG | 42 ++++ .../hw/sit/infra1/QUAGGA_DAEMONS | 30 +++ .../testbed_config/hw/sit/infra1/QUAGGA_VTYSH | 3 + .../testbed_config/hw/sit/infra1/RESOLV | 1 + .../testbed_config/hw/sit/infra1/SSHD_CONF | 88 ++++++++ .../testbed_config/hw/sit/infra2/DHCP | 6 + .../testbed_config/hw/sit/infra2/HOSTNAME | 1 + .../testbed_config/hw/sit/infra2/HOSTS | 5 + .../hw/sit/infra2/KEEPALIVED_CONF | 37 +++ .../hw/sit/infra2/NETWORK_INTERFACES | 102 +++++++++ .../testbed_config/hw/sit/infra2/NTP | 60 +++++ .../hw/sit/infra2/QUAGGA_CONFIG | 42 ++++ .../hw/sit/infra2/QUAGGA_DAEMONS | 30 +++ .../testbed_config/hw/sit/infra2/QUAGGA_VTYSH | 3 + .../testbed_config/hw/sit/infra2/RESOLV | 1 + .../testbed_config/hw/sit/infra2/SSHD_CONF | 88 ++++++++ .../testbed_config/hw/sit/testbed.json | 211 ++++++++++++++++++ .../testbed_config/vm/infra1_dvm/testbed.json | 60 +++++ .../testbed_config/vm/sit/infra1/DHCP | 6 + .../testbed_config/vm/sit/infra1/HOSTNAME | 1 + .../testbed_config/vm/sit/infra1/HOSTS | 5 + .../vm/sit/infra1/KEEPALIVED_CONF | 37 +++ .../vm/sit/infra1/NETWORK_INTERFACES | 84 +++++++ .../testbed_config/vm/sit/infra1/NTP | 60 +++++ .../vm/sit/infra1/QUAGGA_CONFIG | 42 ++++ .../vm/sit/infra1/QUAGGA_DAEMONS | 30 +++ .../testbed_config/vm/sit/infra1/QUAGGA_VTYSH | 3 + .../testbed_config/vm/sit/infra1/RESOLV | 1 + .../testbed_config/vm/sit/infra1/SSHD_CONF | 88 ++++++++ .../testbed_config/vm/sit/infra1_dvm/DHCP | 6 + .../testbed_config/vm/sit/infra1_dvm/HOSTNAME | 1 + .../testbed_config/vm/sit/infra1_dvm/HOSTS | 5 + .../vm/sit/infra1_dvm/KEEPALIVED_CONF | 37 +++ .../vm/sit/infra1_dvm/NETWORK_INTERFACES | 84 +++++++ .../testbed_config/vm/sit/infra1_dvm/NTP | 60 +++++ .../vm/sit/infra1_dvm/QUAGGA_CONFIG | 42 ++++ .../vm/sit/infra1_dvm/QUAGGA_DAEMONS | 30 +++ .../vm/sit/infra1_dvm/QUAGGA_VTYSH | 3 + .../testbed_config/vm/sit/infra1_dvm/RESOLV | 2 + .../vm/sit/infra1_dvm/SSHD_CONF | 88 ++++++++ .../testbed_config/vm/sit/testbed.json | 60 +++++ 140 files changed, 4160 insertions(+) create mode 100644 DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_agg1/agg1/DHCP create mode 100644 DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_agg1/agg1/HOSTNAME create mode 100644 DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_agg1/agg1/HOSTS create mode 100644 DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_agg1/agg1/KEEPALIVED_CONF create mode 100644 DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_agg1/agg1/NETWORK_INTERFACES create mode 100644 DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_agg1/agg1/NTP create mode 100644 DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_agg1/agg1/QUAGGA_CONFIG create mode 100644 DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_agg1/agg1/QUAGGA_DAEMONS create mode 100644 DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_agg1/agg1/QUAGGA_VTYSH create mode 100644 DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_agg1/agg1/RESOLV create mode 100644 DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_agg1/agg1/SSHD_CONF create mode 100644 DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_agg1/testbed.json create mode 100644 DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_agg2/agg2/DHCP create mode 100644 DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_agg2/agg2/HOSTNAME create mode 100644 DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_agg2/agg2/HOSTS create mode 100644 DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_agg2/agg2/KEEPALIVED_CONF create mode 100644 DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_agg2/agg2/NETWORK_INTERFACES create mode 100644 DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_agg2/agg2/NTP create mode 100644 DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_agg2/agg2/QUAGGA_CONFIG create mode 100644 DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_agg2/agg2/QUAGGA_DAEMONS create mode 100644 DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_agg2/agg2/QUAGGA_VTYSH create mode 100644 DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_agg2/agg2/RESOLV create mode 100644 DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_agg2/agg2/SSHD_CONF create mode 100644 DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_agg2/testbed.json create mode 100644 DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_dist1/dist1/DHCP create mode 100644 DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_dist1/dist1/HOSTNAME create mode 100644 DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_dist1/dist1/HOSTS create mode 100644 DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_dist1/dist1/KEEPALIVED_CONF create mode 100644 DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_dist1/dist1/NETWORK_INTERFACES create mode 100644 DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_dist1/dist1/NTP create mode 100644 DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_dist1/dist1/QUAGGA_CONFIG create mode 100644 DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_dist1/dist1/QUAGGA_DAEMONS create mode 100644 DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_dist1/dist1/QUAGGA_VTYSH create mode 100644 DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_dist1/dist1/RESOLV create mode 100644 DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_dist1/dist1/SSHD_CONF create mode 100644 DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_dist1/testbed.json create mode 100644 DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_infra1/infra1/DHCP create mode 100644 DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_infra1/infra1/HOSTNAME create mode 100644 DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_infra1/infra1/HOSTS create mode 100644 DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_infra1/infra1/KEEPALIVED_CONF create mode 100644 DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_infra1/infra1/NETWORK_INTERFACES create mode 100644 DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_infra1/infra1/NTP create mode 100644 DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_infra1/infra1/QUAGGA_CONFIG create mode 100644 DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_infra1/infra1/QUAGGA_DAEMONS create mode 100644 DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_infra1/infra1/QUAGGA_VTYSH create mode 100644 DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_infra1/infra1/RESOLV create mode 100644 DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_infra1/infra1/SSHD_CONF create mode 100644 DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_infra1/testbed.json create mode 100644 DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_infra1/testbed_dentvm.json create mode 100644 DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_infra1/testbed_vm.json create mode 100644 DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_infra2/infra2/DHCP create mode 100644 DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_infra2/infra2/HOSTNAME create mode 100644 DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_infra2/infra2/HOSTS create mode 100644 DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_infra2/infra2/KEEPALIVED_CONF create mode 100644 DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_infra2/infra2/NETWORK_INTERFACES create mode 100644 DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_infra2/infra2/NTP create mode 100644 DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_infra2/infra2/QUAGGA_CONFIG create mode 100644 DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_infra2/infra2/QUAGGA_DAEMONS create mode 100644 DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_infra2/infra2/QUAGGA_VTYSH create mode 100644 DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_infra2/infra2/RESOLV create mode 100644 DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_infra2/infra2/SSHD_CONF create mode 100644 DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_infra2/testbed.json create mode 100644 DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/README.md create mode 100644 DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/agg1/DHCP create mode 100644 DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/agg1/HOSTNAME create mode 100644 DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/agg1/HOSTS create mode 100644 DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/agg1/NETWORK_INTERFACES create mode 100644 DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/agg1/NTP create mode 100644 DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/agg1/QUAGGA_CONFIG create mode 100644 DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/agg1/QUAGGA_DAEMONS create mode 100644 DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/agg1/QUAGGA_VTYSH create mode 100644 DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/agg1/RESOLV create mode 100644 DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/agg1/SSHD_CONF create mode 100644 DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/agg2/DHCP create mode 100644 DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/agg2/HOSTNAME create mode 100644 DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/agg2/HOSTS create mode 100644 DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/agg2/NETWORK_INTERFACES create mode 100644 DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/agg2/NTP create mode 100644 DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/agg2/QUAGGA_CONFIG create mode 100644 DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/agg2/QUAGGA_DAEMONS create mode 100644 DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/agg2/QUAGGA_VTYSH create mode 100644 DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/agg2/RESOLV create mode 100644 DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/agg2/SSHD_CONF create mode 100644 DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/dist1/DHCP create mode 100644 DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/dist1/HOSTNAME create mode 100644 DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/dist1/HOSTS create mode 100644 DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/dist1/NETWORK_INTERFACES create mode 100644 DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/dist1/NTP create mode 100644 DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/dist1/QUAGGA_CONFIG create mode 100644 DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/dist1/QUAGGA_DAEMONS create mode 100644 DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/dist1/QUAGGA_VTYSH create mode 100644 DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/dist1/RESOLV create mode 100644 DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/dist1/SSHD_CONF create mode 100644 DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/infra1/DHCP create mode 100644 DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/infra1/HOSTNAME create mode 100644 DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/infra1/HOSTS create mode 100644 DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/infra1/KEEPALIVED_CONF create mode 100644 DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/infra1/NETWORK_INTERFACES create mode 100644 DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/infra1/NTP create mode 100644 DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/infra1/QUAGGA_CONFIG create mode 100644 DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/infra1/QUAGGA_DAEMONS create mode 100644 DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/infra1/QUAGGA_VTYSH create mode 100644 DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/infra1/RESOLV create mode 100644 DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/infra1/SSHD_CONF create mode 100644 DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/infra2/DHCP create mode 100644 DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/infra2/HOSTNAME create mode 100644 DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/infra2/HOSTS create mode 100644 DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/infra2/KEEPALIVED_CONF create mode 100644 DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/infra2/NETWORK_INTERFACES create mode 100644 DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/infra2/NTP create mode 100644 DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/infra2/QUAGGA_CONFIG create mode 100644 DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/infra2/QUAGGA_DAEMONS create mode 100644 DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/infra2/QUAGGA_VTYSH create mode 100644 DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/infra2/RESOLV create mode 100644 DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/infra2/SSHD_CONF create mode 100644 DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/testbed.json create mode 100755 DentOS_Framework/DentOsTestbed/configuration/testbed_config/vm/infra1_dvm/testbed.json create mode 100755 DentOS_Framework/DentOsTestbed/configuration/testbed_config/vm/sit/infra1/DHCP create mode 100755 DentOS_Framework/DentOsTestbed/configuration/testbed_config/vm/sit/infra1/HOSTNAME create mode 100755 DentOS_Framework/DentOsTestbed/configuration/testbed_config/vm/sit/infra1/HOSTS create mode 100755 DentOS_Framework/DentOsTestbed/configuration/testbed_config/vm/sit/infra1/KEEPALIVED_CONF create mode 100755 DentOS_Framework/DentOsTestbed/configuration/testbed_config/vm/sit/infra1/NETWORK_INTERFACES create mode 100755 DentOS_Framework/DentOsTestbed/configuration/testbed_config/vm/sit/infra1/NTP create mode 100755 DentOS_Framework/DentOsTestbed/configuration/testbed_config/vm/sit/infra1/QUAGGA_CONFIG create mode 100755 DentOS_Framework/DentOsTestbed/configuration/testbed_config/vm/sit/infra1/QUAGGA_DAEMONS create mode 100755 DentOS_Framework/DentOsTestbed/configuration/testbed_config/vm/sit/infra1/QUAGGA_VTYSH create mode 100755 DentOS_Framework/DentOsTestbed/configuration/testbed_config/vm/sit/infra1/RESOLV create mode 100755 DentOS_Framework/DentOsTestbed/configuration/testbed_config/vm/sit/infra1/SSHD_CONF create mode 100755 DentOS_Framework/DentOsTestbed/configuration/testbed_config/vm/sit/infra1_dvm/DHCP create mode 100755 DentOS_Framework/DentOsTestbed/configuration/testbed_config/vm/sit/infra1_dvm/HOSTNAME create mode 100755 DentOS_Framework/DentOsTestbed/configuration/testbed_config/vm/sit/infra1_dvm/HOSTS create mode 100755 DentOS_Framework/DentOsTestbed/configuration/testbed_config/vm/sit/infra1_dvm/KEEPALIVED_CONF create mode 100755 DentOS_Framework/DentOsTestbed/configuration/testbed_config/vm/sit/infra1_dvm/NETWORK_INTERFACES create mode 100755 DentOS_Framework/DentOsTestbed/configuration/testbed_config/vm/sit/infra1_dvm/NTP create mode 100755 DentOS_Framework/DentOsTestbed/configuration/testbed_config/vm/sit/infra1_dvm/QUAGGA_CONFIG create mode 100755 DentOS_Framework/DentOsTestbed/configuration/testbed_config/vm/sit/infra1_dvm/QUAGGA_DAEMONS create mode 100755 DentOS_Framework/DentOsTestbed/configuration/testbed_config/vm/sit/infra1_dvm/QUAGGA_VTYSH create mode 100755 DentOS_Framework/DentOsTestbed/configuration/testbed_config/vm/sit/infra1_dvm/RESOLV create mode 100755 DentOS_Framework/DentOsTestbed/configuration/testbed_config/vm/sit/infra1_dvm/SSHD_CONF create mode 100755 DentOS_Framework/DentOsTestbed/configuration/testbed_config/vm/sit/testbed.json diff --git a/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_agg1/agg1/DHCP b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_agg1/agg1/DHCP new file mode 100644 index 000000000..299a0abed --- /dev/null +++ b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_agg1/agg1/DHCP @@ -0,0 +1,6 @@ +# +# ISC dhcpd configuration +# + + +option domain-name "dentlab-agg1"; diff --git a/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_agg1/agg1/HOSTNAME b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_agg1/agg1/HOSTNAME new file mode 100644 index 000000000..120609193 --- /dev/null +++ b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_agg1/agg1/HOSTNAME @@ -0,0 +1 @@ +dentlab-agg1 diff --git a/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_agg1/agg1/HOSTS b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_agg1/agg1/HOSTS new file mode 100644 index 000000000..4eb7373c1 --- /dev/null +++ b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_agg1/agg1/HOSTS @@ -0,0 +1,5 @@ +127.0.0.1 localhost +::1 localhost ip6-localhost ip6-loopback +ff02::1 ip6-allnodes +ff02::2 ip6-allrouters +127.0.1.1 dentlab-agg1 diff --git a/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_agg1/agg1/KEEPALIVED_CONF b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_agg1/agg1/KEEPALIVED_CONF new file mode 100644 index 000000000..e69de29bb diff --git a/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_agg1/agg1/NETWORK_INTERFACES b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_agg1/agg1/NETWORK_INTERFACES new file mode 100644 index 000000000..503accc61 --- /dev/null +++ b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_agg1/agg1/NETWORK_INTERFACES @@ -0,0 +1,16 @@ +# +# ONL format of dent interfaces +# +# This file describes the network interfaces available on your system +# and how to activate them. For more information, see interfaces(5). + +source /etc/network/interfaces.d/*.intf + +# The loopback network interface +auto lo +iface lo inet loopback + address 20.20.0.1/32 + +# The management interface +auto ma1 +iface ma1 inet dhcp diff --git a/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_agg1/agg1/NTP b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_agg1/agg1/NTP new file mode 100644 index 000000000..a1d5f18ff --- /dev/null +++ b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_agg1/agg1/NTP @@ -0,0 +1,59 @@ +# /etc/ntp.conf, configuration for ntpd; see ntp.conf(5) for help + + +driftfile /var/lib/ntp/ntp.drift + + +# Enable this if you want statistics to be logged. +#statsdir /var/log/ntpstats/ + +statistics loopstats peerstats clockstats +filegen loopstats file loopstats type day enable +filegen peerstats file peerstats type day enable +filegen clockstats file clockstats type day enable + + +# You do need to talk to an NTP server or two (or three). +#server ntp.your-provider.example + + +# pool.ntp.org maps to about 1000 low-stratum NTP servers. Your server will +# pick a different set every time it starts up. Please consider joining the +# pool: +# + +# Access control configuration; see /usr/share/doc/ntp-doc/html/accopt.html for +# details. The web page +# might also be helpful. +# +# Note that "restrict" applies to both servers and clients, so a configuration +# that might be intended to block requests from certain clients could also end +# up blocking replies from your own upstream servers. + +# By default, exchange time with everybody, but don't allow configuration. +restrict -4 default kod notrap nomodify nopeer noquery +restrict -6 default kod notrap nomodify nopeer noquery + +# Local users may interrogate the ntp server more closely. +restrict 127.0.0.1 +restrict ::1 + +# Clients from this (example!) subnet have unlimited access, but only if +# cryptographically authenticated. +#restrict 192.168.123.0 mask 255.255.255.0 notrust + + +# If you want to provide time to your local subnet, change the next line. +# (Again, the address is an example only.) +#broadcast 192.168.123.255 + +# If you want to listen to time broadcasts on your local subnet, de-comment the +# next lines. Please do this only if you trust everybody on the network! +#disable auth +#broadcastclient + +# Specify interfaces, don't listen on switch ports +#interface listen ma1 +interface listen lo +interface listen lo:0 +interface listen dummy0 diff --git a/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_agg1/agg1/QUAGGA_CONFIG b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_agg1/agg1/QUAGGA_CONFIG new file mode 100644 index 000000000..da730d8f1 --- /dev/null +++ b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_agg1/agg1/QUAGGA_CONFIG @@ -0,0 +1,11 @@ +username cumulus nopassword +! +service integrated-vtysh-config +! +log timestamp precision 6 +! +no zebra nexthop kernel enable +! +line vty +! +end diff --git a/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_agg1/agg1/QUAGGA_DAEMONS b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_agg1/agg1/QUAGGA_DAEMONS new file mode 100644 index 000000000..cff453039 --- /dev/null +++ b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_agg1/agg1/QUAGGA_DAEMONS @@ -0,0 +1,30 @@ +# This file tells the quagga package which daemons to start. +# +# Entries are in the format: =(yes|no|priority) +# 0, "no" = disabled +# 1, "yes" = highest priority +# 2 .. 10 = lower priorities +# Read /usr/share/doc/quagga/README.Debian for details. +# +# Sample configurations for these daemons can be found in +# /usr/share/doc/quagga/examples/. +# +# ATTENTION: +# +# When activation a daemon at the first time, a config file, even if it is +# empty, has to be present *and* be owned by the user and group "quagga", else +# the daemon will not be started by /etc/init.d/quagga. The permissions should +# be u=rw,g=r,o=. +# When using "vtysh" such a config file is also needed. It should be owned by +# group "quaggavty" and set to ug=rw,o= though. Check /etc/pam.d/quagga, too. +# +# The watchquagga daemon is always started. Per default in monitoring-only but +# that can be changed via /etc/quagga/debian.conf. +# +zebra=yes +bgpd=yes +ospfd=no +ospf6d=no +ripd=no +ripngd=no +isisd=no diff --git a/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_agg1/agg1/QUAGGA_VTYSH b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_agg1/agg1/QUAGGA_VTYSH new file mode 100644 index 000000000..f7114f4b9 --- /dev/null +++ b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_agg1/agg1/QUAGGA_VTYSH @@ -0,0 +1,3 @@ +username cumulus nopassword +! +service integrated-vtysh-config diff --git a/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_agg1/agg1/RESOLV b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_agg1/agg1/RESOLV new file mode 100644 index 000000000..cae093a83 --- /dev/null +++ b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_agg1/agg1/RESOLV @@ -0,0 +1 @@ +nameserver 8.8.8.8 diff --git a/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_agg1/agg1/SSHD_CONF b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_agg1/agg1/SSHD_CONF new file mode 100644 index 000000000..e9506ff64 --- /dev/null +++ b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_agg1/agg1/SSHD_CONF @@ -0,0 +1,88 @@ +# Package generated configuration file +# See the sshd_config(5) manpage for details + +# What ports, IPs and protocols we listen for +Port 22 +# Use these options to restrict which interfaces/protocols sshd will bind to +#ListenAddress :: +ListenAddress 0.0.0.0 +Protocol 2 +# HostKeys for protocol version 2 +HostKey /etc/ssh/ssh_host_rsa_key +HostKey /etc/ssh/ssh_host_dsa_key +HostKey /etc/ssh/ssh_host_ecdsa_key +HostKey /etc/ssh/ssh_host_ed25519_key +#Privilege Separation is turned on for security +UsePrivilegeSeparation yes + +# Lifetime and size of ephemeral version 1 server key +KeyRegenerationInterval 3600 +ServerKeyBits 1024 + +# Logging +SyslogFacility AUTH +LogLevel INFO + +# Authentication: +LoginGraceTime 120 +PermitRootLogin yes +StrictModes yes + +RSAAuthentication yes +PubkeyAuthentication yes +#AuthorizedKeysFile %h/.ssh/authorized_keys + +# Don't read the user's ~/.rhosts and ~/.shosts files +IgnoreRhosts yes +# For this to work you will also need host keys in /etc/ssh_known_hosts +RhostsRSAAuthentication no +# similar for protocol version 2 +HostbasedAuthentication no +# Uncomment if you don't trust ~/.ssh/known_hosts for RhostsRSAAuthentication +#IgnoreUserKnownHosts yes + +# To enable empty passwords, change to yes (NOT RECOMMENDED) +PermitEmptyPasswords no + +# Change to yes to enable challenge-response passwords (beware issues with +# some PAM modules and threads) +ChallengeResponseAuthentication no + +# Change to no to disable tunnelled clear text passwords +PasswordAuthentication yes + +# Kerberos options +#KerberosAuthentication no +#KerberosGetAFSToken no +#KerberosOrLocalPasswd yes +#KerberosTicketCleanup yes + +# GSSAPI options +#GSSAPIAuthentication no +#GSSAPICleanupCredentials yes + +X11Forwarding yes +X11DisplayOffset 10 +PrintMotd no +PrintLastLog yes +TCPKeepAlive yes +#UseLogin no + +#MaxStartups 10:30:60 +#Banner /etc/issue.net + +# Allow client to pass locale environment variables +AcceptEnv LANG LC_* + +Subsystem sftp /usr/lib/openssh/sftp-server + +# Set this to 'yes' to enable PAM authentication, account processing, +# and session processing. If this is enabled, PAM authentication will +# be allowed through the ChallengeResponseAuthentication and +# PasswordAuthentication. Depending on your PAM configuration, +# PAM authentication via ChallengeResponseAuthentication may bypass +# the setting of "PermitRootLogin without-password". +# If you just want the PAM account and session checks to run without +# PAM authentication, then enable this but set PasswordAuthentication +# and ChallengeResponseAuthentication to 'no'. +UsePAM yes diff --git a/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_agg1/testbed.json b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_agg1/testbed.json new file mode 100644 index 000000000..c7fb7d70b --- /dev/null +++ b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_agg1/testbed.json @@ -0,0 +1,60 @@ +{ + "devices": [ + { + "friendlyName":"Dent agg1", + "os":"dentos", + "type" : "INFRA_SWITCH", + "hostName": "agg1", + "model": "arm64-accton-as5114-48x-r0", + "ip": "10.36.118.44", + "login":{ + "userName":"root", + "password":"onl" + }, + "cpuArchitecture": "arm", + "macAddress": "34:EF:B6:EC:38:02", + "serialConsole": { + "ip": "10.36.118.200", + "port": 7005 + }, + "pdu": { + "ip": "10.36.118.201", + "login": "dent", + "password": "dent123!", + "number": 5 + }, + "serialDev":"/dev/ttyUSB0", + "baudrate": 115200, + "mediaMode":"fiber", + "links" : [ + ["swp5", "agg1:swp6"], + ["swp7", "agg1:swp8"], + ["swp9", "agg1:swp10"] + ] + }, + { + "friendlyName":"Ixia Traffic Generator", + "os":"ixnetwork", + "type" : "TRAFFIC_GENERATOR", + "hostName": "ixia", + "model": "Novus10G", + "ip": "10.36.118.111", + "login":{ + "userName":"admin", + "password":"admin" + }, + "serialDev":"/dev/ttyUSBXX", + "baudrate": 115200, + "mediaMode":"mixed", + "links" : [ + ["10.36.118.199:1:5", "agg1:swp1", "fiber"], + ["10.36.118.199:1:6", "agg1:swp2", "fiber"], + ["10.36.118.199:1:7", "agg1:swp3", "fiber"], + ["10.36.118.199:1:8", "agg1:swp4", "fiber"] + ] + } + ], + "operator" : "dent", + "topology" : "bachelor", + "force_discovery" : false +} diff --git a/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_agg2/agg2/DHCP b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_agg2/agg2/DHCP new file mode 100644 index 000000000..db660246e --- /dev/null +++ b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_agg2/agg2/DHCP @@ -0,0 +1,6 @@ +# +# ISC dhcpd configuration +# + + +option domain-name "dentlab-agg2"; diff --git a/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_agg2/agg2/HOSTNAME b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_agg2/agg2/HOSTNAME new file mode 100644 index 000000000..d2a1e700b --- /dev/null +++ b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_agg2/agg2/HOSTNAME @@ -0,0 +1 @@ +dentlab-agg2 diff --git a/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_agg2/agg2/HOSTS b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_agg2/agg2/HOSTS new file mode 100644 index 000000000..5b2c86186 --- /dev/null +++ b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_agg2/agg2/HOSTS @@ -0,0 +1,5 @@ +127.0.0.1 localhost +::1 localhost ip6-localhost ip6-loopback +ff02::1 ip6-allnodes +ff02::2 ip6-allrouters +127.0.1.1 dentlab-agg2 diff --git a/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_agg2/agg2/KEEPALIVED_CONF b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_agg2/agg2/KEEPALIVED_CONF new file mode 100644 index 000000000..e69de29bb diff --git a/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_agg2/agg2/NETWORK_INTERFACES b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_agg2/agg2/NETWORK_INTERFACES new file mode 100644 index 000000000..503accc61 --- /dev/null +++ b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_agg2/agg2/NETWORK_INTERFACES @@ -0,0 +1,16 @@ +# +# ONL format of dent interfaces +# +# This file describes the network interfaces available on your system +# and how to activate them. For more information, see interfaces(5). + +source /etc/network/interfaces.d/*.intf + +# The loopback network interface +auto lo +iface lo inet loopback + address 20.20.0.1/32 + +# The management interface +auto ma1 +iface ma1 inet dhcp diff --git a/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_agg2/agg2/NTP b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_agg2/agg2/NTP new file mode 100644 index 000000000..a1d5f18ff --- /dev/null +++ b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_agg2/agg2/NTP @@ -0,0 +1,59 @@ +# /etc/ntp.conf, configuration for ntpd; see ntp.conf(5) for help + + +driftfile /var/lib/ntp/ntp.drift + + +# Enable this if you want statistics to be logged. +#statsdir /var/log/ntpstats/ + +statistics loopstats peerstats clockstats +filegen loopstats file loopstats type day enable +filegen peerstats file peerstats type day enable +filegen clockstats file clockstats type day enable + + +# You do need to talk to an NTP server or two (or three). +#server ntp.your-provider.example + + +# pool.ntp.org maps to about 1000 low-stratum NTP servers. Your server will +# pick a different set every time it starts up. Please consider joining the +# pool: +# + +# Access control configuration; see /usr/share/doc/ntp-doc/html/accopt.html for +# details. The web page +# might also be helpful. +# +# Note that "restrict" applies to both servers and clients, so a configuration +# that might be intended to block requests from certain clients could also end +# up blocking replies from your own upstream servers. + +# By default, exchange time with everybody, but don't allow configuration. +restrict -4 default kod notrap nomodify nopeer noquery +restrict -6 default kod notrap nomodify nopeer noquery + +# Local users may interrogate the ntp server more closely. +restrict 127.0.0.1 +restrict ::1 + +# Clients from this (example!) subnet have unlimited access, but only if +# cryptographically authenticated. +#restrict 192.168.123.0 mask 255.255.255.0 notrust + + +# If you want to provide time to your local subnet, change the next line. +# (Again, the address is an example only.) +#broadcast 192.168.123.255 + +# If you want to listen to time broadcasts on your local subnet, de-comment the +# next lines. Please do this only if you trust everybody on the network! +#disable auth +#broadcastclient + +# Specify interfaces, don't listen on switch ports +#interface listen ma1 +interface listen lo +interface listen lo:0 +interface listen dummy0 diff --git a/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_agg2/agg2/QUAGGA_CONFIG b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_agg2/agg2/QUAGGA_CONFIG new file mode 100644 index 000000000..da730d8f1 --- /dev/null +++ b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_agg2/agg2/QUAGGA_CONFIG @@ -0,0 +1,11 @@ +username cumulus nopassword +! +service integrated-vtysh-config +! +log timestamp precision 6 +! +no zebra nexthop kernel enable +! +line vty +! +end diff --git a/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_agg2/agg2/QUAGGA_DAEMONS b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_agg2/agg2/QUAGGA_DAEMONS new file mode 100644 index 000000000..cff453039 --- /dev/null +++ b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_agg2/agg2/QUAGGA_DAEMONS @@ -0,0 +1,30 @@ +# This file tells the quagga package which daemons to start. +# +# Entries are in the format: =(yes|no|priority) +# 0, "no" = disabled +# 1, "yes" = highest priority +# 2 .. 10 = lower priorities +# Read /usr/share/doc/quagga/README.Debian for details. +# +# Sample configurations for these daemons can be found in +# /usr/share/doc/quagga/examples/. +# +# ATTENTION: +# +# When activation a daemon at the first time, a config file, even if it is +# empty, has to be present *and* be owned by the user and group "quagga", else +# the daemon will not be started by /etc/init.d/quagga. The permissions should +# be u=rw,g=r,o=. +# When using "vtysh" such a config file is also needed. It should be owned by +# group "quaggavty" and set to ug=rw,o= though. Check /etc/pam.d/quagga, too. +# +# The watchquagga daemon is always started. Per default in monitoring-only but +# that can be changed via /etc/quagga/debian.conf. +# +zebra=yes +bgpd=yes +ospfd=no +ospf6d=no +ripd=no +ripngd=no +isisd=no diff --git a/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_agg2/agg2/QUAGGA_VTYSH b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_agg2/agg2/QUAGGA_VTYSH new file mode 100644 index 000000000..f7114f4b9 --- /dev/null +++ b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_agg2/agg2/QUAGGA_VTYSH @@ -0,0 +1,3 @@ +username cumulus nopassword +! +service integrated-vtysh-config diff --git a/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_agg2/agg2/RESOLV b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_agg2/agg2/RESOLV new file mode 100644 index 000000000..cae093a83 --- /dev/null +++ b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_agg2/agg2/RESOLV @@ -0,0 +1 @@ +nameserver 8.8.8.8 diff --git a/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_agg2/agg2/SSHD_CONF b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_agg2/agg2/SSHD_CONF new file mode 100644 index 000000000..e9506ff64 --- /dev/null +++ b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_agg2/agg2/SSHD_CONF @@ -0,0 +1,88 @@ +# Package generated configuration file +# See the sshd_config(5) manpage for details + +# What ports, IPs and protocols we listen for +Port 22 +# Use these options to restrict which interfaces/protocols sshd will bind to +#ListenAddress :: +ListenAddress 0.0.0.0 +Protocol 2 +# HostKeys for protocol version 2 +HostKey /etc/ssh/ssh_host_rsa_key +HostKey /etc/ssh/ssh_host_dsa_key +HostKey /etc/ssh/ssh_host_ecdsa_key +HostKey /etc/ssh/ssh_host_ed25519_key +#Privilege Separation is turned on for security +UsePrivilegeSeparation yes + +# Lifetime and size of ephemeral version 1 server key +KeyRegenerationInterval 3600 +ServerKeyBits 1024 + +# Logging +SyslogFacility AUTH +LogLevel INFO + +# Authentication: +LoginGraceTime 120 +PermitRootLogin yes +StrictModes yes + +RSAAuthentication yes +PubkeyAuthentication yes +#AuthorizedKeysFile %h/.ssh/authorized_keys + +# Don't read the user's ~/.rhosts and ~/.shosts files +IgnoreRhosts yes +# For this to work you will also need host keys in /etc/ssh_known_hosts +RhostsRSAAuthentication no +# similar for protocol version 2 +HostbasedAuthentication no +# Uncomment if you don't trust ~/.ssh/known_hosts for RhostsRSAAuthentication +#IgnoreUserKnownHosts yes + +# To enable empty passwords, change to yes (NOT RECOMMENDED) +PermitEmptyPasswords no + +# Change to yes to enable challenge-response passwords (beware issues with +# some PAM modules and threads) +ChallengeResponseAuthentication no + +# Change to no to disable tunnelled clear text passwords +PasswordAuthentication yes + +# Kerberos options +#KerberosAuthentication no +#KerberosGetAFSToken no +#KerberosOrLocalPasswd yes +#KerberosTicketCleanup yes + +# GSSAPI options +#GSSAPIAuthentication no +#GSSAPICleanupCredentials yes + +X11Forwarding yes +X11DisplayOffset 10 +PrintMotd no +PrintLastLog yes +TCPKeepAlive yes +#UseLogin no + +#MaxStartups 10:30:60 +#Banner /etc/issue.net + +# Allow client to pass locale environment variables +AcceptEnv LANG LC_* + +Subsystem sftp /usr/lib/openssh/sftp-server + +# Set this to 'yes' to enable PAM authentication, account processing, +# and session processing. If this is enabled, PAM authentication will +# be allowed through the ChallengeResponseAuthentication and +# PasswordAuthentication. Depending on your PAM configuration, +# PAM authentication via ChallengeResponseAuthentication may bypass +# the setting of "PermitRootLogin without-password". +# If you just want the PAM account and session checks to run without +# PAM authentication, then enable this but set PasswordAuthentication +# and ChallengeResponseAuthentication to 'no'. +UsePAM yes diff --git a/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_agg2/testbed.json b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_agg2/testbed.json new file mode 100644 index 000000000..dddef3b00 --- /dev/null +++ b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_agg2/testbed.json @@ -0,0 +1,60 @@ +{ + "devices": [ + { + "friendlyName":"Dent agg2", + "os":"dentos", + "type" : "INFRA_SWITCH", + "hostName": "agg2", + "model": "arm64-accton-as5114-48x-r0", + "ip": "10.36.118.41", + "login":{ + "userName":"root", + "password":"onl" + }, + "cpuArchitecture": "arm", + "macAddress": "34:EF:B6:EC:2A:4C", + "serialConsole": { + "ip": "10.36.118.200", + "port": 7008 + }, + "pdu": { + "ip": "10.36.118.201", + "login": "dent", + "password": "dent123!", + "number": 8 + }, + "serialDev":"/dev/ttyUSB0", + "baudrate": 115200, + "mediaMode":"fiber", + "links" : [ + ["swp5", "agg2:swp6"], + ["swp7", "agg2:swp8"], + ["swp9", "agg2:swp10"] + ] + }, + { + "friendlyName":"Ixia Traffic Generator", + "os":"ixnetwork", + "type" : "TRAFFIC_GENERATOR", + "hostName": "ixia", + "model": "Novus10G", + "ip": "10.36.118.111", + "login":{ + "userName":"admin", + "password":"admin" + }, + "serialDev":"/dev/ttyUSBXX", + "baudrate": 115200, + "mediaMode":"mixed", + "links" : [ + ["10.36.118.199:1:9", "agg2:swp1", "fiber"], + ["10.36.118.199:1:10", "agg2:swp2", "fiber"], + ["10.36.118.199:1:11", "agg2:swp3", "fiber"], + ["10.36.118.199:1:12", "agg2:swp4", "fiber"] + ] + } + ], + "operator" : "dent", + "topology" : "bachelor", + "force_discovery" : false +} diff --git a/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_dist1/dist1/DHCP b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_dist1/dist1/DHCP new file mode 100644 index 000000000..be679c39b --- /dev/null +++ b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_dist1/dist1/DHCP @@ -0,0 +1,6 @@ +# +# ISC dhcpd configuration +# + + +option domain-name "dentlab-dist1"; diff --git a/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_dist1/dist1/HOSTNAME b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_dist1/dist1/HOSTNAME new file mode 100644 index 000000000..337e5d21e --- /dev/null +++ b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_dist1/dist1/HOSTNAME @@ -0,0 +1 @@ +dentlab-dist1 diff --git a/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_dist1/dist1/HOSTS b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_dist1/dist1/HOSTS new file mode 100644 index 000000000..a1a37aa65 --- /dev/null +++ b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_dist1/dist1/HOSTS @@ -0,0 +1,5 @@ +127.0.0.1 localhost +::1 localhost ip6-localhost ip6-loopback +ff02::1 ip6-allnodes +ff02::2 ip6-allrouters +127.0.1.1 dentlab-dist1 diff --git a/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_dist1/dist1/KEEPALIVED_CONF b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_dist1/dist1/KEEPALIVED_CONF new file mode 100644 index 000000000..e69de29bb diff --git a/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_dist1/dist1/NETWORK_INTERFACES b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_dist1/dist1/NETWORK_INTERFACES new file mode 100644 index 000000000..503accc61 --- /dev/null +++ b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_dist1/dist1/NETWORK_INTERFACES @@ -0,0 +1,16 @@ +# +# ONL format of dent interfaces +# +# This file describes the network interfaces available on your system +# and how to activate them. For more information, see interfaces(5). + +source /etc/network/interfaces.d/*.intf + +# The loopback network interface +auto lo +iface lo inet loopback + address 20.20.0.1/32 + +# The management interface +auto ma1 +iface ma1 inet dhcp diff --git a/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_dist1/dist1/NTP b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_dist1/dist1/NTP new file mode 100644 index 000000000..a1d5f18ff --- /dev/null +++ b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_dist1/dist1/NTP @@ -0,0 +1,59 @@ +# /etc/ntp.conf, configuration for ntpd; see ntp.conf(5) for help + + +driftfile /var/lib/ntp/ntp.drift + + +# Enable this if you want statistics to be logged. +#statsdir /var/log/ntpstats/ + +statistics loopstats peerstats clockstats +filegen loopstats file loopstats type day enable +filegen peerstats file peerstats type day enable +filegen clockstats file clockstats type day enable + + +# You do need to talk to an NTP server or two (or three). +#server ntp.your-provider.example + + +# pool.ntp.org maps to about 1000 low-stratum NTP servers. Your server will +# pick a different set every time it starts up. Please consider joining the +# pool: +# + +# Access control configuration; see /usr/share/doc/ntp-doc/html/accopt.html for +# details. The web page +# might also be helpful. +# +# Note that "restrict" applies to both servers and clients, so a configuration +# that might be intended to block requests from certain clients could also end +# up blocking replies from your own upstream servers. + +# By default, exchange time with everybody, but don't allow configuration. +restrict -4 default kod notrap nomodify nopeer noquery +restrict -6 default kod notrap nomodify nopeer noquery + +# Local users may interrogate the ntp server more closely. +restrict 127.0.0.1 +restrict ::1 + +# Clients from this (example!) subnet have unlimited access, but only if +# cryptographically authenticated. +#restrict 192.168.123.0 mask 255.255.255.0 notrust + + +# If you want to provide time to your local subnet, change the next line. +# (Again, the address is an example only.) +#broadcast 192.168.123.255 + +# If you want to listen to time broadcasts on your local subnet, de-comment the +# next lines. Please do this only if you trust everybody on the network! +#disable auth +#broadcastclient + +# Specify interfaces, don't listen on switch ports +#interface listen ma1 +interface listen lo +interface listen lo:0 +interface listen dummy0 diff --git a/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_dist1/dist1/QUAGGA_CONFIG b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_dist1/dist1/QUAGGA_CONFIG new file mode 100644 index 000000000..da730d8f1 --- /dev/null +++ b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_dist1/dist1/QUAGGA_CONFIG @@ -0,0 +1,11 @@ +username cumulus nopassword +! +service integrated-vtysh-config +! +log timestamp precision 6 +! +no zebra nexthop kernel enable +! +line vty +! +end diff --git a/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_dist1/dist1/QUAGGA_DAEMONS b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_dist1/dist1/QUAGGA_DAEMONS new file mode 100644 index 000000000..cff453039 --- /dev/null +++ b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_dist1/dist1/QUAGGA_DAEMONS @@ -0,0 +1,30 @@ +# This file tells the quagga package which daemons to start. +# +# Entries are in the format: =(yes|no|priority) +# 0, "no" = disabled +# 1, "yes" = highest priority +# 2 .. 10 = lower priorities +# Read /usr/share/doc/quagga/README.Debian for details. +# +# Sample configurations for these daemons can be found in +# /usr/share/doc/quagga/examples/. +# +# ATTENTION: +# +# When activation a daemon at the first time, a config file, even if it is +# empty, has to be present *and* be owned by the user and group "quagga", else +# the daemon will not be started by /etc/init.d/quagga. The permissions should +# be u=rw,g=r,o=. +# When using "vtysh" such a config file is also needed. It should be owned by +# group "quaggavty" and set to ug=rw,o= though. Check /etc/pam.d/quagga, too. +# +# The watchquagga daemon is always started. Per default in monitoring-only but +# that can be changed via /etc/quagga/debian.conf. +# +zebra=yes +bgpd=yes +ospfd=no +ospf6d=no +ripd=no +ripngd=no +isisd=no diff --git a/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_dist1/dist1/QUAGGA_VTYSH b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_dist1/dist1/QUAGGA_VTYSH new file mode 100644 index 000000000..f7114f4b9 --- /dev/null +++ b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_dist1/dist1/QUAGGA_VTYSH @@ -0,0 +1,3 @@ +username cumulus nopassword +! +service integrated-vtysh-config diff --git a/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_dist1/dist1/RESOLV b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_dist1/dist1/RESOLV new file mode 100644 index 000000000..cae093a83 --- /dev/null +++ b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_dist1/dist1/RESOLV @@ -0,0 +1 @@ +nameserver 8.8.8.8 diff --git a/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_dist1/dist1/SSHD_CONF b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_dist1/dist1/SSHD_CONF new file mode 100644 index 000000000..e9506ff64 --- /dev/null +++ b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_dist1/dist1/SSHD_CONF @@ -0,0 +1,88 @@ +# Package generated configuration file +# See the sshd_config(5) manpage for details + +# What ports, IPs and protocols we listen for +Port 22 +# Use these options to restrict which interfaces/protocols sshd will bind to +#ListenAddress :: +ListenAddress 0.0.0.0 +Protocol 2 +# HostKeys for protocol version 2 +HostKey /etc/ssh/ssh_host_rsa_key +HostKey /etc/ssh/ssh_host_dsa_key +HostKey /etc/ssh/ssh_host_ecdsa_key +HostKey /etc/ssh/ssh_host_ed25519_key +#Privilege Separation is turned on for security +UsePrivilegeSeparation yes + +# Lifetime and size of ephemeral version 1 server key +KeyRegenerationInterval 3600 +ServerKeyBits 1024 + +# Logging +SyslogFacility AUTH +LogLevel INFO + +# Authentication: +LoginGraceTime 120 +PermitRootLogin yes +StrictModes yes + +RSAAuthentication yes +PubkeyAuthentication yes +#AuthorizedKeysFile %h/.ssh/authorized_keys + +# Don't read the user's ~/.rhosts and ~/.shosts files +IgnoreRhosts yes +# For this to work you will also need host keys in /etc/ssh_known_hosts +RhostsRSAAuthentication no +# similar for protocol version 2 +HostbasedAuthentication no +# Uncomment if you don't trust ~/.ssh/known_hosts for RhostsRSAAuthentication +#IgnoreUserKnownHosts yes + +# To enable empty passwords, change to yes (NOT RECOMMENDED) +PermitEmptyPasswords no + +# Change to yes to enable challenge-response passwords (beware issues with +# some PAM modules and threads) +ChallengeResponseAuthentication no + +# Change to no to disable tunnelled clear text passwords +PasswordAuthentication yes + +# Kerberos options +#KerberosAuthentication no +#KerberosGetAFSToken no +#KerberosOrLocalPasswd yes +#KerberosTicketCleanup yes + +# GSSAPI options +#GSSAPIAuthentication no +#GSSAPICleanupCredentials yes + +X11Forwarding yes +X11DisplayOffset 10 +PrintMotd no +PrintLastLog yes +TCPKeepAlive yes +#UseLogin no + +#MaxStartups 10:30:60 +#Banner /etc/issue.net + +# Allow client to pass locale environment variables +AcceptEnv LANG LC_* + +Subsystem sftp /usr/lib/openssh/sftp-server + +# Set this to 'yes' to enable PAM authentication, account processing, +# and session processing. If this is enabled, PAM authentication will +# be allowed through the ChallengeResponseAuthentication and +# PasswordAuthentication. Depending on your PAM configuration, +# PAM authentication via ChallengeResponseAuthentication may bypass +# the setting of "PermitRootLogin without-password". +# If you just want the PAM account and session checks to run without +# PAM authentication, then enable this but set PasswordAuthentication +# and ChallengeResponseAuthentication to 'no'. +UsePAM yes diff --git a/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_dist1/testbed.json b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_dist1/testbed.json new file mode 100644 index 000000000..06ecfafef --- /dev/null +++ b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_dist1/testbed.json @@ -0,0 +1,60 @@ +{ + "devices": [ + { + "friendlyName":"Dent dist1", + "os":"dentos", + "type" : "INFRA_SWITCH", + "hostName": "dist1", + "model": "arm64-accton-as5114-48x-r0", + "ip": "10.36.118.43", + "login":{ + "userName":"root", + "password":"onl" + }, + "cpuArchitecture": "arm", + "macAddress": "34:EF:B6:EC:26:BE", + "serialConsole": { + "ip": "10.36.118.200", + "port": 7006 + }, + "pdu": { + "ip": "10.36.118.201", + "login": "dent", + "password": "dent123!", + "number": 6 + }, + "serialDev":"/dev/ttyUSB0", + "baudrate": 115200, + "mediaMode":"fiber", + "links" : [ + ["swp5", "dist1:swp6"], + ["swp7", "dist1:swp8"], + ["swp9", "dist1:swp10"] + ] + }, + { + "friendlyName":"Ixia Traffic Generator", + "os":"ixnetwork", + "type" : "TRAFFIC_GENERATOR", + "hostName": "ixia", + "model": "Novus10G", + "ip": "10.36.118.111", + "login":{ + "userName":"admin", + "password":"admin" + }, + "serialDev":"/dev/ttyUSBXX", + "baudrate": 115200, + "mediaMode":"mixed", + "links" : [ + ["10.36.118.199:1:1", "dist1:swp1", "fiber"], + ["10.36.118.199:1:2", "dist1:swp2", "fiber"], + ["10.36.118.199:1:3", "dist1:swp3", "fiber"], + ["10.36.118.199:1:4", "dist1:swp4", "fiber"] + ] + } + ], + "operator" : "dent", + "topology" : "bachelor", + "force_discovery" : false +} diff --git a/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_infra1/infra1/DHCP b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_infra1/infra1/DHCP new file mode 100644 index 000000000..6da976513 --- /dev/null +++ b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_infra1/infra1/DHCP @@ -0,0 +1,6 @@ +# +# ISC dhcpd configuration +# + + +option domain-name "dentlab-infra1"; diff --git a/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_infra1/infra1/HOSTNAME b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_infra1/infra1/HOSTNAME new file mode 100644 index 000000000..be88a8757 --- /dev/null +++ b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_infra1/infra1/HOSTNAME @@ -0,0 +1 @@ +dentlab-infra1 diff --git a/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_infra1/infra1/HOSTS b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_infra1/infra1/HOSTS new file mode 100644 index 000000000..f93ebae8a --- /dev/null +++ b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_infra1/infra1/HOSTS @@ -0,0 +1,5 @@ +127.0.0.1 localhost +::1 localhost ip6-localhost ip6-loopback +ff02::1 ip6-allnodes +ff02::2 ip6-allrouters +127.0.1.1 dentlab-infra1 diff --git a/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_infra1/infra1/KEEPALIVED_CONF b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_infra1/infra1/KEEPALIVED_CONF new file mode 100644 index 000000000..e69de29bb diff --git a/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_infra1/infra1/NETWORK_INTERFACES b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_infra1/infra1/NETWORK_INTERFACES new file mode 100644 index 000000000..503accc61 --- /dev/null +++ b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_infra1/infra1/NETWORK_INTERFACES @@ -0,0 +1,16 @@ +# +# ONL format of dent interfaces +# +# This file describes the network interfaces available on your system +# and how to activate them. For more information, see interfaces(5). + +source /etc/network/interfaces.d/*.intf + +# The loopback network interface +auto lo +iface lo inet loopback + address 20.20.0.1/32 + +# The management interface +auto ma1 +iface ma1 inet dhcp diff --git a/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_infra1/infra1/NTP b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_infra1/infra1/NTP new file mode 100644 index 000000000..a1d5f18ff --- /dev/null +++ b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_infra1/infra1/NTP @@ -0,0 +1,59 @@ +# /etc/ntp.conf, configuration for ntpd; see ntp.conf(5) for help + + +driftfile /var/lib/ntp/ntp.drift + + +# Enable this if you want statistics to be logged. +#statsdir /var/log/ntpstats/ + +statistics loopstats peerstats clockstats +filegen loopstats file loopstats type day enable +filegen peerstats file peerstats type day enable +filegen clockstats file clockstats type day enable + + +# You do need to talk to an NTP server or two (or three). +#server ntp.your-provider.example + + +# pool.ntp.org maps to about 1000 low-stratum NTP servers. Your server will +# pick a different set every time it starts up. Please consider joining the +# pool: +# + +# Access control configuration; see /usr/share/doc/ntp-doc/html/accopt.html for +# details. The web page +# might also be helpful. +# +# Note that "restrict" applies to both servers and clients, so a configuration +# that might be intended to block requests from certain clients could also end +# up blocking replies from your own upstream servers. + +# By default, exchange time with everybody, but don't allow configuration. +restrict -4 default kod notrap nomodify nopeer noquery +restrict -6 default kod notrap nomodify nopeer noquery + +# Local users may interrogate the ntp server more closely. +restrict 127.0.0.1 +restrict ::1 + +# Clients from this (example!) subnet have unlimited access, but only if +# cryptographically authenticated. +#restrict 192.168.123.0 mask 255.255.255.0 notrust + + +# If you want to provide time to your local subnet, change the next line. +# (Again, the address is an example only.) +#broadcast 192.168.123.255 + +# If you want to listen to time broadcasts on your local subnet, de-comment the +# next lines. Please do this only if you trust everybody on the network! +#disable auth +#broadcastclient + +# Specify interfaces, don't listen on switch ports +#interface listen ma1 +interface listen lo +interface listen lo:0 +interface listen dummy0 diff --git a/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_infra1/infra1/QUAGGA_CONFIG b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_infra1/infra1/QUAGGA_CONFIG new file mode 100644 index 000000000..da730d8f1 --- /dev/null +++ b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_infra1/infra1/QUAGGA_CONFIG @@ -0,0 +1,11 @@ +username cumulus nopassword +! +service integrated-vtysh-config +! +log timestamp precision 6 +! +no zebra nexthop kernel enable +! +line vty +! +end diff --git a/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_infra1/infra1/QUAGGA_DAEMONS b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_infra1/infra1/QUAGGA_DAEMONS new file mode 100644 index 000000000..cff453039 --- /dev/null +++ b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_infra1/infra1/QUAGGA_DAEMONS @@ -0,0 +1,30 @@ +# This file tells the quagga package which daemons to start. +# +# Entries are in the format: =(yes|no|priority) +# 0, "no" = disabled +# 1, "yes" = highest priority +# 2 .. 10 = lower priorities +# Read /usr/share/doc/quagga/README.Debian for details. +# +# Sample configurations for these daemons can be found in +# /usr/share/doc/quagga/examples/. +# +# ATTENTION: +# +# When activation a daemon at the first time, a config file, even if it is +# empty, has to be present *and* be owned by the user and group "quagga", else +# the daemon will not be started by /etc/init.d/quagga. The permissions should +# be u=rw,g=r,o=. +# When using "vtysh" such a config file is also needed. It should be owned by +# group "quaggavty" and set to ug=rw,o= though. Check /etc/pam.d/quagga, too. +# +# The watchquagga daemon is always started. Per default in monitoring-only but +# that can be changed via /etc/quagga/debian.conf. +# +zebra=yes +bgpd=yes +ospfd=no +ospf6d=no +ripd=no +ripngd=no +isisd=no diff --git a/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_infra1/infra1/QUAGGA_VTYSH b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_infra1/infra1/QUAGGA_VTYSH new file mode 100644 index 000000000..f7114f4b9 --- /dev/null +++ b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_infra1/infra1/QUAGGA_VTYSH @@ -0,0 +1,3 @@ +username cumulus nopassword +! +service integrated-vtysh-config diff --git a/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_infra1/infra1/RESOLV b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_infra1/infra1/RESOLV new file mode 100644 index 000000000..cae093a83 --- /dev/null +++ b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_infra1/infra1/RESOLV @@ -0,0 +1 @@ +nameserver 8.8.8.8 diff --git a/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_infra1/infra1/SSHD_CONF b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_infra1/infra1/SSHD_CONF new file mode 100644 index 000000000..e9506ff64 --- /dev/null +++ b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_infra1/infra1/SSHD_CONF @@ -0,0 +1,88 @@ +# Package generated configuration file +# See the sshd_config(5) manpage for details + +# What ports, IPs and protocols we listen for +Port 22 +# Use these options to restrict which interfaces/protocols sshd will bind to +#ListenAddress :: +ListenAddress 0.0.0.0 +Protocol 2 +# HostKeys for protocol version 2 +HostKey /etc/ssh/ssh_host_rsa_key +HostKey /etc/ssh/ssh_host_dsa_key +HostKey /etc/ssh/ssh_host_ecdsa_key +HostKey /etc/ssh/ssh_host_ed25519_key +#Privilege Separation is turned on for security +UsePrivilegeSeparation yes + +# Lifetime and size of ephemeral version 1 server key +KeyRegenerationInterval 3600 +ServerKeyBits 1024 + +# Logging +SyslogFacility AUTH +LogLevel INFO + +# Authentication: +LoginGraceTime 120 +PermitRootLogin yes +StrictModes yes + +RSAAuthentication yes +PubkeyAuthentication yes +#AuthorizedKeysFile %h/.ssh/authorized_keys + +# Don't read the user's ~/.rhosts and ~/.shosts files +IgnoreRhosts yes +# For this to work you will also need host keys in /etc/ssh_known_hosts +RhostsRSAAuthentication no +# similar for protocol version 2 +HostbasedAuthentication no +# Uncomment if you don't trust ~/.ssh/known_hosts for RhostsRSAAuthentication +#IgnoreUserKnownHosts yes + +# To enable empty passwords, change to yes (NOT RECOMMENDED) +PermitEmptyPasswords no + +# Change to yes to enable challenge-response passwords (beware issues with +# some PAM modules and threads) +ChallengeResponseAuthentication no + +# Change to no to disable tunnelled clear text passwords +PasswordAuthentication yes + +# Kerberos options +#KerberosAuthentication no +#KerberosGetAFSToken no +#KerberosOrLocalPasswd yes +#KerberosTicketCleanup yes + +# GSSAPI options +#GSSAPIAuthentication no +#GSSAPICleanupCredentials yes + +X11Forwarding yes +X11DisplayOffset 10 +PrintMotd no +PrintLastLog yes +TCPKeepAlive yes +#UseLogin no + +#MaxStartups 10:30:60 +#Banner /etc/issue.net + +# Allow client to pass locale environment variables +AcceptEnv LANG LC_* + +Subsystem sftp /usr/lib/openssh/sftp-server + +# Set this to 'yes' to enable PAM authentication, account processing, +# and session processing. If this is enabled, PAM authentication will +# be allowed through the ChallengeResponseAuthentication and +# PasswordAuthentication. Depending on your PAM configuration, +# PAM authentication via ChallengeResponseAuthentication may bypass +# the setting of "PermitRootLogin without-password". +# If you just want the PAM account and session checks to run without +# PAM authentication, then enable this but set PasswordAuthentication +# and ChallengeResponseAuthentication to 'no'. +UsePAM yes diff --git a/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_infra1/testbed.json b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_infra1/testbed.json new file mode 100644 index 000000000..9bb09b31e --- /dev/null +++ b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_infra1/testbed.json @@ -0,0 +1,59 @@ +{ + "devices": [ + { + "friendlyName": "Dent infra1", + "os":"dentos", + "type" : "INFRA_SWITCH", + "hostName": "infra1", + "model": "arm64-accton-as4224-52p-r0", + "ip": "10.36.118.46", + "login":{ + "userName":"root", + "password":"onl" + }, + "cpuArchitecture": "arm", + "macAddress": "90:3C:B3:8B:EF:32", + "serialConsole": { + "ip": "10.36.118.200", + "port": 7003 + }, + "pdu": { + "ip": "10.36.118.201", + "login": "dent", + "password": "dent123!", + "number": 3 + }, + "serialDev":"/dev/ttyUSB0", + "baudrate": 115200, + "links" : [ + ["swp5", "infra1:swp6"], + ["swp7", "infra1:swp8"], + ["swp9", "infra1:swp10"] + ] + }, + { + "friendlyName":"Ixia Traffic Generator", + "os":"ixnetwork", + "type" : "TRAFFIC_GENERATOR", + "hostName": "ixia", + "model": "Novus10G", + "ip": "10.36.118.111", + "login":{ + "userName":"admin", + "password":"admin" + }, + "serialDev":"/dev/ttyUSBXX", + "baudrate": 115200, + "mediaMode":"mixed", + "links" : [ + ["10.36.118.199:1:9", "infra1:swp1", "copper"], + ["10.36.118.199:1:10", "infra1:swp2", "copper"], + ["10.36.118.199:1:11", "infra1:swp3", "copper"], + ["10.36.118.199:1:12", "infra1:swp4", "copper"] + ] + } + ], + "operator" : "dent", + "topology" : "bachelor", + "force_discovery" : false +} diff --git a/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_infra1/testbed_dentvm.json b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_infra1/testbed_dentvm.json new file mode 100644 index 000000000..f532fb16e --- /dev/null +++ b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_infra1/testbed_dentvm.json @@ -0,0 +1,45 @@ +{ + "devices": [ + { + "friendlyName":"DENT infrastructure 1", + "os":"dentos", + "type" : "INFRA_SWITCH", + "hostName": "infra1", + "model": "arm64-accton-as5114-48x-r0", + "ip": "10.36.118.160", + "login":{ + "userName":"root", + "password":"onl" + }, + "serialDev":"/dev/ttyUSB0", + "baudrate": 115200, + "mediaMode":"fiber", + "links" : [ + ] + }, + { + "friendlyName":"Ixia Traffic Generator", + "os":"ixnetwork", + "type" : "TRAFFIC_GENERATOR", + "hostName": "ixia", + "model": "VM", + "ip": "10.36.118.112", + "login":{ + "userName":"admin", + "password":"dentTestPass_121314" + }, + "serialDev":"/dev/ttyUSBXX", + "baudrate": 115200, + "mediaMode":"fiber", + "links" : [ + ["10.36.118.150:5:1", "infra1:swp1", "fiber"], + ["10.36.118.150:5:2", "infra1:swp2", "fiber"], + ["10.36.118.150:5:3", "infra1:swp3", "fiber"], + ["10.36.118.150:5:4", "infra1:swp4", "fiber"] + ] + } + ], + "operator" : "dent-vm", + "topology" : "bachelor", + "force_discovery" : false +} diff --git a/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_infra1/testbed_vm.json b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_infra1/testbed_vm.json new file mode 100644 index 000000000..c3b1cce33 --- /dev/null +++ b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_infra1/testbed_vm.json @@ -0,0 +1,48 @@ +{ + "devices": [ + { + "friendlyName":"DENT infrastructure 1", + "os":"dentos", + "type" : "INFRA_SWITCH", + "hostName": "infra1", + "model": "arm64-accton-as5114-48x-r0", + "ip": "10.36.118.45", + "login":{ + "userName":"root", + "password":"onl" + }, + "serialDev":"/dev/ttyUSB0", + "baudrate": 115200, + "mediaMode":"fiber", + "links" : [ + ["swp5", "infra1:swp6"], + ["swp7", "infra1:swp8"], + ["swp9", "infra1:swp10"] + ] + }, + { + "friendlyName":"Ixia Traffic Generator", + "os":"ixnetwork", + "type" : "TRAFFIC_GENERATOR", + "hostName": "ixia", + "model": "VM", + "ip": "10.36.118.112", + "login":{ + "userName":"admin", + "password":"dentTestPass_121314" + }, + "serialDev":"/dev/ttyUSBXX", + "baudrate": 115200, + "mediaMode":"fiber", + "links" : [ + ["10.36.118.150:1:1", "infra1:swp1", "fiber"], + ["10.36.118.150:2:1", "infra1:swp2", "fiber"], + ["10.36.118.150:3:1", "infra1:swp3", "fiber"], + ["10.36.118.150:4:1", "infra1:swp4", "fiber"] + ] + } + ], + "operator" : "dent", + "topology" : "bachelor", + "force_discovery" : false +} diff --git a/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_infra2/infra2/DHCP b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_infra2/infra2/DHCP new file mode 100644 index 000000000..71a641ce4 --- /dev/null +++ b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_infra2/infra2/DHCP @@ -0,0 +1,6 @@ +# +# ISC dhcpd configuration +# + + +option domain-name "dentlab-infra2"; diff --git a/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_infra2/infra2/HOSTNAME b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_infra2/infra2/HOSTNAME new file mode 100644 index 000000000..4da8a2c6c --- /dev/null +++ b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_infra2/infra2/HOSTNAME @@ -0,0 +1 @@ +dentlab-infra2 diff --git a/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_infra2/infra2/HOSTS b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_infra2/infra2/HOSTS new file mode 100644 index 000000000..b393f6cb4 --- /dev/null +++ b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_infra2/infra2/HOSTS @@ -0,0 +1,5 @@ +127.0.0.1 localhost +::1 localhost ip6-localhost ip6-loopback +ff02::1 ip6-allnodes +ff02::2 ip6-allrouters +127.0.1.1 dentlab-infra2 diff --git a/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_infra2/infra2/KEEPALIVED_CONF b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_infra2/infra2/KEEPALIVED_CONF new file mode 100644 index 000000000..e69de29bb diff --git a/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_infra2/infra2/NETWORK_INTERFACES b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_infra2/infra2/NETWORK_INTERFACES new file mode 100644 index 000000000..503accc61 --- /dev/null +++ b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_infra2/infra2/NETWORK_INTERFACES @@ -0,0 +1,16 @@ +# +# ONL format of dent interfaces +# +# This file describes the network interfaces available on your system +# and how to activate them. For more information, see interfaces(5). + +source /etc/network/interfaces.d/*.intf + +# The loopback network interface +auto lo +iface lo inet loopback + address 20.20.0.1/32 + +# The management interface +auto ma1 +iface ma1 inet dhcp diff --git a/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_infra2/infra2/NTP b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_infra2/infra2/NTP new file mode 100644 index 000000000..a1d5f18ff --- /dev/null +++ b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_infra2/infra2/NTP @@ -0,0 +1,59 @@ +# /etc/ntp.conf, configuration for ntpd; see ntp.conf(5) for help + + +driftfile /var/lib/ntp/ntp.drift + + +# Enable this if you want statistics to be logged. +#statsdir /var/log/ntpstats/ + +statistics loopstats peerstats clockstats +filegen loopstats file loopstats type day enable +filegen peerstats file peerstats type day enable +filegen clockstats file clockstats type day enable + + +# You do need to talk to an NTP server or two (or three). +#server ntp.your-provider.example + + +# pool.ntp.org maps to about 1000 low-stratum NTP servers. Your server will +# pick a different set every time it starts up. Please consider joining the +# pool: +# + +# Access control configuration; see /usr/share/doc/ntp-doc/html/accopt.html for +# details. The web page +# might also be helpful. +# +# Note that "restrict" applies to both servers and clients, so a configuration +# that might be intended to block requests from certain clients could also end +# up blocking replies from your own upstream servers. + +# By default, exchange time with everybody, but don't allow configuration. +restrict -4 default kod notrap nomodify nopeer noquery +restrict -6 default kod notrap nomodify nopeer noquery + +# Local users may interrogate the ntp server more closely. +restrict 127.0.0.1 +restrict ::1 + +# Clients from this (example!) subnet have unlimited access, but only if +# cryptographically authenticated. +#restrict 192.168.123.0 mask 255.255.255.0 notrust + + +# If you want to provide time to your local subnet, change the next line. +# (Again, the address is an example only.) +#broadcast 192.168.123.255 + +# If you want to listen to time broadcasts on your local subnet, de-comment the +# next lines. Please do this only if you trust everybody on the network! +#disable auth +#broadcastclient + +# Specify interfaces, don't listen on switch ports +#interface listen ma1 +interface listen lo +interface listen lo:0 +interface listen dummy0 diff --git a/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_infra2/infra2/QUAGGA_CONFIG b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_infra2/infra2/QUAGGA_CONFIG new file mode 100644 index 000000000..da730d8f1 --- /dev/null +++ b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_infra2/infra2/QUAGGA_CONFIG @@ -0,0 +1,11 @@ +username cumulus nopassword +! +service integrated-vtysh-config +! +log timestamp precision 6 +! +no zebra nexthop kernel enable +! +line vty +! +end diff --git a/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_infra2/infra2/QUAGGA_DAEMONS b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_infra2/infra2/QUAGGA_DAEMONS new file mode 100644 index 000000000..cff453039 --- /dev/null +++ b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_infra2/infra2/QUAGGA_DAEMONS @@ -0,0 +1,30 @@ +# This file tells the quagga package which daemons to start. +# +# Entries are in the format: =(yes|no|priority) +# 0, "no" = disabled +# 1, "yes" = highest priority +# 2 .. 10 = lower priorities +# Read /usr/share/doc/quagga/README.Debian for details. +# +# Sample configurations for these daemons can be found in +# /usr/share/doc/quagga/examples/. +# +# ATTENTION: +# +# When activation a daemon at the first time, a config file, even if it is +# empty, has to be present *and* be owned by the user and group "quagga", else +# the daemon will not be started by /etc/init.d/quagga. The permissions should +# be u=rw,g=r,o=. +# When using "vtysh" such a config file is also needed. It should be owned by +# group "quaggavty" and set to ug=rw,o= though. Check /etc/pam.d/quagga, too. +# +# The watchquagga daemon is always started. Per default in monitoring-only but +# that can be changed via /etc/quagga/debian.conf. +# +zebra=yes +bgpd=yes +ospfd=no +ospf6d=no +ripd=no +ripngd=no +isisd=no diff --git a/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_infra2/infra2/QUAGGA_VTYSH b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_infra2/infra2/QUAGGA_VTYSH new file mode 100644 index 000000000..f7114f4b9 --- /dev/null +++ b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_infra2/infra2/QUAGGA_VTYSH @@ -0,0 +1,3 @@ +username cumulus nopassword +! +service integrated-vtysh-config diff --git a/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_infra2/infra2/RESOLV b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_infra2/infra2/RESOLV new file mode 100644 index 000000000..cae093a83 --- /dev/null +++ b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_infra2/infra2/RESOLV @@ -0,0 +1 @@ +nameserver 8.8.8.8 diff --git a/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_infra2/infra2/SSHD_CONF b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_infra2/infra2/SSHD_CONF new file mode 100644 index 000000000..e9506ff64 --- /dev/null +++ b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_infra2/infra2/SSHD_CONF @@ -0,0 +1,88 @@ +# Package generated configuration file +# See the sshd_config(5) manpage for details + +# What ports, IPs and protocols we listen for +Port 22 +# Use these options to restrict which interfaces/protocols sshd will bind to +#ListenAddress :: +ListenAddress 0.0.0.0 +Protocol 2 +# HostKeys for protocol version 2 +HostKey /etc/ssh/ssh_host_rsa_key +HostKey /etc/ssh/ssh_host_dsa_key +HostKey /etc/ssh/ssh_host_ecdsa_key +HostKey /etc/ssh/ssh_host_ed25519_key +#Privilege Separation is turned on for security +UsePrivilegeSeparation yes + +# Lifetime and size of ephemeral version 1 server key +KeyRegenerationInterval 3600 +ServerKeyBits 1024 + +# Logging +SyslogFacility AUTH +LogLevel INFO + +# Authentication: +LoginGraceTime 120 +PermitRootLogin yes +StrictModes yes + +RSAAuthentication yes +PubkeyAuthentication yes +#AuthorizedKeysFile %h/.ssh/authorized_keys + +# Don't read the user's ~/.rhosts and ~/.shosts files +IgnoreRhosts yes +# For this to work you will also need host keys in /etc/ssh_known_hosts +RhostsRSAAuthentication no +# similar for protocol version 2 +HostbasedAuthentication no +# Uncomment if you don't trust ~/.ssh/known_hosts for RhostsRSAAuthentication +#IgnoreUserKnownHosts yes + +# To enable empty passwords, change to yes (NOT RECOMMENDED) +PermitEmptyPasswords no + +# Change to yes to enable challenge-response passwords (beware issues with +# some PAM modules and threads) +ChallengeResponseAuthentication no + +# Change to no to disable tunnelled clear text passwords +PasswordAuthentication yes + +# Kerberos options +#KerberosAuthentication no +#KerberosGetAFSToken no +#KerberosOrLocalPasswd yes +#KerberosTicketCleanup yes + +# GSSAPI options +#GSSAPIAuthentication no +#GSSAPICleanupCredentials yes + +X11Forwarding yes +X11DisplayOffset 10 +PrintMotd no +PrintLastLog yes +TCPKeepAlive yes +#UseLogin no + +#MaxStartups 10:30:60 +#Banner /etc/issue.net + +# Allow client to pass locale environment variables +AcceptEnv LANG LC_* + +Subsystem sftp /usr/lib/openssh/sftp-server + +# Set this to 'yes' to enable PAM authentication, account processing, +# and session processing. If this is enabled, PAM authentication will +# be allowed through the ChallengeResponseAuthentication and +# PasswordAuthentication. Depending on your PAM configuration, +# PAM authentication via ChallengeResponseAuthentication may bypass +# the setting of "PermitRootLogin without-password". +# If you just want the PAM account and session checks to run without +# PAM authentication, then enable this but set PasswordAuthentication +# and ChallengeResponseAuthentication to 'no'. +UsePAM yes diff --git a/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_infra2/testbed.json b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_infra2/testbed.json new file mode 100644 index 000000000..791f9bd05 --- /dev/null +++ b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/basic_infra2/testbed.json @@ -0,0 +1,60 @@ +{ + "devices": [ + { + "friendlyName":"Dent infra2", + "os":"dentos", + "type" : "INFRA_SWITCH", + "hostName": "infra2", + "model": "arm64-delta-tn48m-poe-dn-r0", + "ip": "10.36.118.23", + "login":{ + "userName":"root", + "password":"onl" + }, + "cpuArchitecture": "arm", + "macAddress": "18:BE:92:13:64:80", + "serialConsole": { + "ip": "10.36.118.200", + "port": 7011 + }, + "pdu": { + "ip": "10.36.118.201", + "login": "dent", + "password": "dent123!", + "number": "12" + }, + "serialDev":"/dev/ttyUSB0", + "baudrate": 115200, + "mediaMode":"copper", + "links" : [ + ["swp5", "infra2:swp6"], + ["swp7", "infra2:swp8"], + ["swp9", "infra2:swp10"] + ] + }, + { + "friendlyName":"Ixia Traffic Generator", + "os":"ixnetwork", + "type" : "TRAFFIC_GENERATOR", + "hostName": "ixia", + "model": "Novus10G", + "ip": "10.36.118.213", + "login":{ + "userName":"admin", + "password":"admin" + }, + "serialDev":"/dev/ttyUSBXX", + "baudrate": 115200, + "mediaMode":"mixed", + "links" : [ + ["10.36.118.199:1:13", "infra2:swp1", "copper"], + ["10.36.118.199:1:14", "infra2:swp2", "copper"], + ["10.36.118.199:1:15", "infra2:swp3", "copper"], + ["10.36.118.199:1:16", "infra2:swp4", "copper"] + ] + } + ], + "operator" : "dent", + "topology" : "bachelor", + "force_discovery" : false +} diff --git a/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/README.md b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/README.md new file mode 100644 index 000000000..e69de29bb diff --git a/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/agg1/DHCP b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/agg1/DHCP new file mode 100644 index 000000000..4a0ac7141 --- /dev/null +++ b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/agg1/DHCP @@ -0,0 +1,6 @@ +# +# ISC dhcpd configuration +# + + +option domain-name "test"; diff --git a/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/agg1/HOSTNAME b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/agg1/HOSTNAME new file mode 100644 index 000000000..120609193 --- /dev/null +++ b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/agg1/HOSTNAME @@ -0,0 +1 @@ +dentlab-agg1 diff --git a/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/agg1/HOSTS b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/agg1/HOSTS new file mode 100644 index 000000000..4eb7373c1 --- /dev/null +++ b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/agg1/HOSTS @@ -0,0 +1,5 @@ +127.0.0.1 localhost +::1 localhost ip6-localhost ip6-loopback +ff02::1 ip6-allnodes +ff02::2 ip6-allrouters +127.0.1.1 dentlab-agg1 diff --git a/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/agg1/NETWORK_INTERFACES b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/agg1/NETWORK_INTERFACES new file mode 100644 index 000000000..b22c9fbdd --- /dev/null +++ b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/agg1/NETWORK_INTERFACES @@ -0,0 +1,51 @@ +# +# ONL format of dent interfaces +# +# This file describes the network interfaces available on your system +# and how to activate them. For more information, see interfaces(5). + +source /etc/network/interfaces.d/*.intf + +# The loopback network interface +auto lo +iface lo inet loopback + address 20.20.0.3/32 + +# The management interface +auto ma1 +iface ma1 inet dhcp + +auto swp13 +iface swp13 inet static +alias DIST1 SWP13 + address 20.20.96.2/30 + +auto swp47 +iface swp47 inet static +alias INFRA1 SWP49 + address 20.20.96.18/30 + +auto swp48 +iface swp48 inet static +alias INFRA2 SWP49 + address 20.20.96.22/30 + +auto swp1 +iface swp1 inet static +alias IXIA LINK + address 22.1.9.1/24 + +auto swp2 +iface swp2 inet static +alias IXIA LINK + address 22.1.10.1/24 + +auto swp3 +iface swp3 inet static +alias IXIA LINK + address 22.1.11.1/24 + +auto swp4 +iface swp4 inet static +alias IXIA LINK + address 22.1.12.1/24 diff --git a/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/agg1/NTP b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/agg1/NTP new file mode 100644 index 000000000..4c041b9dc --- /dev/null +++ b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/agg1/NTP @@ -0,0 +1,60 @@ + +# /etc/ntp.conf, configuration for ntpd; see ntp.conf(5) for help + + +driftfile /var/lib/ntp/ntp.drift + + +# Enable this if you want statistics to be logged. +#statsdir /var/log/ntpstats/ + +statistics loopstats peerstats clockstats +filegen loopstats file loopstats type day enable +filegen peerstats file peerstats type day enable +filegen clockstats file clockstats type day enable + + +# You do need to talk to an NTP server or two (or three). +#server ntp.your-provider.example + + +# pool.ntp.org maps to about 1000 low-stratum NTP servers. Your server will +# pick a different set every time it starts up. Please consider joining the +# pool: +# + +# Access control configuration; see /usr/share/doc/ntp-doc/html/accopt.html for +# details. The web page +# might also be helpful. +# +# Note that "restrict" applies to both servers and clients, so a configuration +# that might be intended to block requests from certain clients could also end +# up blocking replies from your own upstream servers. + +# By default, exchange time with everybody, but don't allow configuration. +restrict -4 default kod notrap nomodify nopeer noquery +restrict -6 default kod notrap nomodify nopeer noquery + +# Local users may interrogate the ntp server more closely. +restrict 127.0.0.1 +restrict ::1 + +# Clients from this (example!) subnet have unlimited access, but only if +# cryptographically authenticated. +#restrict 192.168.123.0 mask 255.255.255.0 notrust + + +# If you want to provide time to your local subnet, change the next line. +# (Again, the address is an example only.) +#broadcast 192.168.123.255 + +# If you want to listen to time broadcasts on your local subnet, de-comment the +# next lines. Please do this only if you trust everybody on the network! +#disable auth +#broadcastclient + +# Specify interfaces, don't listen on switch ports +#interface listen eth0 +interface listen lo +interface listen lo:0 +interface listen dummy0 diff --git a/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/agg1/QUAGGA_CONFIG b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/agg1/QUAGGA_CONFIG new file mode 100644 index 000000000..6afe13c4a --- /dev/null +++ b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/agg1/QUAGGA_CONFIG @@ -0,0 +1,57 @@ +username cumulus nopassword +! +service integrated-vtysh-config +! +log timestamp precision 6 +! +no zebra nexthop kernel enable +! +router bgp 65511 + bgp router-id 20.20.0.3 + no bgp ebgp-requires-policy + neighbor INFRA peer-group + neighbor INFRA remote-as 65534 + neighbor INFRA timers 3 10 + neighbor IXIA peer-group + neighbor IXIA remote-as 200 + neighbor IXIA timers 3 10 + neighbor SPINE peer-group + neighbor SPINE remote-as 65535 + neighbor SPINE timers 3 10 + neighbor 20.20.96.1 peer-group SPINE + neighbor 20.20.96.17 peer-group INFRA + neighbor 20.20.96.21 peer-group INFRA + neighbor 22.1.9.2 peer-group IXIA + ! + address-family ipv4 unicast + network 20.20.0.3/32 + redistribute connected + neighbor ACCESS next-hop-self + neighbor ACCESS soft-reconfiguration inbound + neighbor ACCESS route-map TO-INFRA out + neighbor INFRA next-hop-self + neighbor INFRA soft-reconfiguration inbound + neighbor INFRA route-map TO-INFRA out + neighbor SPINE next-hop-self + neighbor SPINE soft-reconfiguration inbound + neighbor IXIA soft-reconfiguration inbound + exit-address-family +! +ip prefix-list DEFAULT-ROUTE seq 10 permit 0.0.0.0/0 +! +route-map TO-SPINE-SHIFT-OFF deny 20 + match ip address prefix-list DEFAULT-ROUTE +! +route-map TO-SPINE-SHIFT-OFF permit 40 + set metric 100000 +! +route-map TO-INFRA-SHIFT-OFF permit 10 + set community no-advertise + set metric 100000 +! +route-map TO-INFRA permit 10 + set community no-advertise +! +line vty +! +end diff --git a/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/agg1/QUAGGA_DAEMONS b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/agg1/QUAGGA_DAEMONS new file mode 100644 index 000000000..cff453039 --- /dev/null +++ b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/agg1/QUAGGA_DAEMONS @@ -0,0 +1,30 @@ +# This file tells the quagga package which daemons to start. +# +# Entries are in the format: =(yes|no|priority) +# 0, "no" = disabled +# 1, "yes" = highest priority +# 2 .. 10 = lower priorities +# Read /usr/share/doc/quagga/README.Debian for details. +# +# Sample configurations for these daemons can be found in +# /usr/share/doc/quagga/examples/. +# +# ATTENTION: +# +# When activation a daemon at the first time, a config file, even if it is +# empty, has to be present *and* be owned by the user and group "quagga", else +# the daemon will not be started by /etc/init.d/quagga. The permissions should +# be u=rw,g=r,o=. +# When using "vtysh" such a config file is also needed. It should be owned by +# group "quaggavty" and set to ug=rw,o= though. Check /etc/pam.d/quagga, too. +# +# The watchquagga daemon is always started. Per default in monitoring-only but +# that can be changed via /etc/quagga/debian.conf. +# +zebra=yes +bgpd=yes +ospfd=no +ospf6d=no +ripd=no +ripngd=no +isisd=no diff --git a/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/agg1/QUAGGA_VTYSH b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/agg1/QUAGGA_VTYSH new file mode 100644 index 000000000..f7114f4b9 --- /dev/null +++ b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/agg1/QUAGGA_VTYSH @@ -0,0 +1,3 @@ +username cumulus nopassword +! +service integrated-vtysh-config diff --git a/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/agg1/RESOLV b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/agg1/RESOLV new file mode 100644 index 000000000..cae093a83 --- /dev/null +++ b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/agg1/RESOLV @@ -0,0 +1 @@ +nameserver 8.8.8.8 diff --git a/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/agg1/SSHD_CONF b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/agg1/SSHD_CONF new file mode 100644 index 000000000..e9506ff64 --- /dev/null +++ b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/agg1/SSHD_CONF @@ -0,0 +1,88 @@ +# Package generated configuration file +# See the sshd_config(5) manpage for details + +# What ports, IPs and protocols we listen for +Port 22 +# Use these options to restrict which interfaces/protocols sshd will bind to +#ListenAddress :: +ListenAddress 0.0.0.0 +Protocol 2 +# HostKeys for protocol version 2 +HostKey /etc/ssh/ssh_host_rsa_key +HostKey /etc/ssh/ssh_host_dsa_key +HostKey /etc/ssh/ssh_host_ecdsa_key +HostKey /etc/ssh/ssh_host_ed25519_key +#Privilege Separation is turned on for security +UsePrivilegeSeparation yes + +# Lifetime and size of ephemeral version 1 server key +KeyRegenerationInterval 3600 +ServerKeyBits 1024 + +# Logging +SyslogFacility AUTH +LogLevel INFO + +# Authentication: +LoginGraceTime 120 +PermitRootLogin yes +StrictModes yes + +RSAAuthentication yes +PubkeyAuthentication yes +#AuthorizedKeysFile %h/.ssh/authorized_keys + +# Don't read the user's ~/.rhosts and ~/.shosts files +IgnoreRhosts yes +# For this to work you will also need host keys in /etc/ssh_known_hosts +RhostsRSAAuthentication no +# similar for protocol version 2 +HostbasedAuthentication no +# Uncomment if you don't trust ~/.ssh/known_hosts for RhostsRSAAuthentication +#IgnoreUserKnownHosts yes + +# To enable empty passwords, change to yes (NOT RECOMMENDED) +PermitEmptyPasswords no + +# Change to yes to enable challenge-response passwords (beware issues with +# some PAM modules and threads) +ChallengeResponseAuthentication no + +# Change to no to disable tunnelled clear text passwords +PasswordAuthentication yes + +# Kerberos options +#KerberosAuthentication no +#KerberosGetAFSToken no +#KerberosOrLocalPasswd yes +#KerberosTicketCleanup yes + +# GSSAPI options +#GSSAPIAuthentication no +#GSSAPICleanupCredentials yes + +X11Forwarding yes +X11DisplayOffset 10 +PrintMotd no +PrintLastLog yes +TCPKeepAlive yes +#UseLogin no + +#MaxStartups 10:30:60 +#Banner /etc/issue.net + +# Allow client to pass locale environment variables +AcceptEnv LANG LC_* + +Subsystem sftp /usr/lib/openssh/sftp-server + +# Set this to 'yes' to enable PAM authentication, account processing, +# and session processing. If this is enabled, PAM authentication will +# be allowed through the ChallengeResponseAuthentication and +# PasswordAuthentication. Depending on your PAM configuration, +# PAM authentication via ChallengeResponseAuthentication may bypass +# the setting of "PermitRootLogin without-password". +# If you just want the PAM account and session checks to run without +# PAM authentication, then enable this but set PasswordAuthentication +# and ChallengeResponseAuthentication to 'no'. +UsePAM yes diff --git a/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/agg2/DHCP b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/agg2/DHCP new file mode 100644 index 000000000..4a0ac7141 --- /dev/null +++ b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/agg2/DHCP @@ -0,0 +1,6 @@ +# +# ISC dhcpd configuration +# + + +option domain-name "test"; diff --git a/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/agg2/HOSTNAME b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/agg2/HOSTNAME new file mode 100644 index 000000000..d2a1e700b --- /dev/null +++ b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/agg2/HOSTNAME @@ -0,0 +1 @@ +dentlab-agg2 diff --git a/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/agg2/HOSTS b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/agg2/HOSTS new file mode 100644 index 000000000..5b2c86186 --- /dev/null +++ b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/agg2/HOSTS @@ -0,0 +1,5 @@ +127.0.0.1 localhost +::1 localhost ip6-localhost ip6-loopback +ff02::1 ip6-allnodes +ff02::2 ip6-allrouters +127.0.1.1 dentlab-agg2 diff --git a/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/agg2/NETWORK_INTERFACES b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/agg2/NETWORK_INTERFACES new file mode 100644 index 000000000..7f77db77a --- /dev/null +++ b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/agg2/NETWORK_INTERFACES @@ -0,0 +1,41 @@ +# +# ONL format of dent interfaces +# +# This file describes the network interfaces available on your system +# and how to activate them. For more information, see interfaces(5). + +source /etc/network/interfaces.d/*.intf + +# The loopback network interface +auto lo +iface lo inet loopback + address 20.20.0.4/32 + +# The management interface +auto ma1 +iface ma1 inet dhcp + +auto swp14 +iface swp14 inet static +alias DIST1 SWP14 + address 20.20.96.126/30 + +auto swp47 +iface swp47 inet static +alias INFRA1 SWP50 + address 20.20.96.26/30 + +auto swp48 +iface swp48 inet static +alias INFRA2 SWP50 + address 20.20.96.30/30 + +auto swp1 +iface swp1 inet static +alias IXIA LINK + address 22.2.9.1/24 + +auto swp2 +iface swp2 inet static +alias IXIA LINK + address 22.2.10.1/24 diff --git a/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/agg2/NTP b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/agg2/NTP new file mode 100644 index 000000000..4c041b9dc --- /dev/null +++ b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/agg2/NTP @@ -0,0 +1,60 @@ + +# /etc/ntp.conf, configuration for ntpd; see ntp.conf(5) for help + + +driftfile /var/lib/ntp/ntp.drift + + +# Enable this if you want statistics to be logged. +#statsdir /var/log/ntpstats/ + +statistics loopstats peerstats clockstats +filegen loopstats file loopstats type day enable +filegen peerstats file peerstats type day enable +filegen clockstats file clockstats type day enable + + +# You do need to talk to an NTP server or two (or three). +#server ntp.your-provider.example + + +# pool.ntp.org maps to about 1000 low-stratum NTP servers. Your server will +# pick a different set every time it starts up. Please consider joining the +# pool: +# + +# Access control configuration; see /usr/share/doc/ntp-doc/html/accopt.html for +# details. The web page +# might also be helpful. +# +# Note that "restrict" applies to both servers and clients, so a configuration +# that might be intended to block requests from certain clients could also end +# up blocking replies from your own upstream servers. + +# By default, exchange time with everybody, but don't allow configuration. +restrict -4 default kod notrap nomodify nopeer noquery +restrict -6 default kod notrap nomodify nopeer noquery + +# Local users may interrogate the ntp server more closely. +restrict 127.0.0.1 +restrict ::1 + +# Clients from this (example!) subnet have unlimited access, but only if +# cryptographically authenticated. +#restrict 192.168.123.0 mask 255.255.255.0 notrust + + +# If you want to provide time to your local subnet, change the next line. +# (Again, the address is an example only.) +#broadcast 192.168.123.255 + +# If you want to listen to time broadcasts on your local subnet, de-comment the +# next lines. Please do this only if you trust everybody on the network! +#disable auth +#broadcastclient + +# Specify interfaces, don't listen on switch ports +#interface listen eth0 +interface listen lo +interface listen lo:0 +interface listen dummy0 diff --git a/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/agg2/QUAGGA_CONFIG b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/agg2/QUAGGA_CONFIG new file mode 100644 index 000000000..0899b7b8b --- /dev/null +++ b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/agg2/QUAGGA_CONFIG @@ -0,0 +1,57 @@ +username cumulus nopassword +! +service integrated-vtysh-config +! +log timestamp precision 6 +! +no zebra nexthop kernel enable +! +router bgp 65511 + bgp router-id 20.20.0.4 + no bgp ebgp-requires-policy + neighbor INFRA peer-group + neighbor INFRA remote-as 65534 + neighbor INFRA timers 3 10 + neighbor IXIA peer-group + neighbor IXIA remote-as 200 + neighbor IXIA timers 3 10 + neighbor SPINE peer-group + neighbor SPINE remote-as 65535 + neighbor SPINE timers 3 10 + neighbor 20.20.96.125 peer-group SPINE + neighbor 20.20.96.25 peer-group INFRA + neighbor 20.20.96.29 peer-group INFRA + neighbor 22.2.9.2 peer-group IXIA + ! + address-family ipv4 unicast + network 20.20.0.3/32 + redistribute connected + neighbor ACCESS next-hop-self + neighbor ACCESS soft-reconfiguration inbound + neighbor ACCESS route-map TO-INFRA out + neighbor INFRA next-hop-self + neighbor INFRA soft-reconfiguration inbound + neighbor INFRA route-map TO-INFRA out + neighbor SPINE next-hop-self + neighbor SPINE soft-reconfiguration inbound + neighbor IXIA soft-reconfiguration inbound + exit-address-family +! +ip prefix-list DEFAULT-ROUTE seq 10 permit 0.0.0.0/0 +! +route-map TO-SPINE-SHIFT-OFF deny 20 + match ip address prefix-list DEFAULT-ROUTE +! +route-map TO-SPINE-SHIFT-OFF permit 40 + set metric 100000 +! +route-map TO-INFRA-SHIFT-OFF permit 10 + set community no-advertise + set metric 100000 +! +route-map TO-INFRA permit 10 + set community no-advertise +! +line vty +! +end diff --git a/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/agg2/QUAGGA_DAEMONS b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/agg2/QUAGGA_DAEMONS new file mode 100644 index 000000000..cff453039 --- /dev/null +++ b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/agg2/QUAGGA_DAEMONS @@ -0,0 +1,30 @@ +# This file tells the quagga package which daemons to start. +# +# Entries are in the format: =(yes|no|priority) +# 0, "no" = disabled +# 1, "yes" = highest priority +# 2 .. 10 = lower priorities +# Read /usr/share/doc/quagga/README.Debian for details. +# +# Sample configurations for these daemons can be found in +# /usr/share/doc/quagga/examples/. +# +# ATTENTION: +# +# When activation a daemon at the first time, a config file, even if it is +# empty, has to be present *and* be owned by the user and group "quagga", else +# the daemon will not be started by /etc/init.d/quagga. The permissions should +# be u=rw,g=r,o=. +# When using "vtysh" such a config file is also needed. It should be owned by +# group "quaggavty" and set to ug=rw,o= though. Check /etc/pam.d/quagga, too. +# +# The watchquagga daemon is always started. Per default in monitoring-only but +# that can be changed via /etc/quagga/debian.conf. +# +zebra=yes +bgpd=yes +ospfd=no +ospf6d=no +ripd=no +ripngd=no +isisd=no diff --git a/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/agg2/QUAGGA_VTYSH b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/agg2/QUAGGA_VTYSH new file mode 100644 index 000000000..f7114f4b9 --- /dev/null +++ b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/agg2/QUAGGA_VTYSH @@ -0,0 +1,3 @@ +username cumulus nopassword +! +service integrated-vtysh-config diff --git a/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/agg2/RESOLV b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/agg2/RESOLV new file mode 100644 index 000000000..cae093a83 --- /dev/null +++ b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/agg2/RESOLV @@ -0,0 +1 @@ +nameserver 8.8.8.8 diff --git a/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/agg2/SSHD_CONF b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/agg2/SSHD_CONF new file mode 100644 index 000000000..e9506ff64 --- /dev/null +++ b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/agg2/SSHD_CONF @@ -0,0 +1,88 @@ +# Package generated configuration file +# See the sshd_config(5) manpage for details + +# What ports, IPs and protocols we listen for +Port 22 +# Use these options to restrict which interfaces/protocols sshd will bind to +#ListenAddress :: +ListenAddress 0.0.0.0 +Protocol 2 +# HostKeys for protocol version 2 +HostKey /etc/ssh/ssh_host_rsa_key +HostKey /etc/ssh/ssh_host_dsa_key +HostKey /etc/ssh/ssh_host_ecdsa_key +HostKey /etc/ssh/ssh_host_ed25519_key +#Privilege Separation is turned on for security +UsePrivilegeSeparation yes + +# Lifetime and size of ephemeral version 1 server key +KeyRegenerationInterval 3600 +ServerKeyBits 1024 + +# Logging +SyslogFacility AUTH +LogLevel INFO + +# Authentication: +LoginGraceTime 120 +PermitRootLogin yes +StrictModes yes + +RSAAuthentication yes +PubkeyAuthentication yes +#AuthorizedKeysFile %h/.ssh/authorized_keys + +# Don't read the user's ~/.rhosts and ~/.shosts files +IgnoreRhosts yes +# For this to work you will also need host keys in /etc/ssh_known_hosts +RhostsRSAAuthentication no +# similar for protocol version 2 +HostbasedAuthentication no +# Uncomment if you don't trust ~/.ssh/known_hosts for RhostsRSAAuthentication +#IgnoreUserKnownHosts yes + +# To enable empty passwords, change to yes (NOT RECOMMENDED) +PermitEmptyPasswords no + +# Change to yes to enable challenge-response passwords (beware issues with +# some PAM modules and threads) +ChallengeResponseAuthentication no + +# Change to no to disable tunnelled clear text passwords +PasswordAuthentication yes + +# Kerberos options +#KerberosAuthentication no +#KerberosGetAFSToken no +#KerberosOrLocalPasswd yes +#KerberosTicketCleanup yes + +# GSSAPI options +#GSSAPIAuthentication no +#GSSAPICleanupCredentials yes + +X11Forwarding yes +X11DisplayOffset 10 +PrintMotd no +PrintLastLog yes +TCPKeepAlive yes +#UseLogin no + +#MaxStartups 10:30:60 +#Banner /etc/issue.net + +# Allow client to pass locale environment variables +AcceptEnv LANG LC_* + +Subsystem sftp /usr/lib/openssh/sftp-server + +# Set this to 'yes' to enable PAM authentication, account processing, +# and session processing. If this is enabled, PAM authentication will +# be allowed through the ChallengeResponseAuthentication and +# PasswordAuthentication. Depending on your PAM configuration, +# PAM authentication via ChallengeResponseAuthentication may bypass +# the setting of "PermitRootLogin without-password". +# If you just want the PAM account and session checks to run without +# PAM authentication, then enable this but set PasswordAuthentication +# and ChallengeResponseAuthentication to 'no'. +UsePAM yes diff --git a/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/dist1/DHCP b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/dist1/DHCP new file mode 100644 index 000000000..4a0ac7141 --- /dev/null +++ b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/dist1/DHCP @@ -0,0 +1,6 @@ +# +# ISC dhcpd configuration +# + + +option domain-name "test"; diff --git a/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/dist1/HOSTNAME b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/dist1/HOSTNAME new file mode 100644 index 000000000..337e5d21e --- /dev/null +++ b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/dist1/HOSTNAME @@ -0,0 +1 @@ +dentlab-dist1 diff --git a/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/dist1/HOSTS b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/dist1/HOSTS new file mode 100644 index 000000000..a1a37aa65 --- /dev/null +++ b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/dist1/HOSTS @@ -0,0 +1,5 @@ +127.0.0.1 localhost +::1 localhost ip6-localhost ip6-loopback +ff02::1 ip6-allnodes +ff02::2 ip6-allrouters +127.0.1.1 dentlab-dist1 diff --git a/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/dist1/NETWORK_INTERFACES b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/dist1/NETWORK_INTERFACES new file mode 100644 index 000000000..7c80f4547 --- /dev/null +++ b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/dist1/NETWORK_INTERFACES @@ -0,0 +1,46 @@ +# +# ONL format of dent interfaces +# +# This file describes the network interfaces available on your system +# and how to activate them. For more information, see interfaces(5). + +source /etc/network/interfaces.d/*.intf + +# The loopback network interface +auto lo +iface lo inet loopback + address 20.20.0.1/32 + +# The management interface +auto ma1 +iface ma1 inet dhcp + +auto swp13 +iface swp13 inet static +alias AGG1 SWP13 + address 20.20.96.1/30 + +auto swp14 +iface swp14 inet static +alias AGG2 SWP14 + address 20.20.96.125/30 + +auto swp1 +iface swp1 inet static +alias IXIA LINK + address 21.1.9.1/24 + +auto swp2 +iface swp2 inet static +alias IXIA LINK + address 21.1.10.1/24 + +auto swp3 +iface swp3 inet static +alias IXIA LINK + address 21.1.11.1/24 + +auto swp4 +iface swp4 inet static +alias IXIA LINK + address 21.1.12.1/24 diff --git a/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/dist1/NTP b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/dist1/NTP new file mode 100644 index 000000000..4c041b9dc --- /dev/null +++ b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/dist1/NTP @@ -0,0 +1,60 @@ + +# /etc/ntp.conf, configuration for ntpd; see ntp.conf(5) for help + + +driftfile /var/lib/ntp/ntp.drift + + +# Enable this if you want statistics to be logged. +#statsdir /var/log/ntpstats/ + +statistics loopstats peerstats clockstats +filegen loopstats file loopstats type day enable +filegen peerstats file peerstats type day enable +filegen clockstats file clockstats type day enable + + +# You do need to talk to an NTP server or two (or three). +#server ntp.your-provider.example + + +# pool.ntp.org maps to about 1000 low-stratum NTP servers. Your server will +# pick a different set every time it starts up. Please consider joining the +# pool: +# + +# Access control configuration; see /usr/share/doc/ntp-doc/html/accopt.html for +# details. The web page +# might also be helpful. +# +# Note that "restrict" applies to both servers and clients, so a configuration +# that might be intended to block requests from certain clients could also end +# up blocking replies from your own upstream servers. + +# By default, exchange time with everybody, but don't allow configuration. +restrict -4 default kod notrap nomodify nopeer noquery +restrict -6 default kod notrap nomodify nopeer noquery + +# Local users may interrogate the ntp server more closely. +restrict 127.0.0.1 +restrict ::1 + +# Clients from this (example!) subnet have unlimited access, but only if +# cryptographically authenticated. +#restrict 192.168.123.0 mask 255.255.255.0 notrust + + +# If you want to provide time to your local subnet, change the next line. +# (Again, the address is an example only.) +#broadcast 192.168.123.255 + +# If you want to listen to time broadcasts on your local subnet, de-comment the +# next lines. Please do this only if you trust everybody on the network! +#disable auth +#broadcastclient + +# Specify interfaces, don't listen on switch ports +#interface listen eth0 +interface listen lo +interface listen lo:0 +interface listen dummy0 diff --git a/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/dist1/QUAGGA_CONFIG b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/dist1/QUAGGA_CONFIG new file mode 100644 index 000000000..fd3e02f58 --- /dev/null +++ b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/dist1/QUAGGA_CONFIG @@ -0,0 +1,50 @@ +username cumulus nopassword +! +service integrated-vtysh-config +! +log timestamp precision 6 +! +no zebra nexthop kernel enable +! +router bgp 65535 + bgp router-id 20.20.0.1 + no bgp ebgp-requires-policy + neighbor INFRA peer-group + neighbor INFRA remote-as 65534 + neighbor INFRA timers 3 10 + neighbor IXIA peer-group + neighbor IXIA remote-as 200 + neighbor IXIA timers 3 10 + neighbor POD peer-group + neighbor POD remote-as 65511 + neighbor POD timers 3 10 + neighbor 20.20.96.2 peer-group POD + neighbor 20.20.96.126 peer-group POD + neighbor 21.1.7.2 peer-group IXIA + ! + address-family ipv4 unicast + network 20.20.0.1/32 + redistribute connected + neighbor POD next-hop-self + neighbor POD soft-reconfiguration inbound + neighbor POD route-map FROM-POD in + neighbor INFRA next-hop-self + neighbor INFRA soft-reconfiguration inbound + neighbor INFRA route-map TO-INFRA out + neighbor IXIA soft-reconfiguration inbound + exit-address-family +! +ip prefix-list DEFAULT-ROUTE seq 10 permit 0.0.0.0/0 +! +route-map FROM-POD deny 10 + match ip address prefix-list DEFAULT-ROUTE +! +route-map FROM-POD permit 20 +! +route-map TO-INFRA permit 10 + set community no-advertise +! +line vty +! +end +! diff --git a/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/dist1/QUAGGA_DAEMONS b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/dist1/QUAGGA_DAEMONS new file mode 100644 index 000000000..cff453039 --- /dev/null +++ b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/dist1/QUAGGA_DAEMONS @@ -0,0 +1,30 @@ +# This file tells the quagga package which daemons to start. +# +# Entries are in the format: =(yes|no|priority) +# 0, "no" = disabled +# 1, "yes" = highest priority +# 2 .. 10 = lower priorities +# Read /usr/share/doc/quagga/README.Debian for details. +# +# Sample configurations for these daemons can be found in +# /usr/share/doc/quagga/examples/. +# +# ATTENTION: +# +# When activation a daemon at the first time, a config file, even if it is +# empty, has to be present *and* be owned by the user and group "quagga", else +# the daemon will not be started by /etc/init.d/quagga. The permissions should +# be u=rw,g=r,o=. +# When using "vtysh" such a config file is also needed. It should be owned by +# group "quaggavty" and set to ug=rw,o= though. Check /etc/pam.d/quagga, too. +# +# The watchquagga daemon is always started. Per default in monitoring-only but +# that can be changed via /etc/quagga/debian.conf. +# +zebra=yes +bgpd=yes +ospfd=no +ospf6d=no +ripd=no +ripngd=no +isisd=no diff --git a/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/dist1/QUAGGA_VTYSH b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/dist1/QUAGGA_VTYSH new file mode 100644 index 000000000..f7114f4b9 --- /dev/null +++ b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/dist1/QUAGGA_VTYSH @@ -0,0 +1,3 @@ +username cumulus nopassword +! +service integrated-vtysh-config diff --git a/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/dist1/RESOLV b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/dist1/RESOLV new file mode 100644 index 000000000..cae093a83 --- /dev/null +++ b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/dist1/RESOLV @@ -0,0 +1 @@ +nameserver 8.8.8.8 diff --git a/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/dist1/SSHD_CONF b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/dist1/SSHD_CONF new file mode 100644 index 000000000..e9506ff64 --- /dev/null +++ b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/dist1/SSHD_CONF @@ -0,0 +1,88 @@ +# Package generated configuration file +# See the sshd_config(5) manpage for details + +# What ports, IPs and protocols we listen for +Port 22 +# Use these options to restrict which interfaces/protocols sshd will bind to +#ListenAddress :: +ListenAddress 0.0.0.0 +Protocol 2 +# HostKeys for protocol version 2 +HostKey /etc/ssh/ssh_host_rsa_key +HostKey /etc/ssh/ssh_host_dsa_key +HostKey /etc/ssh/ssh_host_ecdsa_key +HostKey /etc/ssh/ssh_host_ed25519_key +#Privilege Separation is turned on for security +UsePrivilegeSeparation yes + +# Lifetime and size of ephemeral version 1 server key +KeyRegenerationInterval 3600 +ServerKeyBits 1024 + +# Logging +SyslogFacility AUTH +LogLevel INFO + +# Authentication: +LoginGraceTime 120 +PermitRootLogin yes +StrictModes yes + +RSAAuthentication yes +PubkeyAuthentication yes +#AuthorizedKeysFile %h/.ssh/authorized_keys + +# Don't read the user's ~/.rhosts and ~/.shosts files +IgnoreRhosts yes +# For this to work you will also need host keys in /etc/ssh_known_hosts +RhostsRSAAuthentication no +# similar for protocol version 2 +HostbasedAuthentication no +# Uncomment if you don't trust ~/.ssh/known_hosts for RhostsRSAAuthentication +#IgnoreUserKnownHosts yes + +# To enable empty passwords, change to yes (NOT RECOMMENDED) +PermitEmptyPasswords no + +# Change to yes to enable challenge-response passwords (beware issues with +# some PAM modules and threads) +ChallengeResponseAuthentication no + +# Change to no to disable tunnelled clear text passwords +PasswordAuthentication yes + +# Kerberos options +#KerberosAuthentication no +#KerberosGetAFSToken no +#KerberosOrLocalPasswd yes +#KerberosTicketCleanup yes + +# GSSAPI options +#GSSAPIAuthentication no +#GSSAPICleanupCredentials yes + +X11Forwarding yes +X11DisplayOffset 10 +PrintMotd no +PrintLastLog yes +TCPKeepAlive yes +#UseLogin no + +#MaxStartups 10:30:60 +#Banner /etc/issue.net + +# Allow client to pass locale environment variables +AcceptEnv LANG LC_* + +Subsystem sftp /usr/lib/openssh/sftp-server + +# Set this to 'yes' to enable PAM authentication, account processing, +# and session processing. If this is enabled, PAM authentication will +# be allowed through the ChallengeResponseAuthentication and +# PasswordAuthentication. Depending on your PAM configuration, +# PAM authentication via ChallengeResponseAuthentication may bypass +# the setting of "PermitRootLogin without-password". +# If you just want the PAM account and session checks to run without +# PAM authentication, then enable this but set PasswordAuthentication +# and ChallengeResponseAuthentication to 'no'. +UsePAM yes diff --git a/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/infra1/DHCP b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/infra1/DHCP new file mode 100644 index 000000000..4a0ac7141 --- /dev/null +++ b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/infra1/DHCP @@ -0,0 +1,6 @@ +# +# ISC dhcpd configuration +# + + +option domain-name "test"; diff --git a/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/infra1/HOSTNAME b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/infra1/HOSTNAME new file mode 100644 index 000000000..be88a8757 --- /dev/null +++ b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/infra1/HOSTNAME @@ -0,0 +1 @@ +dentlab-infra1 diff --git a/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/infra1/HOSTS b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/infra1/HOSTS new file mode 100644 index 000000000..f93ebae8a --- /dev/null +++ b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/infra1/HOSTS @@ -0,0 +1,5 @@ +127.0.0.1 localhost +::1 localhost ip6-localhost ip6-loopback +ff02::1 ip6-allnodes +ff02::2 ip6-allrouters +127.0.1.1 dentlab-infra1 diff --git a/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/infra1/KEEPALIVED_CONF b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/infra1/KEEPALIVED_CONF new file mode 100644 index 000000000..670ed74b9 --- /dev/null +++ b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/infra1/KEEPALIVED_CONF @@ -0,0 +1,37 @@ + + +vrrp_instance VI_100 { + state MASTER + interface vlan100 + vrrp_garp_master_delay 5 + vrrp_garp_master_refresh 60 + vrrp_garp_lower_prio_repeat 3 + virtual_router_id 1 + priority 101 + advert_int 1 + authentication { + auth_type PASS + auth_pass 1111 + } + virtual_ipaddress { + 20.1.4.1 label vlan100:MASTER + } +} + +vrrp_instance VI_300 { + state MASTER + interface vlan300 + vrrp_garp_master_delay 5 + vrrp_garp_master_refresh 60 + vrrp_garp_lower_prio_repeat 3 + virtual_router_id 2 + priority 101 + advert_int 1 + authentication { + auth_type PASS + auth_pass 1111 + } + virtual_ipaddress { + 20.2.4.1 label vlan300:MASTER + } +} diff --git a/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/infra1/NETWORK_INTERFACES b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/infra1/NETWORK_INTERFACES new file mode 100644 index 000000000..3e08b9ed3 --- /dev/null +++ b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/infra1/NETWORK_INTERFACES @@ -0,0 +1,90 @@ +# +# ONL format of dent interfaces +# +# This file describes the network interfaces available on your system +# and how to activate them. For more information, see interfaces(5). + +source /etc/network/interfaces.d/*.intf + +# The loopback network interface +auto lo +iface lo inet loopback + address 20.20.0.101/32 + +# The management interface +auto ma1 +iface ma1 inet dhcp + +auto swp49 +iface swp49 inet static +alias AGG1 SWP47 + address 20.20.96.17/30 + +auto swp50 +iface swp50 inet static +alias AGG2 SWP47 + address 20.20.96.25/30 + +auto bond0 +iface bond0 inet static +alias LAG to INFRA2 SWP51 and SWP52 + bond-slaves swp51 swp52 + bond-mode 802.3ad + bridge-vids 100 300 400 500 600 + bridge-vids 100 300 400 500 600 + +auto vlan100 +iface vlan100 inet static + address 20.1.4.2/22 + vlan-id 100 + vlan-raw-device bridge + +auto vlan300 +iface vlan300 inet static + address 20.2.4.2/22 + vlan-id 300 + vlan-raw-device bridge + +auto vlan400 +iface vlan400 inet static + address 20.3.4.2/22 + vlan-id 400 + vlan-raw-device bridge + +auto vlan500 +iface vlan500 inet static + address 20.4.4.2/22 + vlan-id 500 + vlan-raw-device bridge + +auto vlan600 +iface vlan600 inet static + address 20.5.4.2/22 + vlan-id 600 + vlan-raw-device bridge + +auto bridge +iface bridge inet static +alias Vlan Aware Bridge + bridge-ageing 600 + bridge-ports swp1 swp2 swp3 swp4 swp5 swp6 swp7 swp8 swp9 swp10 swp11 swp12 swp13 swp14 swp15 swp16 swp17 swp18 swp19 swp20 swp21 swp22 swp23 swp24 swp25 swp26 swp27 swp28 swp29 swp30 swp31 swp32 swp33 swp34 swp35 swp36 swp37 swp38 swp39 swp40 swp41 swp42 swp43 swp44 swp45 swp46 swp47 swp48 + bridge-vids 100 300 400 500 600 + # Turns on STP + bridge-stp on + # Puts each port into an edge mode swp1-48 + mstpctl-portadminedge swp1=yes swp2=yes swp3=yes swp4=yes swp5=yes swp6=yes swp7=yes swp8=yes swp9=yes swp10=yes swp11=yes swp12=yes swp13=yes swp14=yes swp15=yes swp16=yes swp17=yes swp18=yes swp19=yes swp20=yes swp21=yes swp22=yes swp23=yes swp24=yes swp25=yes swp26=yes swp27=yes swp28=yes swp29=yes swp30=yes swp31=yes swp32=yes swp33=yes swp34=yes swp35=yes swp36=yes swp37=yes swp38=yes swp39=yes swp40=yes swp41=yes swp42=yes swp43=yes swp44=yes swp45=yes swp46=yes swp47=yes swp48=yes + # Adds BPDU Guard to all ports swp1-48 + mstpctl-bpduguard swp1=yes swp2=yes swp3=yes swp4=yes swp5=yes swp6=yes swp7=yes swp8=yes swp9=yes swp10=yes swp11=yes swp12=yes swp13=yes swp14=yes swp15=yes swp16=yes swp17=yes swp18=yes swp19=yes swp20=yes swp21=yes swp22=yes swp23=yes swp24=yes swp25=yes swp26=yes swp27=yes swp28=yes swp29=yes swp30=yes swp31=yes swp32=yes swp33=yes swp34=yes swp35=yes swp36=yes swp37=yes swp38=yes swp39=yes swp40=yes swp41=yes swp42=yes swp43=yes swp44=yes swp45=yes swp46=yes swp47=yes swp48=yes + bridge-vlan-aware yes + +auto swp3 +iface swp3 +alias IXIA LINK + bridge-pvid 100 + bridge-vids 300 400 500 600 + +auto swp4 +iface swp4 +alias IXIA LINK + bridge-pvid 100 + bridge-vids 300 400 500 600 diff --git a/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/infra1/NTP b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/infra1/NTP new file mode 100644 index 000000000..4c041b9dc --- /dev/null +++ b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/infra1/NTP @@ -0,0 +1,60 @@ + +# /etc/ntp.conf, configuration for ntpd; see ntp.conf(5) for help + + +driftfile /var/lib/ntp/ntp.drift + + +# Enable this if you want statistics to be logged. +#statsdir /var/log/ntpstats/ + +statistics loopstats peerstats clockstats +filegen loopstats file loopstats type day enable +filegen peerstats file peerstats type day enable +filegen clockstats file clockstats type day enable + + +# You do need to talk to an NTP server or two (or three). +#server ntp.your-provider.example + + +# pool.ntp.org maps to about 1000 low-stratum NTP servers. Your server will +# pick a different set every time it starts up. Please consider joining the +# pool: +# + +# Access control configuration; see /usr/share/doc/ntp-doc/html/accopt.html for +# details. The web page +# might also be helpful. +# +# Note that "restrict" applies to both servers and clients, so a configuration +# that might be intended to block requests from certain clients could also end +# up blocking replies from your own upstream servers. + +# By default, exchange time with everybody, but don't allow configuration. +restrict -4 default kod notrap nomodify nopeer noquery +restrict -6 default kod notrap nomodify nopeer noquery + +# Local users may interrogate the ntp server more closely. +restrict 127.0.0.1 +restrict ::1 + +# Clients from this (example!) subnet have unlimited access, but only if +# cryptographically authenticated. +#restrict 192.168.123.0 mask 255.255.255.0 notrust + + +# If you want to provide time to your local subnet, change the next line. +# (Again, the address is an example only.) +#broadcast 192.168.123.255 + +# If you want to listen to time broadcasts on your local subnet, de-comment the +# next lines. Please do this only if you trust everybody on the network! +#disable auth +#broadcastclient + +# Specify interfaces, don't listen on switch ports +#interface listen eth0 +interface listen lo +interface listen lo:0 +interface listen dummy0 diff --git a/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/infra1/QUAGGA_CONFIG b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/infra1/QUAGGA_CONFIG new file mode 100644 index 000000000..6b2892d0b --- /dev/null +++ b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/infra1/QUAGGA_CONFIG @@ -0,0 +1,42 @@ +username cumulus nopassword +! +service integrated-vtysh-config +! +log timestamp precision 6 +! +no zebra nexthop kernel enable +! +router bgp 65534 + bgp router-id 20.20.0.101 + no bgp ebgp-requires-policy + neighbor INFRA peer-group + neighbor INFRA remote-as 65534 + neighbor INFRA timers 3 10 + neighbor IXIA peer-group + neighbor IXIA remote-as 200 + neighbor IXIA timers 3 10 + neighbor POD peer-group + neighbor POD remote-as 65511 + neighbor POD timers 3 10 + neighbor 20.20.96.18 peer-group POD + neighbor 20.20.96.26 peer-group POD + ! + address-family ipv4 unicast + network 20.1.0.0/16 + neighbor INFRA route-map DENY-ALL in + neighbor INFRA route-map DENY-ALL out + neighbor POD soft-reconfiguration inbound + neighbor POD route-map TO-POD out + neighbor IXIA soft-reconfiguration inbound + exit-address-family +! +ip route 20.1.0.0/16 Null0 +! +route-map TO-POD permit 10 + set community 65534:1 +! +route-map DENY-ALL deny 10 +! +line vty +! +end diff --git a/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/infra1/QUAGGA_DAEMONS b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/infra1/QUAGGA_DAEMONS new file mode 100644 index 000000000..cff453039 --- /dev/null +++ b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/infra1/QUAGGA_DAEMONS @@ -0,0 +1,30 @@ +# This file tells the quagga package which daemons to start. +# +# Entries are in the format: =(yes|no|priority) +# 0, "no" = disabled +# 1, "yes" = highest priority +# 2 .. 10 = lower priorities +# Read /usr/share/doc/quagga/README.Debian for details. +# +# Sample configurations for these daemons can be found in +# /usr/share/doc/quagga/examples/. +# +# ATTENTION: +# +# When activation a daemon at the first time, a config file, even if it is +# empty, has to be present *and* be owned by the user and group "quagga", else +# the daemon will not be started by /etc/init.d/quagga. The permissions should +# be u=rw,g=r,o=. +# When using "vtysh" such a config file is also needed. It should be owned by +# group "quaggavty" and set to ug=rw,o= though. Check /etc/pam.d/quagga, too. +# +# The watchquagga daemon is always started. Per default in monitoring-only but +# that can be changed via /etc/quagga/debian.conf. +# +zebra=yes +bgpd=yes +ospfd=no +ospf6d=no +ripd=no +ripngd=no +isisd=no diff --git a/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/infra1/QUAGGA_VTYSH b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/infra1/QUAGGA_VTYSH new file mode 100644 index 000000000..f7114f4b9 --- /dev/null +++ b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/infra1/QUAGGA_VTYSH @@ -0,0 +1,3 @@ +username cumulus nopassword +! +service integrated-vtysh-config diff --git a/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/infra1/RESOLV b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/infra1/RESOLV new file mode 100644 index 000000000..cae093a83 --- /dev/null +++ b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/infra1/RESOLV @@ -0,0 +1 @@ +nameserver 8.8.8.8 diff --git a/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/infra1/SSHD_CONF b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/infra1/SSHD_CONF new file mode 100644 index 000000000..e9506ff64 --- /dev/null +++ b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/infra1/SSHD_CONF @@ -0,0 +1,88 @@ +# Package generated configuration file +# See the sshd_config(5) manpage for details + +# What ports, IPs and protocols we listen for +Port 22 +# Use these options to restrict which interfaces/protocols sshd will bind to +#ListenAddress :: +ListenAddress 0.0.0.0 +Protocol 2 +# HostKeys for protocol version 2 +HostKey /etc/ssh/ssh_host_rsa_key +HostKey /etc/ssh/ssh_host_dsa_key +HostKey /etc/ssh/ssh_host_ecdsa_key +HostKey /etc/ssh/ssh_host_ed25519_key +#Privilege Separation is turned on for security +UsePrivilegeSeparation yes + +# Lifetime and size of ephemeral version 1 server key +KeyRegenerationInterval 3600 +ServerKeyBits 1024 + +# Logging +SyslogFacility AUTH +LogLevel INFO + +# Authentication: +LoginGraceTime 120 +PermitRootLogin yes +StrictModes yes + +RSAAuthentication yes +PubkeyAuthentication yes +#AuthorizedKeysFile %h/.ssh/authorized_keys + +# Don't read the user's ~/.rhosts and ~/.shosts files +IgnoreRhosts yes +# For this to work you will also need host keys in /etc/ssh_known_hosts +RhostsRSAAuthentication no +# similar for protocol version 2 +HostbasedAuthentication no +# Uncomment if you don't trust ~/.ssh/known_hosts for RhostsRSAAuthentication +#IgnoreUserKnownHosts yes + +# To enable empty passwords, change to yes (NOT RECOMMENDED) +PermitEmptyPasswords no + +# Change to yes to enable challenge-response passwords (beware issues with +# some PAM modules and threads) +ChallengeResponseAuthentication no + +# Change to no to disable tunnelled clear text passwords +PasswordAuthentication yes + +# Kerberos options +#KerberosAuthentication no +#KerberosGetAFSToken no +#KerberosOrLocalPasswd yes +#KerberosTicketCleanup yes + +# GSSAPI options +#GSSAPIAuthentication no +#GSSAPICleanupCredentials yes + +X11Forwarding yes +X11DisplayOffset 10 +PrintMotd no +PrintLastLog yes +TCPKeepAlive yes +#UseLogin no + +#MaxStartups 10:30:60 +#Banner /etc/issue.net + +# Allow client to pass locale environment variables +AcceptEnv LANG LC_* + +Subsystem sftp /usr/lib/openssh/sftp-server + +# Set this to 'yes' to enable PAM authentication, account processing, +# and session processing. If this is enabled, PAM authentication will +# be allowed through the ChallengeResponseAuthentication and +# PasswordAuthentication. Depending on your PAM configuration, +# PAM authentication via ChallengeResponseAuthentication may bypass +# the setting of "PermitRootLogin without-password". +# If you just want the PAM account and session checks to run without +# PAM authentication, then enable this but set PasswordAuthentication +# and ChallengeResponseAuthentication to 'no'. +UsePAM yes diff --git a/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/infra2/DHCP b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/infra2/DHCP new file mode 100644 index 000000000..4a0ac7141 --- /dev/null +++ b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/infra2/DHCP @@ -0,0 +1,6 @@ +# +# ISC dhcpd configuration +# + + +option domain-name "test"; diff --git a/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/infra2/HOSTNAME b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/infra2/HOSTNAME new file mode 100644 index 000000000..4da8a2c6c --- /dev/null +++ b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/infra2/HOSTNAME @@ -0,0 +1 @@ +dentlab-infra2 diff --git a/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/infra2/HOSTS b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/infra2/HOSTS new file mode 100644 index 000000000..b393f6cb4 --- /dev/null +++ b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/infra2/HOSTS @@ -0,0 +1,5 @@ +127.0.0.1 localhost +::1 localhost ip6-localhost ip6-loopback +ff02::1 ip6-allnodes +ff02::2 ip6-allrouters +127.0.1.1 dentlab-infra2 diff --git a/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/infra2/KEEPALIVED_CONF b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/infra2/KEEPALIVED_CONF new file mode 100644 index 000000000..670ed74b9 --- /dev/null +++ b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/infra2/KEEPALIVED_CONF @@ -0,0 +1,37 @@ + + +vrrp_instance VI_100 { + state MASTER + interface vlan100 + vrrp_garp_master_delay 5 + vrrp_garp_master_refresh 60 + vrrp_garp_lower_prio_repeat 3 + virtual_router_id 1 + priority 101 + advert_int 1 + authentication { + auth_type PASS + auth_pass 1111 + } + virtual_ipaddress { + 20.1.4.1 label vlan100:MASTER + } +} + +vrrp_instance VI_300 { + state MASTER + interface vlan300 + vrrp_garp_master_delay 5 + vrrp_garp_master_refresh 60 + vrrp_garp_lower_prio_repeat 3 + virtual_router_id 2 + priority 101 + advert_int 1 + authentication { + auth_type PASS + auth_pass 1111 + } + virtual_ipaddress { + 20.2.4.1 label vlan300:MASTER + } +} diff --git a/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/infra2/NETWORK_INTERFACES b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/infra2/NETWORK_INTERFACES new file mode 100644 index 000000000..fb7d242cc --- /dev/null +++ b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/infra2/NETWORK_INTERFACES @@ -0,0 +1,102 @@ +# +# ONL format of dent interfaces +# +# This file describes the network interfaces available on your system +# and how to activate them. For more information, see interfaces(5). + +source /etc/network/interfaces.d/*.intf + +# The loopback network interface +auto lo +iface lo inet loopback + address 20.20.0.102/32 + +# The management interface +auto ma1 +iface ma1 inet dhcp + +auto swp49 +iface swp49 inet static +alias AGG1 SWP48 + address 20.20.96.21/30 + +auto swp50 +iface swp50 inet static +alias AGG2 SWP48 + address 20.20.96.29/30 + +auto bond0 +iface bond0 inet static +alias LAG to INFRA-SW1 SWP51 and SWP52 + bond-slaves swp51 swp52 + bond-mode 802.3ad + bridge-vids 100 300 400 500 600 + bridge-vids 100 300 400 500 600 + +auto vlan100 +iface vlan100 inet static + address 20.1.4.3/22 + vlan-id 100 + vlan-raw-device bridge + +auto vlan300 +iface vlan300 inet static + address 20.2.4.3/22 + vlan-id 300 + vlan-raw-device bridge + +auto vlan400 +iface vlan400 inet static + address 20.3.4.3/22 + vlan-id 400 + vlan-raw-device bridge + +auto vlan500 +iface vlan500 inet static + address 20.4.4.3/22 + vlan-id 500 + vlan-raw-device bridge + +auto vlan600 +iface vlan600 inet static + address 20.5.4.3/22 + vlan-id 600 + vlan-raw-device bridge + +auto bridge +iface bridge inet static +alias Vlan Aware Bridge + bridge-ageing 600 + bridge-ports swp1 swp2 swp3 swp4 swp5 swp6 swp7 swp8 swp9 swp10 swp11 swp12 swp13 swp14 swp15 swp16 swp17 swp18 swp19 swp20 swp21 swp22 swp23 swp24 swp25 swp26 swp27 swp28 swp29 swp30 swp31 swp32 swp33 swp34 swp35 swp36 swp37 swp38 swp39 swp40 swp41 swp42 swp43 swp44 swp45 swp46 swp47 swp48 + bridge-vids 100 300 400 500 600 + # Turns on STP + bridge-stp on + # Puts each port into an edge mode swp1-48 + mstpctl-portadminedge swp1=yes swp2=yes swp3=yes swp4=yes swp5=yes swp6=yes swp7=yes swp8=yes swp9=yes swp10=yes swp11=yes swp12=yes swp13=yes swp14=yes swp15=yes swp16=yes swp17=yes swp18=yes swp19=yes swp20=yes swp21=yes swp22=yes swp23=yes swp24=yes swp25=yes swp26=yes swp27=yes swp28=yes swp29=yes swp30=yes swp31=yes swp32=yes swp33=yes swp34=yes swp35=yes swp36=yes swp37=yes swp38=yes swp39=yes swp40=yes swp41=yes swp42=yes swp43=yes swp44=yes swp45=yes swp46=yes swp47=yes swp48=yes + # Adds BPDU Guard to all ports swp1-48 + mstpctl-bpduguard swp1=yes swp2=yes swp3=yes swp4=yes swp5=yes swp6=yes swp7=yes swp8=yes swp9=yes swp10=yes swp11=yes swp12=yes swp13=yes swp14=yes swp15=yes swp16=yes swp17=yes swp18=yes swp19=yes swp20=yes swp21=yes swp22=yes swp23=yes swp24=yes swp25=yes swp26=yes swp27=yes swp28=yes swp29=yes swp30=yes swp31=yes swp32=yes swp33=yes swp34=yes swp35=yes swp36=yes swp37=yes swp38=yes swp39=yes swp40=yes swp41=yes swp42=yes swp43=yes swp44=yes swp45=yes swp46=yes swp47=yes swp48=yes + bridge-vlan-aware yes + +auto swp1 +iface swp1 +alias IXIA LINK + bridge-pvid 100 + bridge-vids 300 400 500 600 + +auto swp2 +iface swp2 +alias IXIA LINK + bridge-pvid 100 + bridge-vids 300 400 500 600 + +auto swp3 +iface swp3 +alias IXIA LINK + bridge-pvid 100 + bridge-vids 300 400 500 600 + +auto swp4 +iface swp4 +alias IXIA LINK + bridge-pvid 100 + bridge-vids 300 400 500 600 diff --git a/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/infra2/NTP b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/infra2/NTP new file mode 100644 index 000000000..4c041b9dc --- /dev/null +++ b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/infra2/NTP @@ -0,0 +1,60 @@ + +# /etc/ntp.conf, configuration for ntpd; see ntp.conf(5) for help + + +driftfile /var/lib/ntp/ntp.drift + + +# Enable this if you want statistics to be logged. +#statsdir /var/log/ntpstats/ + +statistics loopstats peerstats clockstats +filegen loopstats file loopstats type day enable +filegen peerstats file peerstats type day enable +filegen clockstats file clockstats type day enable + + +# You do need to talk to an NTP server or two (or three). +#server ntp.your-provider.example + + +# pool.ntp.org maps to about 1000 low-stratum NTP servers. Your server will +# pick a different set every time it starts up. Please consider joining the +# pool: +# + +# Access control configuration; see /usr/share/doc/ntp-doc/html/accopt.html for +# details. The web page +# might also be helpful. +# +# Note that "restrict" applies to both servers and clients, so a configuration +# that might be intended to block requests from certain clients could also end +# up blocking replies from your own upstream servers. + +# By default, exchange time with everybody, but don't allow configuration. +restrict -4 default kod notrap nomodify nopeer noquery +restrict -6 default kod notrap nomodify nopeer noquery + +# Local users may interrogate the ntp server more closely. +restrict 127.0.0.1 +restrict ::1 + +# Clients from this (example!) subnet have unlimited access, but only if +# cryptographically authenticated. +#restrict 192.168.123.0 mask 255.255.255.0 notrust + + +# If you want to provide time to your local subnet, change the next line. +# (Again, the address is an example only.) +#broadcast 192.168.123.255 + +# If you want to listen to time broadcasts on your local subnet, de-comment the +# next lines. Please do this only if you trust everybody on the network! +#disable auth +#broadcastclient + +# Specify interfaces, don't listen on switch ports +#interface listen eth0 +interface listen lo +interface listen lo:0 +interface listen dummy0 diff --git a/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/infra2/QUAGGA_CONFIG b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/infra2/QUAGGA_CONFIG new file mode 100644 index 000000000..7be23b68d --- /dev/null +++ b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/infra2/QUAGGA_CONFIG @@ -0,0 +1,42 @@ +username cumulus nopassword +! +service integrated-vtysh-config +! +log timestamp precision 6 +! +no zebra nexthop kernel enable +! +router bgp 65534 + bgp router-id 20.20.0.102 + no bgp ebgp-requires-policy + neighbor INFRA peer-group + neighbor INFRA remote-as 65534 + neighbor INFRA timers 3 10 + neighbor IXIA peer-group + neighbor IXIA remote-as 200 + neighbor IXIA timers 3 10 + neighbor POD peer-group + neighbor POD remote-as 65511 + neighbor POD timers 3 10 + neighbor 20.20.96.22 peer-group POD + neighbor 20.20.96.30 peer-group POD + ! + address-family ipv4 unicast + network 20.1.0.0/16 + neighbor INFRA route-map DENY-ALL in + neighbor INFRA route-map DENY-ALL out + neighbor POD soft-reconfiguration inbound + neighbor POD route-map TO-POD out + neighbor IXIA soft-reconfiguration inbound + exit-address-family +! +ip route 20.1.0.0/16 Null0 +! +route-map TO-POD permit 10 + set community 65534:1 +! +route-map DENY-ALL deny 10 +! +line vty +! +end diff --git a/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/infra2/QUAGGA_DAEMONS b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/infra2/QUAGGA_DAEMONS new file mode 100644 index 000000000..cff453039 --- /dev/null +++ b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/infra2/QUAGGA_DAEMONS @@ -0,0 +1,30 @@ +# This file tells the quagga package which daemons to start. +# +# Entries are in the format: =(yes|no|priority) +# 0, "no" = disabled +# 1, "yes" = highest priority +# 2 .. 10 = lower priorities +# Read /usr/share/doc/quagga/README.Debian for details. +# +# Sample configurations for these daemons can be found in +# /usr/share/doc/quagga/examples/. +# +# ATTENTION: +# +# When activation a daemon at the first time, a config file, even if it is +# empty, has to be present *and* be owned by the user and group "quagga", else +# the daemon will not be started by /etc/init.d/quagga. The permissions should +# be u=rw,g=r,o=. +# When using "vtysh" such a config file is also needed. It should be owned by +# group "quaggavty" and set to ug=rw,o= though. Check /etc/pam.d/quagga, too. +# +# The watchquagga daemon is always started. Per default in monitoring-only but +# that can be changed via /etc/quagga/debian.conf. +# +zebra=yes +bgpd=yes +ospfd=no +ospf6d=no +ripd=no +ripngd=no +isisd=no diff --git a/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/infra2/QUAGGA_VTYSH b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/infra2/QUAGGA_VTYSH new file mode 100644 index 000000000..f7114f4b9 --- /dev/null +++ b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/infra2/QUAGGA_VTYSH @@ -0,0 +1,3 @@ +username cumulus nopassword +! +service integrated-vtysh-config diff --git a/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/infra2/RESOLV b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/infra2/RESOLV new file mode 100644 index 000000000..cae093a83 --- /dev/null +++ b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/infra2/RESOLV @@ -0,0 +1 @@ +nameserver 8.8.8.8 diff --git a/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/infra2/SSHD_CONF b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/infra2/SSHD_CONF new file mode 100644 index 000000000..e9506ff64 --- /dev/null +++ b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/infra2/SSHD_CONF @@ -0,0 +1,88 @@ +# Package generated configuration file +# See the sshd_config(5) manpage for details + +# What ports, IPs and protocols we listen for +Port 22 +# Use these options to restrict which interfaces/protocols sshd will bind to +#ListenAddress :: +ListenAddress 0.0.0.0 +Protocol 2 +# HostKeys for protocol version 2 +HostKey /etc/ssh/ssh_host_rsa_key +HostKey /etc/ssh/ssh_host_dsa_key +HostKey /etc/ssh/ssh_host_ecdsa_key +HostKey /etc/ssh/ssh_host_ed25519_key +#Privilege Separation is turned on for security +UsePrivilegeSeparation yes + +# Lifetime and size of ephemeral version 1 server key +KeyRegenerationInterval 3600 +ServerKeyBits 1024 + +# Logging +SyslogFacility AUTH +LogLevel INFO + +# Authentication: +LoginGraceTime 120 +PermitRootLogin yes +StrictModes yes + +RSAAuthentication yes +PubkeyAuthentication yes +#AuthorizedKeysFile %h/.ssh/authorized_keys + +# Don't read the user's ~/.rhosts and ~/.shosts files +IgnoreRhosts yes +# For this to work you will also need host keys in /etc/ssh_known_hosts +RhostsRSAAuthentication no +# similar for protocol version 2 +HostbasedAuthentication no +# Uncomment if you don't trust ~/.ssh/known_hosts for RhostsRSAAuthentication +#IgnoreUserKnownHosts yes + +# To enable empty passwords, change to yes (NOT RECOMMENDED) +PermitEmptyPasswords no + +# Change to yes to enable challenge-response passwords (beware issues with +# some PAM modules and threads) +ChallengeResponseAuthentication no + +# Change to no to disable tunnelled clear text passwords +PasswordAuthentication yes + +# Kerberos options +#KerberosAuthentication no +#KerberosGetAFSToken no +#KerberosOrLocalPasswd yes +#KerberosTicketCleanup yes + +# GSSAPI options +#GSSAPIAuthentication no +#GSSAPICleanupCredentials yes + +X11Forwarding yes +X11DisplayOffset 10 +PrintMotd no +PrintLastLog yes +TCPKeepAlive yes +#UseLogin no + +#MaxStartups 10:30:60 +#Banner /etc/issue.net + +# Allow client to pass locale environment variables +AcceptEnv LANG LC_* + +Subsystem sftp /usr/lib/openssh/sftp-server + +# Set this to 'yes' to enable PAM authentication, account processing, +# and session processing. If this is enabled, PAM authentication will +# be allowed through the ChallengeResponseAuthentication and +# PasswordAuthentication. Depending on your PAM configuration, +# PAM authentication via ChallengeResponseAuthentication may bypass +# the setting of "PermitRootLogin without-password". +# If you just want the PAM account and session checks to run without +# PAM authentication, then enable this but set PasswordAuthentication +# and ChallengeResponseAuthentication to 'no'. +UsePAM yes diff --git a/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/testbed.json b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/testbed.json new file mode 100644 index 000000000..e4cb9cdad --- /dev/null +++ b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/hw/sit/testbed.json @@ -0,0 +1,211 @@ +{ + "devices": [ + { + "friendlyName":"Dent infra1", + "os":"dentos", + "type" : "INFRA_SWITCH", + "hostName": "infra1", + "model": "arm64-accton-as4224-52p-r0", + "ip": "10.36.118.46", + "login":{ + "userName":"root", + "password":"onl" + }, + "cpuArchitecture": "arm", + "macAddress": "90:3C:B3:8B:EF:32", + "serialConsole": { + "ip": "10.36.118.200", + "port": 7003 + }, + "pdu": { + "ip": "10.36.118.201", + "login": "dent", + "password": "dent123!", + "number": 3 + }, + "serialDev":"/dev/ttyUSB0", + "baudrate": 115200, + "links" : [ + ["swp49", "agg1:swp47"], + ["swp50", "agg2:swp47"], + ["swp51", "infra2:swp51"], + ["swp52", "infra2:swp52"], + ["swp5", "infra1:swp6"], + ["swp7", "infra1:swp8"], + ["swp9", "infra1:swp10"] + ] + }, + { + "friendlyName":"Dent infra2", + "os":"dentos", + "type" : "INFRA_SWITCH", + "hostName": "infra2", + "model": "arm64-delta-tn48m-poe-dn-r0", + "ip": "10.36.118.23", + "login":{ + "userName":"root", + "password":"onl" + }, + "cpuArchitecture": "arm", + "macAddress": "18:BE:92:13:64:80", + "serialConsole": { + "ip": "10.36.118.200", + "port": 7011 + }, + "pdu": { + "ip": "10.36.118.201", + "login": "dent", + "password": "dent123!", + "number": "4" + }, + "serialDev":"/dev/ttyUSB1", + "baudrate": 115200, + "links" : [ + ["swp49", "agg1:swp48"], + ["swp50", "agg2:swp48"], + ["swp51", "infra2:swp51"], + ["swp52", "infra2:swp52"], + ["swp5", "infra2:swp6"], + ["swp7", "infra2:swp8"], + ["swp9", "infra2:swp10"] + ] + }, + { + "friendlyName":"Dent agg1", + "os": "dentos", + "type" : "AGGREGATION_ROUTER", + "hostName": "agg1", + "model": "arm64-accton-as5114-48x-r0", + "ip": "10.36.118.44", + "login":{ + "userName":"root", + "password":"onl" + }, + "cpuArchitecture": "arm", + "macAddress": "34:EF:B6:EC:38:02", + "serialConsole": { + "ip": "10.36.118.200", + "port": 7005 + }, + "pdu": { + "ip": "10.36.118.201", + "login": "dent", + "password": "dent123!", + "number": 5 + }, + "serialDev":"/dev/ttyUSB2", + "baudrate": 115200, + "links" : [ + ["swp13", "dist1:swp13"], + ["swp47", "infra1:swp49"], + ["swp48", "infra2:swp49"], + ["swp5", "agg1:swp6"], + ["swp7", "agg1:swp8"], + ["swp9", "agg1:swp10"] + ] + }, + { + "friendlyName":"Dent agg2", + "os": "dentos", + "type" : "AGGREGATION_ROUTER", + "hostName": "agg2", + "model": "arm64-accton-as5114-48x-r0", + "ip": "10.36.118.41", + "login":{ + "userName":"root", + "password":"onl" + }, + "cpuArchitecture": "arm", + "macAddress": "34:EF:B6:EC:2A:4C", + "serialConsole": { + "ip": "10.36.118.200", + "port": 7008 + }, + "pdu": { + "ip": "10.36.118.201", + "login": "dent", + "password": "dent123!", + "number": 8 + }, + "serialDev":"/dev/ttyUSB3", + "baudrate": 115200, + "links" : [ + ["swp14", "dist1:swp14"], + ["swp47", "infra1:swp50"], + ["swp48", "infra2:swp50"], + ["swp5", "agg2:swp6"], + ["swp7", "agg2:swp8"], + ["swp9", "agg2:swp10"] + ] + }, + { + "friendlyName":"Dent dist1", + "os":"dentos", + "type" : "DISTRIBUTION_ROUTER", + "hostName": "dist1", + "model": "arm64-accton-as5114-48x-r0", + "ip": "10.36.118.43", + "login":{ + "userName":"root", + "password":"onl" + }, + "cpuArchitecture": "arm", + "macAddress": "34:EF:B6:EC:26:BE", + "serialConsole": { + "ip": "10.36.118.200", + "port": 7006 + }, + "pdu": { + "ip": "10.36.118.201", + "login": "dent", + "password": "dent123!", + "number": 6 + }, + "serialDev":"/dev/ttyUSB3", + "baudrate": 115200, + "links" : [ + ["swp13", "agg1:swp13"], + ["swp14", "agg2:swp14"], + ["swp5", "dist1:swp6"], + ["swp7", "dist1:swp8"], + ["swp9", "dist1:swp10"] + ] + }, + { + "friendlyName":"Ixia Traffic Generator", + "os":"ixnetwork", + "type" : "TRAFFIC_GENERATOR", + "hostName": "ixia", + "model": "Novus10G", + "ip": "10.36.118.111", + "login":{ + "userName":"admin", + "password":"admin" + }, + "serialDev":"/dev/ttyUSBXX", + "baudrate": 115200, + "mediaMode":"mixed", + "links" : [ + ["10.36.118.199:1:1", "dist1:swp1", "fiber"], + ["10.36.118.199:1:2", "dist1:swp2", "fiber"], + ["10.36.118.199:1:3", "dist1:swp3", "fiber"], + ["10.36.118.199:1:4", "dist1:swp4", "fiber"], + ["10.36.118.199:1:5", "agg1:swp1", "fiber"], + ["10.36.118.199:1:6", "agg1:swp2", "fiber"], + ["10.36.118.199:1:7", "agg1:swp3", "fiber"], + ["10.36.118.199:1:8", "agg1:swp4", "fiber"], + ["10.36.118.199:1:9", "agg2:swp1", "fiber"], + ["10.36.118.199:1:10", "agg2:swp2", "fiber"], + ["10.36.118.199:1:11", "infra1:swp3", "copper"], + ["10.36.118.199:1:12", "infra1:swp4", "copper"], + ["10.36.118.199:1:13", "infra2:swp1", "copper"], + ["10.36.118.199:1:14", "infra2:swp2", "copper"], + ["10.36.118.199:1:15", "infra2:swp3", "copper"], + ["10.36.118.199:1:16", "infra2:swp4", "copper"] + ] + } + ], + "operator" : "dent", + "topology" : "gordion-knot", + "force_discovery" : false +} diff --git a/DentOS_Framework/DentOsTestbed/configuration/testbed_config/vm/infra1_dvm/testbed.json b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/vm/infra1_dvm/testbed.json new file mode 100755 index 000000000..f409d9f46 --- /dev/null +++ b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/vm/infra1_dvm/testbed.json @@ -0,0 +1,60 @@ +{ + "devices": [ + { + "friendlyName":"DENT infrastructure 1", + "os":"dentos", + "type" : "INFRA_SWITCH", + "hostName": "infra1_dvm", + "model": "arm64-accton-as5114-48x-r0", + "ip": "10.36.118.42", + "login":{ + "userName":"root", + "password":"onl" + }, + "cpuArchitecture": "arm", + "macAddress": "09:19:2C:45:4D:02", + "serialConsole": { + "ip": "10.36.118.200", + "port": 7007 + }, + "pdu": { + "ip": "10.36.118.201", + "login": "dent", + "password": "dent123!", + "number": 7 + }, + "serialDev":"/dev/ttyUSB0", + "baudrate": 115200, + "mediaMode":"fiber", + "links" : [ + ["swp5", "infra1_dvm:swp6"], + ["swp7", "infra1_dvm:swp8"], + ["swp9", "infra1_dvm:swp10"] + ] + }, + { + "friendlyName":"Ixia Traffic Generator", + "os":"ixnetwork", + "type" : "TRAFFIC_GENERATOR", + "hostName": "ixia", + "model": "VM", + "ip": "10.36.118.113", + "login":{ + "userName":"admin", + "password":"admin" + }, + "serialDev":"/dev/ttyUSBXX", + "baudrate": 115200, + "mediaMode":"fiber", + "links" : [ + ["10.36.118.150:1:2", "infra1_dvm:swp1", "fiber"], + ["10.36.118.150:1:3", "infra1_dvm:swp2", "fiber"], + ["10.36.118.150:1:4", "infra1_dvm:swp3", "fiber"], + ["10.36.118.150:1:1", "infra1_dvm:swp4", "fiber"] + ] + } + ], + "operator" : "dent-vm", + "topology" : "bachelor", + "force_discovery" : false +} diff --git a/DentOS_Framework/DentOsTestbed/configuration/testbed_config/vm/sit/infra1/DHCP b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/vm/sit/infra1/DHCP new file mode 100755 index 000000000..4a0ac7141 --- /dev/null +++ b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/vm/sit/infra1/DHCP @@ -0,0 +1,6 @@ +# +# ISC dhcpd configuration +# + + +option domain-name "test"; diff --git a/DentOS_Framework/DentOsTestbed/configuration/testbed_config/vm/sit/infra1/HOSTNAME b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/vm/sit/infra1/HOSTNAME new file mode 100755 index 000000000..be88a8757 --- /dev/null +++ b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/vm/sit/infra1/HOSTNAME @@ -0,0 +1 @@ +dentlab-infra1 diff --git a/DentOS_Framework/DentOsTestbed/configuration/testbed_config/vm/sit/infra1/HOSTS b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/vm/sit/infra1/HOSTS new file mode 100755 index 000000000..f93ebae8a --- /dev/null +++ b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/vm/sit/infra1/HOSTS @@ -0,0 +1,5 @@ +127.0.0.1 localhost +::1 localhost ip6-localhost ip6-loopback +ff02::1 ip6-allnodes +ff02::2 ip6-allrouters +127.0.1.1 dentlab-infra1 diff --git a/DentOS_Framework/DentOsTestbed/configuration/testbed_config/vm/sit/infra1/KEEPALIVED_CONF b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/vm/sit/infra1/KEEPALIVED_CONF new file mode 100755 index 000000000..670ed74b9 --- /dev/null +++ b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/vm/sit/infra1/KEEPALIVED_CONF @@ -0,0 +1,37 @@ + + +vrrp_instance VI_100 { + state MASTER + interface vlan100 + vrrp_garp_master_delay 5 + vrrp_garp_master_refresh 60 + vrrp_garp_lower_prio_repeat 3 + virtual_router_id 1 + priority 101 + advert_int 1 + authentication { + auth_type PASS + auth_pass 1111 + } + virtual_ipaddress { + 20.1.4.1 label vlan100:MASTER + } +} + +vrrp_instance VI_300 { + state MASTER + interface vlan300 + vrrp_garp_master_delay 5 + vrrp_garp_master_refresh 60 + vrrp_garp_lower_prio_repeat 3 + virtual_router_id 2 + priority 101 + advert_int 1 + authentication { + auth_type PASS + auth_pass 1111 + } + virtual_ipaddress { + 20.2.4.1 label vlan300:MASTER + } +} diff --git a/DentOS_Framework/DentOsTestbed/configuration/testbed_config/vm/sit/infra1/NETWORK_INTERFACES b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/vm/sit/infra1/NETWORK_INTERFACES new file mode 100755 index 000000000..fae91d42c --- /dev/null +++ b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/vm/sit/infra1/NETWORK_INTERFACES @@ -0,0 +1,84 @@ +# +# ONL format of dent interfaces +# +# This file describes the network interfaces available on your system +# and how to activate them. For more information, see interfaces(5). + +source /etc/network/interfaces.d/*.intf + +# The loopback network interface +auto lo +iface lo inet loopback + address 20.20.0.101/32 + +# The management interface +auto ma1 +iface ma1 inet dhcp + +auto vlan100 +iface vlan100 inet static + address 20.1.4.1/22 + vlan-id 100 + vlan-raw-device bridge + +auto vlan300 +iface vlan300 inet static + address 20.2.4.1/22 + vlan-id 300 + vlan-raw-device bridge + +auto vlan400 +iface vlan400 inet static + address 20.3.4.1/22 + vlan-id 400 + vlan-raw-device bridge + +auto vlan500 +iface vlan500 inet static + address 20.4.4.1/22 + vlan-id 500 + vlan-raw-device bridge + +auto vlan600 +iface vlan600 inet static + address 20.5.4.1/22 + vlan-id 600 + vlan-raw-device bridge + +auto bridge +iface bridge inet static +alias Vlan Aware Bridge + bridge-ageing 600 + bridge-ports swp1 swp2 swp3 swp4 swp5 swp6 swp7 swp8 swp9 swp10 swp11 swp12 swp13 swp14 swp15 swp16 swp17 swp18 swp19 swp20 swp21 swp22 swp23 swp24 swp25 swp26 swp27 swp28 swp29 swp30 swp31 swp32 swp33 swp34 swp35 swp36 swp37 swp38 swp39 swp40 swp41 swp42 swp43 swp44 swp45 swp46 swp47 swp48 + bridge-vids 100 300 400 500 600 + # Turns on STP + bridge-stp on + # Puts each port into an edge mode swp1-48 + mstpctl-portadminedge swp1=yes swp2=yes swp3=yes swp4=yes swp5=yes swp6=yes swp7=yes swp8=yes swp9=yes swp10=yes swp11=yes swp12=yes swp13=yes swp14=yes swp15=yes swp16=yes swp17=yes swp18=yes swp19=yes swp20=yes swp21=yes swp22=yes swp23=yes swp24=yes swp25=yes swp26=yes swp27=yes swp28=yes swp29=yes swp30=yes swp31=yes swp32=yes swp33=yes swp34=yes swp35=yes swp36=yes swp37=yes swp38=yes swp39=yes swp40=yes swp41=yes swp42=yes swp43=yes swp44=yes swp45=yes swp46=yes swp47=yes swp48=yes + # Adds BPDU Guard to all ports swp1-48 + mstpctl-bpduguard swp1=yes swp2=yes swp3=yes swp4=yes swp5=yes swp6=yes swp7=yes swp8=yes swp9=yes swp10=yes swp11=yes swp12=yes swp13=yes swp14=yes swp15=yes swp16=yes swp17=yes swp18=yes swp19=yes swp20=yes swp21=yes swp22=yes swp23=yes swp24=yes swp25=yes swp26=yes swp27=yes swp28=yes swp29=yes swp30=yes swp31=yes swp32=yes swp33=yes swp34=yes swp35=yes swp36=yes swp37=yes swp38=yes swp39=yes swp40=yes swp41=yes swp42=yes swp43=yes swp44=yes swp45=yes swp46=yes swp47=yes swp48=yes + bridge-vlan-aware yes + +auto swp1 +iface swp1 +alias IXIA LINK + bridge-pvid 100 + bridge-vids 300 400 500 600 + +auto swp2 +iface swp2 +alias IXIA LINK + bridge-pvid 100 + bridge-vids 300 400 500 600 + +auto swp3 +iface swp3 +alias IXIA LINK + bridge-pvid 100 + bridge-vids 300 400 500 600 + +auto swp4 +iface swp4 +alias IXIA LINK + bridge-pvid 100 + bridge-vids 300 400 500 600 diff --git a/DentOS_Framework/DentOsTestbed/configuration/testbed_config/vm/sit/infra1/NTP b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/vm/sit/infra1/NTP new file mode 100755 index 000000000..4c041b9dc --- /dev/null +++ b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/vm/sit/infra1/NTP @@ -0,0 +1,60 @@ + +# /etc/ntp.conf, configuration for ntpd; see ntp.conf(5) for help + + +driftfile /var/lib/ntp/ntp.drift + + +# Enable this if you want statistics to be logged. +#statsdir /var/log/ntpstats/ + +statistics loopstats peerstats clockstats +filegen loopstats file loopstats type day enable +filegen peerstats file peerstats type day enable +filegen clockstats file clockstats type day enable + + +# You do need to talk to an NTP server or two (or three). +#server ntp.your-provider.example + + +# pool.ntp.org maps to about 1000 low-stratum NTP servers. Your server will +# pick a different set every time it starts up. Please consider joining the +# pool: +# + +# Access control configuration; see /usr/share/doc/ntp-doc/html/accopt.html for +# details. The web page +# might also be helpful. +# +# Note that "restrict" applies to both servers and clients, so a configuration +# that might be intended to block requests from certain clients could also end +# up blocking replies from your own upstream servers. + +# By default, exchange time with everybody, but don't allow configuration. +restrict -4 default kod notrap nomodify nopeer noquery +restrict -6 default kod notrap nomodify nopeer noquery + +# Local users may interrogate the ntp server more closely. +restrict 127.0.0.1 +restrict ::1 + +# Clients from this (example!) subnet have unlimited access, but only if +# cryptographically authenticated. +#restrict 192.168.123.0 mask 255.255.255.0 notrust + + +# If you want to provide time to your local subnet, change the next line. +# (Again, the address is an example only.) +#broadcast 192.168.123.255 + +# If you want to listen to time broadcasts on your local subnet, de-comment the +# next lines. Please do this only if you trust everybody on the network! +#disable auth +#broadcastclient + +# Specify interfaces, don't listen on switch ports +#interface listen eth0 +interface listen lo +interface listen lo:0 +interface listen dummy0 diff --git a/DentOS_Framework/DentOsTestbed/configuration/testbed_config/vm/sit/infra1/QUAGGA_CONFIG b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/vm/sit/infra1/QUAGGA_CONFIG new file mode 100755 index 000000000..6b2892d0b --- /dev/null +++ b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/vm/sit/infra1/QUAGGA_CONFIG @@ -0,0 +1,42 @@ +username cumulus nopassword +! +service integrated-vtysh-config +! +log timestamp precision 6 +! +no zebra nexthop kernel enable +! +router bgp 65534 + bgp router-id 20.20.0.101 + no bgp ebgp-requires-policy + neighbor INFRA peer-group + neighbor INFRA remote-as 65534 + neighbor INFRA timers 3 10 + neighbor IXIA peer-group + neighbor IXIA remote-as 200 + neighbor IXIA timers 3 10 + neighbor POD peer-group + neighbor POD remote-as 65511 + neighbor POD timers 3 10 + neighbor 20.20.96.18 peer-group POD + neighbor 20.20.96.26 peer-group POD + ! + address-family ipv4 unicast + network 20.1.0.0/16 + neighbor INFRA route-map DENY-ALL in + neighbor INFRA route-map DENY-ALL out + neighbor POD soft-reconfiguration inbound + neighbor POD route-map TO-POD out + neighbor IXIA soft-reconfiguration inbound + exit-address-family +! +ip route 20.1.0.0/16 Null0 +! +route-map TO-POD permit 10 + set community 65534:1 +! +route-map DENY-ALL deny 10 +! +line vty +! +end diff --git a/DentOS_Framework/DentOsTestbed/configuration/testbed_config/vm/sit/infra1/QUAGGA_DAEMONS b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/vm/sit/infra1/QUAGGA_DAEMONS new file mode 100755 index 000000000..cff453039 --- /dev/null +++ b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/vm/sit/infra1/QUAGGA_DAEMONS @@ -0,0 +1,30 @@ +# This file tells the quagga package which daemons to start. +# +# Entries are in the format: =(yes|no|priority) +# 0, "no" = disabled +# 1, "yes" = highest priority +# 2 .. 10 = lower priorities +# Read /usr/share/doc/quagga/README.Debian for details. +# +# Sample configurations for these daemons can be found in +# /usr/share/doc/quagga/examples/. +# +# ATTENTION: +# +# When activation a daemon at the first time, a config file, even if it is +# empty, has to be present *and* be owned by the user and group "quagga", else +# the daemon will not be started by /etc/init.d/quagga. The permissions should +# be u=rw,g=r,o=. +# When using "vtysh" such a config file is also needed. It should be owned by +# group "quaggavty" and set to ug=rw,o= though. Check /etc/pam.d/quagga, too. +# +# The watchquagga daemon is always started. Per default in monitoring-only but +# that can be changed via /etc/quagga/debian.conf. +# +zebra=yes +bgpd=yes +ospfd=no +ospf6d=no +ripd=no +ripngd=no +isisd=no diff --git a/DentOS_Framework/DentOsTestbed/configuration/testbed_config/vm/sit/infra1/QUAGGA_VTYSH b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/vm/sit/infra1/QUAGGA_VTYSH new file mode 100755 index 000000000..f7114f4b9 --- /dev/null +++ b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/vm/sit/infra1/QUAGGA_VTYSH @@ -0,0 +1,3 @@ +username cumulus nopassword +! +service integrated-vtysh-config diff --git a/DentOS_Framework/DentOsTestbed/configuration/testbed_config/vm/sit/infra1/RESOLV b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/vm/sit/infra1/RESOLV new file mode 100755 index 000000000..cae093a83 --- /dev/null +++ b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/vm/sit/infra1/RESOLV @@ -0,0 +1 @@ +nameserver 8.8.8.8 diff --git a/DentOS_Framework/DentOsTestbed/configuration/testbed_config/vm/sit/infra1/SSHD_CONF b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/vm/sit/infra1/SSHD_CONF new file mode 100755 index 000000000..e9506ff64 --- /dev/null +++ b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/vm/sit/infra1/SSHD_CONF @@ -0,0 +1,88 @@ +# Package generated configuration file +# See the sshd_config(5) manpage for details + +# What ports, IPs and protocols we listen for +Port 22 +# Use these options to restrict which interfaces/protocols sshd will bind to +#ListenAddress :: +ListenAddress 0.0.0.0 +Protocol 2 +# HostKeys for protocol version 2 +HostKey /etc/ssh/ssh_host_rsa_key +HostKey /etc/ssh/ssh_host_dsa_key +HostKey /etc/ssh/ssh_host_ecdsa_key +HostKey /etc/ssh/ssh_host_ed25519_key +#Privilege Separation is turned on for security +UsePrivilegeSeparation yes + +# Lifetime and size of ephemeral version 1 server key +KeyRegenerationInterval 3600 +ServerKeyBits 1024 + +# Logging +SyslogFacility AUTH +LogLevel INFO + +# Authentication: +LoginGraceTime 120 +PermitRootLogin yes +StrictModes yes + +RSAAuthentication yes +PubkeyAuthentication yes +#AuthorizedKeysFile %h/.ssh/authorized_keys + +# Don't read the user's ~/.rhosts and ~/.shosts files +IgnoreRhosts yes +# For this to work you will also need host keys in /etc/ssh_known_hosts +RhostsRSAAuthentication no +# similar for protocol version 2 +HostbasedAuthentication no +# Uncomment if you don't trust ~/.ssh/known_hosts for RhostsRSAAuthentication +#IgnoreUserKnownHosts yes + +# To enable empty passwords, change to yes (NOT RECOMMENDED) +PermitEmptyPasswords no + +# Change to yes to enable challenge-response passwords (beware issues with +# some PAM modules and threads) +ChallengeResponseAuthentication no + +# Change to no to disable tunnelled clear text passwords +PasswordAuthentication yes + +# Kerberos options +#KerberosAuthentication no +#KerberosGetAFSToken no +#KerberosOrLocalPasswd yes +#KerberosTicketCleanup yes + +# GSSAPI options +#GSSAPIAuthentication no +#GSSAPICleanupCredentials yes + +X11Forwarding yes +X11DisplayOffset 10 +PrintMotd no +PrintLastLog yes +TCPKeepAlive yes +#UseLogin no + +#MaxStartups 10:30:60 +#Banner /etc/issue.net + +# Allow client to pass locale environment variables +AcceptEnv LANG LC_* + +Subsystem sftp /usr/lib/openssh/sftp-server + +# Set this to 'yes' to enable PAM authentication, account processing, +# and session processing. If this is enabled, PAM authentication will +# be allowed through the ChallengeResponseAuthentication and +# PasswordAuthentication. Depending on your PAM configuration, +# PAM authentication via ChallengeResponseAuthentication may bypass +# the setting of "PermitRootLogin without-password". +# If you just want the PAM account and session checks to run without +# PAM authentication, then enable this but set PasswordAuthentication +# and ChallengeResponseAuthentication to 'no'. +UsePAM yes diff --git a/DentOS_Framework/DentOsTestbed/configuration/testbed_config/vm/sit/infra1_dvm/DHCP b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/vm/sit/infra1_dvm/DHCP new file mode 100755 index 000000000..4a0ac7141 --- /dev/null +++ b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/vm/sit/infra1_dvm/DHCP @@ -0,0 +1,6 @@ +# +# ISC dhcpd configuration +# + + +option domain-name "test"; diff --git a/DentOS_Framework/DentOsTestbed/configuration/testbed_config/vm/sit/infra1_dvm/HOSTNAME b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/vm/sit/infra1_dvm/HOSTNAME new file mode 100755 index 000000000..be88a8757 --- /dev/null +++ b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/vm/sit/infra1_dvm/HOSTNAME @@ -0,0 +1 @@ +dentlab-infra1 diff --git a/DentOS_Framework/DentOsTestbed/configuration/testbed_config/vm/sit/infra1_dvm/HOSTS b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/vm/sit/infra1_dvm/HOSTS new file mode 100755 index 000000000..f93ebae8a --- /dev/null +++ b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/vm/sit/infra1_dvm/HOSTS @@ -0,0 +1,5 @@ +127.0.0.1 localhost +::1 localhost ip6-localhost ip6-loopback +ff02::1 ip6-allnodes +ff02::2 ip6-allrouters +127.0.1.1 dentlab-infra1 diff --git a/DentOS_Framework/DentOsTestbed/configuration/testbed_config/vm/sit/infra1_dvm/KEEPALIVED_CONF b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/vm/sit/infra1_dvm/KEEPALIVED_CONF new file mode 100755 index 000000000..670ed74b9 --- /dev/null +++ b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/vm/sit/infra1_dvm/KEEPALIVED_CONF @@ -0,0 +1,37 @@ + + +vrrp_instance VI_100 { + state MASTER + interface vlan100 + vrrp_garp_master_delay 5 + vrrp_garp_master_refresh 60 + vrrp_garp_lower_prio_repeat 3 + virtual_router_id 1 + priority 101 + advert_int 1 + authentication { + auth_type PASS + auth_pass 1111 + } + virtual_ipaddress { + 20.1.4.1 label vlan100:MASTER + } +} + +vrrp_instance VI_300 { + state MASTER + interface vlan300 + vrrp_garp_master_delay 5 + vrrp_garp_master_refresh 60 + vrrp_garp_lower_prio_repeat 3 + virtual_router_id 2 + priority 101 + advert_int 1 + authentication { + auth_type PASS + auth_pass 1111 + } + virtual_ipaddress { + 20.2.4.1 label vlan300:MASTER + } +} diff --git a/DentOS_Framework/DentOsTestbed/configuration/testbed_config/vm/sit/infra1_dvm/NETWORK_INTERFACES b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/vm/sit/infra1_dvm/NETWORK_INTERFACES new file mode 100755 index 000000000..f3a9f1638 --- /dev/null +++ b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/vm/sit/infra1_dvm/NETWORK_INTERFACES @@ -0,0 +1,84 @@ +# +# ONL format of dent interfaces +# +# This file describes the network interfaces available on your system +# and how to activate them. For more information, see interfaces(5). + +source /etc/network/interfaces.d/*.intf + +# The loopback network interface +auto lo +iface lo inet loopback + address 20.20.0.101/32 + +# The management interface +auto ma1 +iface ma1 inet dhcp + +auto vlan100 +iface vlan100 inet static + address 20.1.4.1/22 + vlan-id 100 + vlan-raw-device bridge + +auto vlan300 +iface vlan300 inet static + address 20.2.4.1/22 + vlan-id 300 + vlan-raw-device bridge + +auto vlan400 +iface vlan400 inet static + address 20.3.4.1/22 + vlan-id 400 + vlan-raw-device bridge + +auto vlan500 +iface vlan500 inet static + address 20.4.4.1/22 + vlan-id 500 + vlan-raw-device bridge + +auto vlan600 +iface vlan600 inet static + address 20.5.4.1/22 + vlan-id 600 + vlan-raw-device bridge + +auto bridge +iface bridge inet static +alias Vlan Aware Bridge + bridge-ageing 600 + bridge-ports swp1 swp2 swp3 swp4 + bridge-vids 100 300 400 500 600 + # Turns on STP + bridge-stp on + # Puts each port into an edge mode swp1-48 + mstpctl-portadminedge swp1=yes swp2=yes swp3=yes swp4=yes + # Adds BPDU Guard to all ports swp1-48 + mstpctl-bpduguard swp1=yes swp2=yes swp3=yes swp4=yes + bridge-vlan-aware yes + +auto swp1 +iface swp1 +alias IXIA LINK + bridge-pvid 100 + bridge-vids 300 400 500 600 + +auto swp2 +iface swp2 +alias IXIA LINK + bridge-pvid 100 + bridge-vids 300 400 500 600 + +auto swp3 +iface swp3 +alias IXIA LINK + bridge-pvid 100 + bridge-vids 300 400 500 600 + +auto swp4 +iface swp4 +alias IXIA LINK + bridge-pvid 100 + bridge-vids 300 400 500 600 diff --git a/DentOS_Framework/DentOsTestbed/configuration/testbed_config/vm/sit/infra1_dvm/NTP b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/vm/sit/infra1_dvm/NTP new file mode 100755 index 000000000..4c041b9dc --- /dev/null +++ b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/vm/sit/infra1_dvm/NTP @@ -0,0 +1,60 @@ + +# /etc/ntp.conf, configuration for ntpd; see ntp.conf(5) for help + + +driftfile /var/lib/ntp/ntp.drift + + +# Enable this if you want statistics to be logged. +#statsdir /var/log/ntpstats/ + +statistics loopstats peerstats clockstats +filegen loopstats file loopstats type day enable +filegen peerstats file peerstats type day enable +filegen clockstats file clockstats type day enable + + +# You do need to talk to an NTP server or two (or three). +#server ntp.your-provider.example + + +# pool.ntp.org maps to about 1000 low-stratum NTP servers. Your server will +# pick a different set every time it starts up. Please consider joining the +# pool: +# + +# Access control configuration; see /usr/share/doc/ntp-doc/html/accopt.html for +# details. The web page +# might also be helpful. +# +# Note that "restrict" applies to both servers and clients, so a configuration +# that might be intended to block requests from certain clients could also end +# up blocking replies from your own upstream servers. + +# By default, exchange time with everybody, but don't allow configuration. +restrict -4 default kod notrap nomodify nopeer noquery +restrict -6 default kod notrap nomodify nopeer noquery + +# Local users may interrogate the ntp server more closely. +restrict 127.0.0.1 +restrict ::1 + +# Clients from this (example!) subnet have unlimited access, but only if +# cryptographically authenticated. +#restrict 192.168.123.0 mask 255.255.255.0 notrust + + +# If you want to provide time to your local subnet, change the next line. +# (Again, the address is an example only.) +#broadcast 192.168.123.255 + +# If you want to listen to time broadcasts on your local subnet, de-comment the +# next lines. Please do this only if you trust everybody on the network! +#disable auth +#broadcastclient + +# Specify interfaces, don't listen on switch ports +#interface listen eth0 +interface listen lo +interface listen lo:0 +interface listen dummy0 diff --git a/DentOS_Framework/DentOsTestbed/configuration/testbed_config/vm/sit/infra1_dvm/QUAGGA_CONFIG b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/vm/sit/infra1_dvm/QUAGGA_CONFIG new file mode 100755 index 000000000..6b2892d0b --- /dev/null +++ b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/vm/sit/infra1_dvm/QUAGGA_CONFIG @@ -0,0 +1,42 @@ +username cumulus nopassword +! +service integrated-vtysh-config +! +log timestamp precision 6 +! +no zebra nexthop kernel enable +! +router bgp 65534 + bgp router-id 20.20.0.101 + no bgp ebgp-requires-policy + neighbor INFRA peer-group + neighbor INFRA remote-as 65534 + neighbor INFRA timers 3 10 + neighbor IXIA peer-group + neighbor IXIA remote-as 200 + neighbor IXIA timers 3 10 + neighbor POD peer-group + neighbor POD remote-as 65511 + neighbor POD timers 3 10 + neighbor 20.20.96.18 peer-group POD + neighbor 20.20.96.26 peer-group POD + ! + address-family ipv4 unicast + network 20.1.0.0/16 + neighbor INFRA route-map DENY-ALL in + neighbor INFRA route-map DENY-ALL out + neighbor POD soft-reconfiguration inbound + neighbor POD route-map TO-POD out + neighbor IXIA soft-reconfiguration inbound + exit-address-family +! +ip route 20.1.0.0/16 Null0 +! +route-map TO-POD permit 10 + set community 65534:1 +! +route-map DENY-ALL deny 10 +! +line vty +! +end diff --git a/DentOS_Framework/DentOsTestbed/configuration/testbed_config/vm/sit/infra1_dvm/QUAGGA_DAEMONS b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/vm/sit/infra1_dvm/QUAGGA_DAEMONS new file mode 100755 index 000000000..cff453039 --- /dev/null +++ b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/vm/sit/infra1_dvm/QUAGGA_DAEMONS @@ -0,0 +1,30 @@ +# This file tells the quagga package which daemons to start. +# +# Entries are in the format: =(yes|no|priority) +# 0, "no" = disabled +# 1, "yes" = highest priority +# 2 .. 10 = lower priorities +# Read /usr/share/doc/quagga/README.Debian for details. +# +# Sample configurations for these daemons can be found in +# /usr/share/doc/quagga/examples/. +# +# ATTENTION: +# +# When activation a daemon at the first time, a config file, even if it is +# empty, has to be present *and* be owned by the user and group "quagga", else +# the daemon will not be started by /etc/init.d/quagga. The permissions should +# be u=rw,g=r,o=. +# When using "vtysh" such a config file is also needed. It should be owned by +# group "quaggavty" and set to ug=rw,o= though. Check /etc/pam.d/quagga, too. +# +# The watchquagga daemon is always started. Per default in monitoring-only but +# that can be changed via /etc/quagga/debian.conf. +# +zebra=yes +bgpd=yes +ospfd=no +ospf6d=no +ripd=no +ripngd=no +isisd=no diff --git a/DentOS_Framework/DentOsTestbed/configuration/testbed_config/vm/sit/infra1_dvm/QUAGGA_VTYSH b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/vm/sit/infra1_dvm/QUAGGA_VTYSH new file mode 100755 index 000000000..f7114f4b9 --- /dev/null +++ b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/vm/sit/infra1_dvm/QUAGGA_VTYSH @@ -0,0 +1,3 @@ +username cumulus nopassword +! +service integrated-vtysh-config diff --git a/DentOS_Framework/DentOsTestbed/configuration/testbed_config/vm/sit/infra1_dvm/RESOLV b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/vm/sit/infra1_dvm/RESOLV new file mode 100755 index 000000000..aa28bbb1a --- /dev/null +++ b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/vm/sit/infra1_dvm/RESOLV @@ -0,0 +1,2 @@ +nameserver 8.8.8.8 +nameserver 156.140.198.11 diff --git a/DentOS_Framework/DentOsTestbed/configuration/testbed_config/vm/sit/infra1_dvm/SSHD_CONF b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/vm/sit/infra1_dvm/SSHD_CONF new file mode 100755 index 000000000..e9506ff64 --- /dev/null +++ b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/vm/sit/infra1_dvm/SSHD_CONF @@ -0,0 +1,88 @@ +# Package generated configuration file +# See the sshd_config(5) manpage for details + +# What ports, IPs and protocols we listen for +Port 22 +# Use these options to restrict which interfaces/protocols sshd will bind to +#ListenAddress :: +ListenAddress 0.0.0.0 +Protocol 2 +# HostKeys for protocol version 2 +HostKey /etc/ssh/ssh_host_rsa_key +HostKey /etc/ssh/ssh_host_dsa_key +HostKey /etc/ssh/ssh_host_ecdsa_key +HostKey /etc/ssh/ssh_host_ed25519_key +#Privilege Separation is turned on for security +UsePrivilegeSeparation yes + +# Lifetime and size of ephemeral version 1 server key +KeyRegenerationInterval 3600 +ServerKeyBits 1024 + +# Logging +SyslogFacility AUTH +LogLevel INFO + +# Authentication: +LoginGraceTime 120 +PermitRootLogin yes +StrictModes yes + +RSAAuthentication yes +PubkeyAuthentication yes +#AuthorizedKeysFile %h/.ssh/authorized_keys + +# Don't read the user's ~/.rhosts and ~/.shosts files +IgnoreRhosts yes +# For this to work you will also need host keys in /etc/ssh_known_hosts +RhostsRSAAuthentication no +# similar for protocol version 2 +HostbasedAuthentication no +# Uncomment if you don't trust ~/.ssh/known_hosts for RhostsRSAAuthentication +#IgnoreUserKnownHosts yes + +# To enable empty passwords, change to yes (NOT RECOMMENDED) +PermitEmptyPasswords no + +# Change to yes to enable challenge-response passwords (beware issues with +# some PAM modules and threads) +ChallengeResponseAuthentication no + +# Change to no to disable tunnelled clear text passwords +PasswordAuthentication yes + +# Kerberos options +#KerberosAuthentication no +#KerberosGetAFSToken no +#KerberosOrLocalPasswd yes +#KerberosTicketCleanup yes + +# GSSAPI options +#GSSAPIAuthentication no +#GSSAPICleanupCredentials yes + +X11Forwarding yes +X11DisplayOffset 10 +PrintMotd no +PrintLastLog yes +TCPKeepAlive yes +#UseLogin no + +#MaxStartups 10:30:60 +#Banner /etc/issue.net + +# Allow client to pass locale environment variables +AcceptEnv LANG LC_* + +Subsystem sftp /usr/lib/openssh/sftp-server + +# Set this to 'yes' to enable PAM authentication, account processing, +# and session processing. If this is enabled, PAM authentication will +# be allowed through the ChallengeResponseAuthentication and +# PasswordAuthentication. Depending on your PAM configuration, +# PAM authentication via ChallengeResponseAuthentication may bypass +# the setting of "PermitRootLogin without-password". +# If you just want the PAM account and session checks to run without +# PAM authentication, then enable this but set PasswordAuthentication +# and ChallengeResponseAuthentication to 'no'. +UsePAM yes diff --git a/DentOS_Framework/DentOsTestbed/configuration/testbed_config/vm/sit/testbed.json b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/vm/sit/testbed.json new file mode 100755 index 000000000..f409d9f46 --- /dev/null +++ b/DentOS_Framework/DentOsTestbed/configuration/testbed_config/vm/sit/testbed.json @@ -0,0 +1,60 @@ +{ + "devices": [ + { + "friendlyName":"DENT infrastructure 1", + "os":"dentos", + "type" : "INFRA_SWITCH", + "hostName": "infra1_dvm", + "model": "arm64-accton-as5114-48x-r0", + "ip": "10.36.118.42", + "login":{ + "userName":"root", + "password":"onl" + }, + "cpuArchitecture": "arm", + "macAddress": "09:19:2C:45:4D:02", + "serialConsole": { + "ip": "10.36.118.200", + "port": 7007 + }, + "pdu": { + "ip": "10.36.118.201", + "login": "dent", + "password": "dent123!", + "number": 7 + }, + "serialDev":"/dev/ttyUSB0", + "baudrate": 115200, + "mediaMode":"fiber", + "links" : [ + ["swp5", "infra1_dvm:swp6"], + ["swp7", "infra1_dvm:swp8"], + ["swp9", "infra1_dvm:swp10"] + ] + }, + { + "friendlyName":"Ixia Traffic Generator", + "os":"ixnetwork", + "type" : "TRAFFIC_GENERATOR", + "hostName": "ixia", + "model": "VM", + "ip": "10.36.118.113", + "login":{ + "userName":"admin", + "password":"admin" + }, + "serialDev":"/dev/ttyUSBXX", + "baudrate": 115200, + "mediaMode":"fiber", + "links" : [ + ["10.36.118.150:1:2", "infra1_dvm:swp1", "fiber"], + ["10.36.118.150:1:3", "infra1_dvm:swp2", "fiber"], + ["10.36.118.150:1:4", "infra1_dvm:swp3", "fiber"], + ["10.36.118.150:1:1", "infra1_dvm:swp4", "fiber"] + ] + } + ], + "operator" : "dent-vm", + "topology" : "bachelor", + "force_discovery" : false +}