GATEWAYCTL

Description

Gatewayctl can communicate with gatewayd to change its configuration.

Command

gatewayctl
-h [ --help ] Display this message
-v [ --verbose ] Enable verbosity
--update_peer <peer_uid>:<peer_ip>	Update a member in the cluster with a serial number and the new --remove_peer <peer_uid> IPv4. If it didn't exist in the cluster already, it will be added automatically.
--remove_peer <peer_uid>	Remove a member in the cluster with a serial number.
--refresh_peers Refreshes connections to peers in the cluster
--list_peers
	List members in the cluster.
--update_channel <channel_name>:<channel_type>:<channel_prio>	Update replication of a channel. It needs the channel name, its type ('topic' or 'service') and a priority ('high' or 'low'). If the replication of the channel didn't exist, it will be added.
--remove_channel <channel_name>:<channel_type>	Remove a replication of a channel. It  need the channel name, its type ('topic' or 'service')
--list_channels
	List replication of channels.

Results

Result of the commands.

Example

$> gatewayctl --list_channels
[test/topic-low_prio]
type=topic
priority=low
[test/topic-high_prio]
type=topic
priority=high

$> gatewayctl --remove_channel test/topic-high_prio:topic
[Result]
OK

$> gatewayctl --list_channels
[test/topic-low_prio]
type=topic
priority=low