Skip to content
  • Jose A. Lopes's avatar
    Simplify 'GetMasterInfo' RPC · cb8028f3
    Jose A. Lopes authored
    
    
    RPC 'GetMasterInfo' returns several fields, namely, 'master_netdev',
    'master_ip', 'master_netmask', 'master_node', and 'primary_ip_family',
    of which only the 'master_node' is actually used.
    
    In this patch:
    * remove all the other fields and keep only the 'master_node' field.
    * rename RPCs, helper functions (e.g., 'master_info' to 'master_node_name')
    * simplify the the voting algorithm code
    
    Signed-off-by: default avatarJose A. Lopes <jabolopes@google.com>
    Reviewed-by: default avatarGuido Trotter <ultrotter@google.com>
    cb8028f3