Class: Azure::Network::Mgmt::V2020_04_01::Models::BgpPeerStatus

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2020-04-01/generated/azure_mgmt_network/models/bgp_peer_status.rb

Overview

BGP peer status details.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#asnInteger

Returns The autonomous system number of the remote BGP peer.

Returns:

  • (Integer)

    The autonomous system number of the remote BGP peer.


22
23
24
# File 'lib/2020-04-01/generated/azure_mgmt_network/models/bgp_peer_status.rb', line 22

def asn
  @asn
end

#connected_durationString

Returns For how long the peering has been up.

Returns:

  • (String)

    For how long the peering has been up.


29
30
31
# File 'lib/2020-04-01/generated/azure_mgmt_network/models/bgp_peer_status.rb', line 29

def connected_duration
  @connected_duration
end

#local_addressString

Returns The virtual network gateway's local address.

Returns:

  • (String)

    The virtual network gateway's local address.


16
17
18
# File 'lib/2020-04-01/generated/azure_mgmt_network/models/bgp_peer_status.rb', line 16

def local_address
  @local_address
end

#messages_receivedInteger

Returns The number of BGP messages received.

Returns:

  • (Integer)

    The number of BGP messages received.


38
39
40
# File 'lib/2020-04-01/generated/azure_mgmt_network/models/bgp_peer_status.rb', line 38

def messages_received
  @messages_received
end

#messages_sentInteger

Returns The number of BGP messages sent.

Returns:

  • (Integer)

    The number of BGP messages sent.


35
36
37
# File 'lib/2020-04-01/generated/azure_mgmt_network/models/bgp_peer_status.rb', line 35

def messages_sent
  @messages_sent
end

#neighborString

Returns The remote BGP peer.

Returns:

  • (String)

    The remote BGP peer.


19
20
21
# File 'lib/2020-04-01/generated/azure_mgmt_network/models/bgp_peer_status.rb', line 19

def neighbor
  @neighbor
end

#routes_receivedInteger

Returns The number of routes learned from this peer.

Returns:

  • (Integer)

    The number of routes learned from this peer.


32
33
34
# File 'lib/2020-04-01/generated/azure_mgmt_network/models/bgp_peer_status.rb', line 32

def routes_received
  @routes_received
end

#stateBgpPeerState

'Unknown', 'Stopped', 'Idle', 'Connecting', 'Connected'

Returns:

  • (BgpPeerState)

    The BGP peer state. Possible values include:


26
27
28
# File 'lib/2020-04-01/generated/azure_mgmt_network/models/bgp_peer_status.rb', line 26

def state
  @state
end

Class Method Details

.mapperObject

Mapper for BgpPeerStatus class as Ruby Hash. This will be used for serialization/deserialization.


45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
# File 'lib/2020-04-01/generated/azure_mgmt_network/models/bgp_peer_status.rb', line 45

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'BgpPeerStatus',
    type: {
      name: 'Composite',
      class_name: 'BgpPeerStatus',
      model_properties: {
        local_address: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'localAddress',
          type: {
            name: 'String'
          }
        },
        neighbor: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'neighbor',
          type: {
            name: 'String'
          }
        },
        asn: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'asn',
          constraints: {
            InclusiveMaximum: 4294967295,
            InclusiveMinimum: 0
          },
          type: {
            name: 'Number'
          }
        },
        state: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'state',
          type: {
            name: 'String'
          }
        },
        connected_duration: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'connectedDuration',
          type: {
            name: 'String'
          }
        },
        routes_received: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'routesReceived',
          type: {
            name: 'Number'
          }
        },
        messages_sent: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'messagesSent',
          type: {
            name: 'Number'
          }
        },
        messages_received: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'messagesReceived',
          type: {
            name: 'Number'
          }
        }
      }
    }
  }
end