|
|
@ -43,6 +43,11 @@ func (m *Machine) IsGateway() bool { |
|
|
|
return ok |
|
|
|
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) { |
|
|
|
func (m *Machine) getPeerByName(name string) (*Machine, bool) { |
|
|
|
return m.zone.zones.GetMachineByName(name) |
|
|
|
return m.zone.zones.GetMachineByName(name) |
|
|
|
} |
|
|
|
} |
|
|
|