Lookup an instance's IP. Returns `None` if the instance is unknown.
(&self, instance_id: &str)
| 948 | |
| 949 | /// Lookup an instance's IP. Returns `None` if the instance is unknown. |
| 950 | pub(crate) fn instance_ip(&self, instance_id: &str) -> Option<Ipv4Addr> { |
| 951 | self.state.instances.get(instance_id).map(|i| i.ip) |
| 952 | } |
| 953 | |
| 954 | /// Lookup the effective port_policy for an instance: admin override wins, |
| 955 | /// otherwise fall back to the instance-reported policy. `None` means |
no test coverage detected