{
  "interfaces": {
    "access": [
      {
        "interface": "SN-1-DT",
        "network-interface": "SN-2-DT:10",
        "stream-group-id": 1,
	      "icmp-client-group-id": 1,
        "outer-vlan-min": 1001,
        "outer-vlan-max": 1100,
        "inner-vlan-min": 1001,
        "inner-vlan-max": 1100
      },
      {
        "interface": "SN-3-DT",
        "network-interface": "SN-2-DT:10",
        "stream-group-id": 1,
	      "icmp-client-group-id": 1,
        "type": "ipoe",
        "dhcp": true,
        "outer-vlan-min": 2001,
        "outer-vlan-max": 2100,
        "inner-vlan-min": 1001,
        "inner-vlan-max": 1100
      }
    ],
    "network": [
      {
        "interface": "SN-2-DT",
        "vlan": 10,
        "address": "192.0.2.2/27",
        "gateway": "192.0.2.1",
        "address-ipv6": "2001:db8::2/64",
        "gateway-ipv6": "2001:db8::1",
        "ospfv2-instance-id": 1,
        "ospfv2-type": "p2p",
        "ospfv3-instance-id": 2,
        "ospfv3-type": "p2p",
        "ldp-instance-id": 1
      }
    ]
  },
  "dhcp": {
    "enable": true
  },
  "dhcpv6": {
    "enable": true,
    "rapid-commit": true
  },
  "sessions": {
    "count": 10,
    "max-outstanding": 100,
    "start-rate": 100,
    "stop-rate": 100
  },
  "pppoe": {
    "reconnect": true,
    "discovery-timeout": 5,
    "discovery-retry": 10
  },
  "access-line": {
    "agent-remote-id": "DEU.RTBRICK.{session-global}",
    "agent-circuit-id": "0.0.0.0/0.0.0.0 eth 0:{session-global}",
    "rate-up": 1024,
    "rate-down": 16384
  },
  "ppp": {
    "mru": 1492,
    "authentication": {
      "username": "{session-global}@pppoe",
      "password": "pppoe",
      "timeout": 5,
      "retry": 30,
      "protocol": "PAP"
    },
    "lcp": {
      "conf-request-timeout": 5,
      "conf-request-retry": 10,
      "keepalive-interval": 30,
      "keepalive-retry": 3
    },
    "ipcp": {
      "enable": true,
      "conf-request-timeout": 5,
      "conf-request-retry": 10
    },
    "ip6cp": {
      "enable": true,
      "conf-request-timeout": 5,
      "conf-request-retry": 10
    }
  },
  "streams": [
    {
      "name": "TCPSTREAM1",
      "stream-group-id": 1,
      "type": "ipv4",
      "raw-tcp": true,
      "direction": "both",
      "network-ipv4-address": "192.0.2.2",
      "network-interface": "SN-2-DT:10",
      "vlan-priority": 1,
      "length": 100,
      "nat": true,
      "source-port": 60001,
      "pps": 2000
    },
    {
      "name": "UDPSTREAM1",
      "stream-group-id": 1,
      "type": "ipv4",
      "direction": "both",
      "network-ipv4-address": "192.0.2.2",
      "network-interface": "SN-2-DT:10",
      "vlan-priority": 1,
      "length": 100,
      "nat": true,
      "source-port": 60001,
      "pps": 2000
    },
    {
      "name": "TCPSTREAM2",
      "stream-group-id": 1,
      "type": "ipv4",
      "raw-tcp": true,
      "direction": "both",
      "network-ipv4-address": "192.0.2.2",
      "network-interface": "SN-2-DT:10",
      "vlan-priority": 1,
      "length": 100,
      "nat": true,
      "source-port": 60002,
      "pps": 2000
    },
    {
      "name": "UDPSTREAM2",
      "stream-group-id": 1,
      "type": "ipv4",
      "direction": "both",
      "network-ipv4-address": "192.0.2.2",
      "network-interface": "SN-2-DT:10",
      "vlan-priority": 1,
      "length": 100,
      "nat": true,
      "source-port": 60002,
      "pps": 2000
    },
    {
      "name": "TCPSTREAM3",
      "stream-group-id": 1,
      "type": "ipv4",
      "raw-tcp": true,
      "direction": "both",
      "network-ipv4-address": "192.0.2.2",
      "network-interface": "SN-2-DT:10",
      "vlan-priority": 1,
      "length": 100,
      "nat": true,
      "source-port": 60003,
      "pps": 2000
    },
    {
      "name": "UDPSTREAM3",
      "stream-group-id": 1,
      "type": "ipv4",
      "direction": "both",
      "network-ipv4-address": "192.0.2.2",
      "network-interface": "SN-2-DT:10",
      "vlan-priority": 1,
      "length": 100,
      "nat": true,
      "source-port": 60003,
      "pps": 2000
    },
    {
      "name": "TCPSTREAM4",
      "stream-group-id": 1,
      "type": "ipv4",
      "raw-tcp": true,
      "direction": "both",
      "network-ipv4-address": "192.0.2.2",
      "network-interface": "SN-2-DT:10",
      "vlan-priority": 1,
      "length": 100,
      "nat": true,
      "source-port": 60004,
      "pps": 2000
    },
    {
      "name": "UDPSTREAM4",
      "stream-group-id": 1,
      "type": "ipv4",
      "direction": "both",
      "network-ipv4-address": "192.0.2.2",
      "network-interface": "SN-2-DT:10",
      "vlan-priority": 1,
      "length": 100,
      "nat": true,
      "source-port": 60004,
      "pps": 2000
    },
    {
      "name": "TCPSTREAM5",
      "stream-group-id": 1,
      "type": "ipv4",
      "raw-tcp": true,
      "direction": "both",
      "network-ipv4-address": "192.0.2.2",
      "network-interface": "SN-2-DT:10",
      "vlan-priority": 1,
      "length": 100,
      "nat": true,
      "source-port": 60005,
      "pps": 2000
    },
    {
      "name": "UDPSTREAM5",
      "stream-group-id": 1,
      "type": "ipv4",
      "direction": "both",
      "network-ipv4-address": "192.0.2.2",
      "network-interface": "SN-2-DT:10",
      "vlan-priority": 1,
      "length": 100,
      "nat": true,
      "source-port": 60005,
      "pps": 2000
    }
  ],
  "icmp-client": [
      {
          "icmp-client-group-id": 1,
          "destination-address": "192.0.2.1",
          "count":50
      }
    ],
  "ospf": [
    {
      "instance-id": 1,
      "version": 2,
      "router-id": "192.0.2.65",
      "hostname": "BNG-OSPF-V2",
      "external": {
        "purge": false,
        "mrt-file": "/home/supervisor/ospfv2.mrt",
        "connections": [
          {
            "router-id": "198.51.100.1",
            "local-ipv4-address": "10.0.0.1",
            "metric": 1000
          }
        ]
      }
    },
    {
      "instance-id": 2,
      "version": 3,
      "router-id": "192.0.2.65",
      "hostname": "BNG-OSPF-V3",
      "external": {
        "purge": false,
        "mrt-file": "/home/supervisor/ospfv3.mrt",
        "connections": [
          {
            "router-id": "198.51.100.1",
            "local-interface-id": 1,
            "metric": 1000
          }
        ]
      }
    }
  ],
  "ldp": [
    {
      "instance-id": 1,
      "lsr-id": "192.0.2.65",
      "raw-update-file": "/home/supervisor/out.ldp"
    }
  ],
  "bgp": [
    {
      "network-interface": "SN-2-DT:10",
      "local-as": 4200000001,
      "peer-as": 4200000001,
      "local-ipv4-address": "192.0.2.2",
      "peer-ipv4-address": "192.0.2.64",
      "raw-update-file": "/home/supervisor/internet.bgp"
    }
  ]
}