diff --git a/pkg/zones/machine.go b/pkg/zones/machine.go index 4f0c736..0a49ad3 100644 --- a/pkg/zones/machine.go +++ b/pkg/zones/machine.go @@ -43,6 +43,11 @@ func (m *Machine) IsGateway() bool { return ok } +// Zone indicates the [Zone] this machine belongs to +func (m *Machine) Zone() int { + return m.zone.ID +} + func (m *Machine) getPeerByName(name string) (*Machine, bool) { return m.zone.zones.GetMachineByName(name) }