Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- message Host {
- optional UUID id = 1;
- optional string name = 2;
- repeated IPAddress addresses = 3;
- message PortBinding {
- optional UUID port_id = 1;
- optional string interface_name = 2;
- }
- repeated PortBinding port_bindings = 4;
- optional int32 flooding_proxy_weight = 5;
- // Back-reference. Expected to be set from the Tunnel Zone side.
- repeated UUID tunnel_zone_ids = 101;
- }
- @ZoomClass(clazz = classOf[TopologyHost])
- class MidoHost extends ZoomObject with Device {
- @ZoomField(name = "id", converter = classOf[UUIDConverter])
- var id: UUID = _
- @ZoomField(name = "port_bindings",
- converter = classOf[PortBindingConverter])
- var portBindings = Map.empty[UUID, String]
- @ZoomField(name = "tunnel_zone_ids", converter = classOf[UUIDConverter])
- var tunnelZoneIds = Set.empty[UUID]
- // The IP address of the host in each one of the tunnel zones
- // (this is stored outside of the host proto).
- var tunnelZones = Map.empty[UUID, IPAddr]
- // The alive status of the host (this is stored outside of the host proto).
- var alive: Boolean = false
- ...
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement