pbctl policy set
Set a policy
Synopsis
Set default routing policy of Forwarder, or a specific policy between a Forwarder and a Home Network.
You can specify uplink policies with the following letters: J: Join-request messages M: MAC layer uplink (FPort 0) A: Application layer uplink (FPort > 0) S: Signal quality L: Gateway location
You can specify downlink policies with the following letters: J: Join-accept messages M: MAC layer downlink (FPort 0) A: Application layer downlink (FPort > 0)
Policies are defined by the Forwarding network or tenant, as they control who may use their infrastructure.
pbctl policy set [flags]
Examples
Set default policy of Forwarder network to allow all peering:
$ pbctl policy set --forwarder-net-id 000013 \
--defaults --set-uplink JMASL --set-downlink JMA
Set default policy of Forwarder tenant to allow all peering:
$ pbctl policy set --forwarder-net-id 000013 --forwarder-tenant-id tti \
--defaults --set-uplink JMASL --set-downlink JMA
Configure only device activations and MAC-layer traffic between The Things
Network (NetID 000013) and Senet (NetID 000009):
$ pbctl policy set --forwarder-net-id 000013 --home-network-net-id 000009 \
--set-uplink JM --set-downlink JM
Options
--defaults default policy
-h, --help help for set
--home-network-net-id netID LoRa Alliance NetID
--home-network-tenant-id string tenant ID
--set-downlink downlinkPolicy downlink policy, use letters J, M and A
--set-uplink uplinkPolicy uplink policy, use letters J, M, A, S and L
Options inherited from parent commands
--client-id string OAuth 2.0 client ID
--client-secret string OAuth 2.0 client secret
--config string config file (default is $HOME/.pb.yaml, .pb.yaml)
--controlplane-address string address of the server "host[:port]" (default "cp.packetbroker.net:443")
-d, --debug debug mode
--forwarder-net-id netID LoRa Alliance NetID
--forwarder-tenant-id string tenant ID
--iam-address string address of the server "host[:port]" (default "iam.packetbroker.net:443")
--insecure insecure
--reports-address string address of the server "host[:port]" (default "reports.packetbroker.net:443")
--token-url string OAuth 2.0 token URL (default "https://iam.packetbroker.net/token")
SEE ALSO
- pbctl policy - Manage Packet Broker routing policies