Advertisement
Guest User

Untitled

a guest
May 27th, 2015
226
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.11 KB | None | 0 0
  1. message Host {
  2. optional UUID id = 1;
  3. optional string name = 2;
  4. repeated IPAddress addresses = 3;
  5.  
  6. message PortBinding {
  7. optional UUID port_id = 1;
  8. optional string interface_name = 2;
  9. }
  10. repeated PortBinding port_bindings = 4;
  11. optional int32 flooding_proxy_weight = 5;
  12.  
  13. // Back-reference. Expected to be set from the Tunnel Zone side.
  14. repeated UUID tunnel_zone_ids = 101;
  15. }
  16.  
  17. @ZoomClass(clazz = classOf[TopologyHost])
  18. class MidoHost extends ZoomObject with Device {
  19. @ZoomField(name = "id", converter = classOf[UUIDConverter])
  20. var id: UUID = _
  21.  
  22. @ZoomField(name = "port_bindings",
  23. converter = classOf[PortBindingConverter])
  24. var portBindings = Map.empty[UUID, String]
  25.  
  26. @ZoomField(name = "tunnel_zone_ids", converter = classOf[UUIDConverter])
  27. var tunnelZoneIds = Set.empty[UUID]
  28.  
  29. // The IP address of the host in each one of the tunnel zones
  30. // (this is stored outside of the host proto).
  31. var tunnelZones = Map.empty[UUID, IPAddr]
  32. // The alive status of the host (this is stored outside of the host proto).
  33. var alive: Boolean = false
  34. ...
  35. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement