Skip to content

Commit 4c4925e

Browse files
authored
Merge pull request TheThingsIndustries#339 from TheThingsIndustries/doc/pb-wiring
Document Packet Broker regional cluster config
2 parents 62c7fec + 435a5e4 commit 4c4925e

7 files changed

Lines changed: 41 additions & 20 deletions

File tree

doc/content/reference/packet-broker/_index.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,15 @@ Localization | O | | Gateway locations, timestamps and signal quality
5858
5959
## Getting Started
6060

61-
{{% tts %}} Community Edition or {{% tts %}} Cloud {{< distributions "Cloud" "Dedicated Cloud" "Community" >}} is already connected to Packet Broker. Proceed to [Configure]({{< relref "configure" >}}) section to manage your registration and routing policies with other networks.
61+
{{% tts %}} Community Edition and {{% tts %}} Cloud are already connected to Packet Broker. Proceed to [Configure]({{< relref "configure" >}}) section to manage your registration and routing policies with other networks.
6262

63-
When you are using {{% tts %}} Community Edition {{< distributions "Community" >}}, you cannot configure any routing policies, as {{% tts %}} Community Edition is a public network and The Things Network Foundation controls which public or private networks the traffic gets exchanged with. To manage routing policies for your gateways, upgrade to {{% tts %}} Cloud.
63+
{{< note >}}
64+
{{% tts %}} Community Edition and {{% tts %}} Cloud are configured for peering within the same geographical region. For example, {{% tts %}} Community Edition `eu1` cluster is configured to peer only with {{% tts %}} Cloud `eu1` deployments and vice versa. Peering between `eu1`, `au1` and `nam1` clusters is not currently enabled.
65+
{{</ note >}}
6466

65-
When using {{% tts %}} Enterprise of {{% tts %}} Open Source, learn to [Connect {{% tts %}} to Packet Broker]({{< relref "connect" >}}). {{< distributions "Enterprise" "Open Source" >}}
67+
When you are using {{% tts %}} Community Edition, you cannot configure any routing policies, as {{% tts %}} Community Edition is a public network and The Things Network Foundation controls which public or private networks the traffic gets exchanged with. To manage routing policies for your gateways, upgrade to {{% tts %}} Cloud.
68+
69+
When using {{% tts %}} Enterprise of {{% tts %}} Open Source, learn to [Connect {{% tts %}} to Packet Broker]({{< relref "connect" >}}).
6670

6771
## LoRaWAN Roaming vs Packet Broker
6872

doc/content/reference/packet-broker/connect.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,11 @@ If you are using {{% tts %}} Cloud or if your {{% tts %}} deployment is connecte
1919

2020
## Prerequisites
2121

22-
1. A LoRa Alliance NetID or a tenant of a host NetID.
23-
- To obtain a NetID, [become a member of the LoRa Alliance](https://lora-alliance.org/become-a-member) (from USD 6,000 per year)
24-
- To obtain a DevAddr block, [contact The Things Industries sales](mailto:[email protected]) (from USD 1,000 per year)
25-
2. Access to Packet Broker with an API key, [contact The Things Industries sales](mailto:[email protected])
22+
1. A LoRa Alliance NetID or a tenant of a host NetID
23+
- To obtain a NetID, [become a member of the LoRa Alliance](https://lora-alliance.org/become-a-member)
24+
- To obtain a DevAddr block, [contact The Things Industries sales](mailto:[email protected])
25+
2. Access to Packet Broker with an API key
26+
- To obtain access to Packet Broker, [contact The Things Industries sales](mailto:[email protected])
2627
3. {{% tts %}} installed and configured. See [Getting Started]({{< ref "/getting-started" >}})
2728
4. Packet Broker CLI installed and configured. See [Packet Broker CLI](https://github.com/packetbroker/pb)
2829

@@ -66,7 +67,7 @@ See [Packet Broker Agent configuration]({{< ref "/reference/configuration/packet
6667
6768
## Configure Gateway Server
6869
69-
Configure Gateway Server to forward traffic for the current network to the Network Server in the cluster, and route all traffic to Packet Broker (via Packet Broker Agent):
70+
Configure the Gateway Server to forward traffic for the current network to the Network Server in the cluster, and route all traffic to Packet Broker (via Packet Broker Agent):
7071
7172
```yaml
7273
# Edit the Gateway Server configuration in your configuration file:
@@ -84,7 +85,7 @@ See [Gateway Server configuration]({{< ref "/reference/configuration/gateway-ser
8485
8586
## Configure Network Server
8687
87-
Configure Network Server to issue device addresses (DevAddr) that fall within your NetID:
88+
Configure the Network Server to issue device addresses (DevAddr) that fall within your NetID:
8889
8990
```yaml
9091
# Edit the Network Server configuration in your configuration file:
@@ -105,7 +106,7 @@ ns:
105106
- '27222200/16'
106107
```
107108
108-
{{< note >}} By default, Network Server uses NetID `000000` which is intended for experimentation purposes. Only devices that are activated with a DevAddr that refers to a NetID will have their traffic routed by Packet Broker to your network. {{</ note >}}
109+
{{< note >}} By default, the Network Server uses NetID `000000` which is intended for experimentation purposes. Only devices that are activated with a DevAddr that refers to a NetID will have their traffic routed by Packet Broker to your network. {{</ note >}}
109110

110111
See [Network Server configuration]({{< ref "/reference/configuration/network-server" >}}) for all configuration options.
111112

doc/data/distributions.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,30 @@
11
Cloud:
2+
name: "Cloud"
23
color: "#0032B4"
34
icon: "/img/tts_frames/frame_cloud.svg"
5+
weight: 1
46
Dedicated Cloud:
7+
name: "Dedicated Cloud"
58
color: "#D356FF"
69
icon: "/img/tts_frames/frame_dedicated_cloud.svg"
10+
weight: 2
711
Community:
12+
name: "Community"
813
color: "#0D83D0"
914
icon: "/img/tts_frames/frame_ttn.svg"
15+
weight: 9
1016
Open Source:
17+
name: "Open Source"
1118
color: "#00C1FF"
1219
icon: "/img/tts_frames/frame_open_source.svg"
20+
weight: 5
1321
Enterprise:
22+
name: "Enterprise"
1423
color: "#00C985"
1524
icon: "/img/tts_frames/frame_enterprise.svg"
25+
weight: 3
1626
AWS Launcher:
27+
name: "AWS Launcher"
1728
color: "#F19419"
1829
icon: "/img/tts_frames/frame_aws.svg"
30+
weight: 4
Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
1-
<a href="{{ "download" | relURL }}" target="_blank" class="badge-stack has-tooltip has-tooltip-arrow has-tooltip-light" data-tooltip="{{ delimit . ", " " and " }} Only">
2-
{{ range . }}
3-
{{ $distribution := index site.Data.distributions . }}
4-
<img class="badge" src="{{ index $distribution "icon" | relURL }}"></img>
5-
{{ end }}
1+
{{ $distribution_strings := slice }}
2+
{{ range sort . "weight" "asc" }}
3+
{{ $distribution_strings = append .name $distribution_strings }}
4+
{{ end }}
5+
<a href="{{ "download" | relURL }}" target="_blank" class="badge-stack has-tooltip has-tooltip-arrow has-tooltip-light" data-tooltip="{{ delimit $distribution_strings ", " " and " }} Only">
6+
{{ range sort . "weight" "asc" }}
7+
<img class="badge" src="{{ .icon | relURL }}"></img>
8+
{{ end }}
69
</a>

doc/layouts/partials/distributions.html

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,14 @@
22
{{ if ( not ( reflect.IsSlice $distributions_sliced ) ) }}
33
{{ $distributions_sliced = slice $distributions_sliced }}
44
{{ end }}
5-
{{ $distributions := sort $distributions_sliced }}
65
{{ $distributions_all := index site.Data "distributions" }}
7-
{{ range $distributions }}
6+
{{ $test := where ( index site.Data "distributions" ) "name" "in" "$distributions" }}
7+
{{ $distributions_sliced_map := dict }}
8+
{{ range $distributions_sliced }}
89
{{ if not (isset $distributions_all .) }}
910
{{ errorf "distribution '%s' not in '%s'" . (delimit $distributions_all ", ") }}
11+
{{ else }}
12+
{{ $distributions_sliced_map = merge $distributions_sliced_map (dict . (index $distributions_all . ) ) }}
1013
{{ end }}
1114
{{ end }}
12-
{{ partial "distribution-icons" $distributions}}
15+
{{ partial "distribution-icons" $distributions_sliced_map }}

doc/layouts/shortcodes/distributions-inline.html

Lines changed: 0 additions & 1 deletion
This file was deleted.

doc/layouts/shortcodes/distributions-list.html

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)