github.com/interconnectedcloud/qdr-operator@v0.0.0-20210826174505-576d2b33dac7/test/e2e/framework/qdrmanagement/entities/node.go (about)

     1  package entities
     2  
     3  // Node represents a Dispatch Router router.node entity
     4  type Node struct {
     5  	Id              string   `json:"id"`
     6  	ProtocolVersion int      `json:"protocolVersion"`
     7  	Instance        int      `json:"instance"`
     8  	LinkState       []string `json:"linkState"`
     9  	NextHop         string   `json:"nextHop"`
    10  	ValidOrigins    []string `json:"validOrigins"`
    11  	Address         string   `json:"address"`
    12  	RouterLink      int      `json:"routerLink"`
    13  	Cost            int      `json:"cost"`
    14  	LastTopoChange  int      `json:"lastTopoChange"`
    15  	Index           int      `json:"index"`
    16  }
    17  
    18  // Implementation of the Entity interface
    19  func (Node) GetEntityId() string {
    20  	return "router.node"
    21  }