github.com/vmware/go-vmware-nsxt@v0.0.0-20230223012718-d31b8a1ca05e/manager/bgp_neighbor_status.go (about)

     1  /* Copyright © 2017 VMware, Inc. All Rights Reserved.
     2     SPDX-License-Identifier: BSD-2-Clause
     3  
     4     Generated by: https://github.com/swagger-api/swagger-codegen.git */
     5  
     6  package manager
     7  
     8  import (
     9  	"github.com/vmware/go-vmware-nsxt/common"
    10  )
    11  
    12  type BgpNeighborStatus struct {
    13  
    14  	// BGP capabilities sent to BGP neighbor.
    15  	AnnouncedCapabilities []string `json:"announced_capabilities,omitempty"`
    16  
    17  	// Count of connection drop
    18  	ConnectionDropCount int64 `json:"connection_drop_count,omitempty"`
    19  
    20  	// Current state of the BGP session.
    21  	ConnectionState string `json:"connection_state,omitempty"`
    22  
    23  	// Count of connections established
    24  	EstablishedConnectionCount int64 `json:"established_connection_count,omitempty"`
    25  
    26  	// Indicate current state of graceful restart where graceful_restart = true indicate graceful restart is enabled and graceful_restart = false indicate graceful restart is disabled.
    27  	GracefulRestart bool `json:"graceful_restart,omitempty"`
    28  
    29  	// Time in ms to wait for HELLO from BGP peer. If a HELLO packet is not seen from BGP Peer withing hold_time then BGP neighbor will be marked as down.
    30  	HoldTime int64 `json:"hold_time,omitempty"`
    31  
    32  	// Time in ms to wait for HELLO packet from BGP peer
    33  	KeepAliveInterval int64 `json:"keep_alive_interval,omitempty"`
    34  
    35  	// TCP port number of Local BGP connection
    36  	LocalPort int64 `json:"local_port,omitempty"`
    37  
    38  	// Logical router component(Service Router/Distributed Router) id
    39  	LrComponentId string `json:"lr_component_id,omitempty"`
    40  
    41  	// Count of messages received from the neighbor
    42  	MessagesReceived int64 `json:"messages_received,omitempty"`
    43  
    44  	// Count of messages sent to the neighbor
    45  	MessagesSent int64 `json:"messages_sent,omitempty"`
    46  
    47  	// BGP capabilities negotiated with BGP neighbor.
    48  	NegotiatedCapability []string `json:"negotiated_capability,omitempty"`
    49  
    50  	// The IP of the BGP neighbor
    51  	NeighborAddress string `json:"neighbor_address,omitempty"`
    52  
    53  	// Router ID of the BGP neighbor.
    54  	NeighborRouterId string `json:"neighbor_router_id,omitempty"`
    55  
    56  	// AS number of the BGP neighbor
    57  	RemoteAsNumber string `json:"remote_as_number,omitempty"`
    58  
    59  	// TCP port number of remote BGP Connection
    60  	RemotePort int64 `json:"remote_port,omitempty"`
    61  
    62  	// The Ip address of logical port
    63  	SourceAddress string `json:"source_address,omitempty"`
    64  
    65  	// Time(in milliseconds) since connection was established.
    66  	TimeSinceEstablished int64 `json:"time_since_established,omitempty"`
    67  
    68  	// Count of in prefixes
    69  	TotalInPrefixCount int64 `json:"total_in_prefix_count,omitempty"`
    70  
    71  	// Count of out prefixes
    72  	TotalOutPrefixCount int64 `json:"total_out_prefix_count,omitempty"`
    73  
    74  	// Transport node id and name
    75  	TransportNode *common.ResourceReference `json:"transport_node,omitempty"`
    76  }