Skip to content

Commit

Permalink
rename dispatcher flag
Browse files Browse the repository at this point in the history
  • Loading branch information
JordiSubira committed May 13, 2024
1 parent 568dfc0 commit 68d5735
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion dispatcher/cmd/dispatcher/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ func realMain(ctx context.Context) error {
g.Go(func() error {
defer log.HandlePanic()
return runDispatcher(
globalCfg.Dispatcher.IsDispatcher,
globalCfg.Dispatcher.LocalUDPForwarding,
globalCfg.Dispatcher.ServiceAddresses,
netip.AddrPortFrom(
globalCfg.Dispatcher.UnderlayAddr,
Expand Down
6 changes: 3 additions & 3 deletions dispatcher/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,9 @@ func (cfg *Config) ConfigName() string {
type Dispatcher struct {
// ID is the SCION element ID of the shim dispatcher.
ID string `toml:"id,omitempty"`
// IsDispatcher is the flag indicating whether the shim acts as dispatcher for packets arriving
// to the fix endhost port. Otherwise, it will only reply to SCMPInfo packets.
IsDispatcher bool `toml:"is_dispatcher,omitempty"`
// LocalUDPForwarding specifies whether UDP forwarding is enabled for the dispatcher.
// Otherwise, it will only reply to SCMPInfo packets.
LocalUDPForwarding bool `toml:"local_udp_forwarding,omitempty"`
// ServiceAddresses is the map of IA,SVC -> underlay UDP/IP address.
// The map should be configured provided that the shim dispatcher runs colocated to such
// mapped services, e.g., the shim dispatcher runs on the same host,
Expand Down
2 changes: 1 addition & 1 deletion tools/topology/go.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ def _build_disp_conf(self, name, topo_id=None):
tomlDict = {
'dispatcher': {
'id': name,
'is_dispatcher': True,
'local_udp_forwarding': True,
},
'log': self._log_entry(name),
'metrics': {
Expand Down

0 comments on commit 68d5735

Please sign in to comment.