Browse Source

zones: Machine.Zone()

Signed-off-by: Alejandro Mery <amery@jpi.io>
pull/1/head v0.4.7
Alejandro Mery 1 year ago
parent
commit
7dd3ea8f96
  1. 5
      pkg/zones/machine.go

5
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)
}

Loading…
Cancel
Save