aboutsummaryrefslogtreecommitdiffstats
path: root/examples/tg23/templates/dist-roof.conf
diff options
context:
space:
mode:
Diffstat (limited to 'examples/tg23/templates/dist-roof.conf')
-rw-r--r--examples/tg23/templates/dist-roof.conf113
1 files changed, 113 insertions, 0 deletions
diff --git a/examples/tg23/templates/dist-roof.conf b/examples/tg23/templates/dist-roof.conf
new file mode 100644
index 0000000..eeba5d0
--- /dev/null
+++ b/examples/tg23/templates/dist-roof.conf
@@ -0,0 +1,113 @@
+{# Query parameters: ?switch=e1-1 #}
+{% set switch_name = options["switch"] %}
+{% import "vars.conf" as v with context %}
+{% include "global.conf" %}
+
+{% include "distro-common.conf" %}
+
+protocols {
+ rstp {
+ bridge-priority 4k;
+ }
+}
+
+interfaces {
+ et-0/0/48 {
+ description "G: r1.tele (ae0)";
+ ether-options {
+ 802.3ad ae0;
+ }
+ }
+ et-1/0/48 {
+ description "G: r1.tele (ae0)";
+ ether-options {
+ 802.3ad ae0;
+ }
+ }
+ ae0 {
+ description "B: r1.tele ae10";
+ aggregated-ether-options {
+ lacp {
+ active;
+ }
+ }
+ unit 0 {
+ family ethernet-switching {
+ interface-mode trunk;
+ vlan {
+ members [ distro-mgmt edge-mgmt aps-mgmt ssid-the-gathering {% for distro_name, linkmap in v.tree.items() if 'floor' in distro_name %}{% for port, network_name in linkmap.items() %} {{ network_name }}{% endfor %}{% endfor %}];
+ }
+ }
+ }
+ }
+{% for distroname, distro in v.distrodata.items() if 'floor' in distroname %}
+ {{ distro.remote_phy1 }} {
+ description "G: {{ distroname }} {{ distro.if1 }} ({{ distro.remote_ae }})";
+ ether-options {
+ 802.3ad {{ distro.remote_ae }};
+ }
+ }
+ {{ distro.remote_phy2 }} {
+ description "G: {{ distroname }} {{ distro.if2 }} ({{ distro.remote_ae }})";
+ ether-options {
+ 802.3ad {{ distro.remote_ae }};
+ }
+ }
+ {{ distro.remote_ae }} {
+ description "B: {{ distroname }} ae0";
+ aggregated-ether-options {
+ lacp {
+ active;
+ }
+ }
+ unit 0 {
+ family ethernet-switching {
+ interface-mode trunk;
+ vlan {
+ {% if v.tree[distroname] %}
+ members [ distro-mgmt edge-mgmt aps-mgmt ssid-the-gathering {% for port, network_name in v.tree[distroname].items() %}{{ network_name }} {% endfor %}];
+ {% else %}
+ members [ distro-mgmt edge-mgmt aps-mgmt ssid-the-gathering ];
+ {% endif %}
+ }
+ }
+ }
+ }
+{% endfor %}
+}
+
+vlans {
+{% for distro_name, linkmap in v.tree.items() if 'floor' in distro_name %}
+ {% for port, network_name in linkmap.items() %}
+ {{ network_name }} {
+ vlan-id {{ v.distro_networks[network_name].vlan }};
+ }
+ {% endfor %}
+{% endfor %}
+ distro-mgmt {
+ vlan-id 667;
+ l3-interface irb.667;
+ }
+ edge-mgmt {
+ vlan-id 666;
+ }
+ aps-mgmt {
+ vlan-id 777;
+ }
+ ssid-the-gathering {
+ vlan-id 778;
+ }
+}
+
+virtual-chassis {
+ preprovisioned;
+ no-split-detection;
+ member 0 {
+ role routing-engine;
+ serial-number <removed>;
+ }
+ member 1 {
+ role routing-engine;
+ serial-number <removed>;
+ }
+}