Class: Google::Apis::ComputeAlpha::RouterBgpPeerBfd

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/compute_alpha/classes.rb,
generated/google/apis/compute_alpha/representations.rb,
generated/google/apis/compute_alpha/representations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ RouterBgpPeerBfd

Returns a new instance of RouterBgpPeerBfd



25957
25958
25959
# File 'generated/google/apis/compute_alpha/classes.rb', line 25957

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#min_receive_intervalFixnum

The minimum interval, in milliseconds, between BFD packets received from the peer router. The actual value is negotiated between the two routers and is equal to the greater of this value and the transmit interval of the other router. If BFD echo mode is enabled on this router and the peer router, this value is used to negotiate the interval between BFD echo packets transmitted by the peer router. Otherwise, it will be used to determine the interval between BFD control packets. If set, this value must be between 33 and 30000. The default is 300. Corresponds to the JSON property minReceiveInterval

Returns:

  • (Fixnum)


25905
25906
25907
# File 'generated/google/apis/compute_alpha/classes.rb', line 25905

def min_receive_interval
  @min_receive_interval
end

#min_transmit_intervalFixnum

The minimum interval, in milliseconds, between BFD packets transmitted to the peer router. The actual value is negotiated between the two routers and is equal to the greater of this value and the corresponding receive interval of the other router. If BFD echo mode is enabled on this router and the peer router, this value is used to negotiate the interval between BFD echo packets transmitted by this router. Otherwise, it will be used to determine the interval between BFD control packets. If set, this value must be between 33 and 30000. The default is 300. Corresponds to the JSON property minTransmitInterval

Returns:

  • (Fixnum)


25917
25918
25919
# File 'generated/google/apis/compute_alpha/classes.rb', line 25917

def min_transmit_interval
  @min_transmit_interval
end

#modeString

The BFD session initialization mode for this BGP peer. If set to ACTIVE, the Cloud Router will initiate the BFD session for this BGP peer. If set to PASSIVE, the Cloud Router will wait for the peer router to initiate the BFD session for this BGP peer. If set to DISABLED, BFD is disabled for this BGP peer. The default is PASSIVE. Corresponds to the JSON property mode

Returns:

  • (String)


25926
25927
25928
# File 'generated/google/apis/compute_alpha/classes.rb', line 25926

def mode
  @mode
end

#multiplierFixnum

The number of consecutive BFD packets that must be missed before BFD declares that a peer is unavailable. If set, the value must be a value between 2 and 16. The default is 3. Corresponds to the JSON property multiplier

Returns:

  • (Fixnum)


25933
25934
25935
# File 'generated/google/apis/compute_alpha/classes.rb', line 25933

def multiplier
  @multiplier
end

#packet_modeString

The BFD packet mode for this BGP peer. If set to CONTROL_AND_ECHO, BFD echo mode is enabled for this BGP peer. In this mode, if the peer router also has BFD echo mode enabled, BFD echo packets will be sent to the other router. If the peer router does not have BFD echo mode enabled, only control packets will be sent. If set to CONTROL_ONLY, BFD echo mode is disabled for this BGP peer. If this router and the peer router have a multihop connection, this should be set to CONTROL_ONLY as BFD echo mode is only supported on singlehop connections. The default is CONTROL_AND_ECHO. Corresponds to the JSON property packetMode

Returns:

  • (String)


25945
25946
25947
# File 'generated/google/apis/compute_alpha/classes.rb', line 25945

def packet_mode
  @packet_mode
end

#slow_timer_intervalFixnum

The minimum interval, in milliseconds, between BFD control packets transmitted to and received from the peer router when BFD echo mode is enabled on both routers. The actual transmit and receive intervals are negotiated between the two routers and are equal to the greater of this value and the corresponding interval on the other router. If set, this value must be between 1000 and

  1. The default is 5000. Corresponds to the JSON property slowTimerInterval

Returns:

  • (Fixnum)


25955
25956
25957
# File 'generated/google/apis/compute_alpha/classes.rb', line 25955

def slow_timer_interval
  @slow_timer_interval
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



25962
25963
25964
25965
25966
25967
25968
25969
# File 'generated/google/apis/compute_alpha/classes.rb', line 25962

def update!(**args)
  @min_receive_interval = args[:min_receive_interval] if args.key?(:min_receive_interval)
  @min_transmit_interval = args[:min_transmit_interval] if args.key?(:min_transmit_interval)
  @mode = args[:mode] if args.key?(:mode)
  @multiplier = args[:multiplier] if args.key?(:multiplier)
  @packet_mode = args[:packet_mode] if args.key?(:packet_mode)
  @slow_timer_interval = args[:slow_timer_interval] if args.key?(:slow_timer_interval)
end