.. _dellemc.enterprise_sonic.sonic_ars_module: ********************************** dellemc.enterprise_sonic.sonic_ars ********************************** **Manage adaptive routing and switching (ARS) configuration on SONiC** Version added: 3.1.0 .. contents:: :local: :depth: 1 Synopsis -------- - This module provides configuration management of ARS for devices running SONiC Parameters ---------- .. raw:: html
Parameter Choices/Defaults Comments
config
dictionary
ARS configuration
ars_objects
list / elements=dictionary
List of ARS next-hop group objects configuration
idle_time
integer
Idle time in microseconds
Range 16-32767
max_flows
integer
    Choices:
  • 256
  • 512
  • 1024
  • 2048
  • 4096
  • 8192
  • 16384
  • 32768
Maximum number of flows that can be maintained by the ARS object
mode
string
    Choices:
  • fixed
  • flowlet-quality
  • flowlet-random
  • packet-quality
  • packet-random
ARS path reassignment mode
name
string / required
Name of next-hop group object
port_bindings
list / elements=dictionary
List of ARS port bindings configuration
name
string / required
Name of port
profile
string
ARS port profile to bind to port
Required for modifcation
port_profiles
list / elements=dictionary
List of ARS port profiles configuration
enable
boolean
    Choices:
  • no
  • yes
Enable/disable ARS for the port
load_future_weight
integer
Weight of future port load used in EWMA calculations
Range 1-16
load_past_weight
integer
Weight as a percentage of the past port load
Range 0-100
load_scaling_factor
float
    Choices:
  • 0
  • 1
  • 2.5
  • 4
  • 5
  • 10
  • 20
  • 40
  • 80
Port load scaling factor
name
string / required
Name of port profile
profiles
list / elements=dictionary
List of ARS profiles configuration
algorithm
string
    Choices:
  • EWMA
ARS algorithm used for quality computation
EWMA - Exponential Weighted Moving Average
load_current_max_val
integer
Maximum current load threshold value for the quantization process
Range 0-133169151
load_current_min_val
integer
Minimum current load threshold value for the quantization process
Range 0-133169151
load_future_max_val
integer
Maximum future load threshold value for the quantization process
Range 0-266338303
load_future_min_val
integer
Minimum future load threshold value for the quantization process
Range 0-266338303
load_past_max_val
integer
Maximum past load threshold value for the quantization process
Range 0-10000
load_past_min_val
integer
Minimum past load threshold value for the quantization process
Range 0-10000
name
string / required
Name of profile
port_load_current
boolean
    Choices:
  • no
  • yes
Set port load to current sampled value when sampled value is less than the average
port_load_exponent
integer
EWMA exponent used in port loading computation
Range 1-16
port_load_future
boolean
    Choices:
  • no
  • yes
Enable/disable future port load, the average queued bytes measured on a port
port_load_future_weight
integer
Weight of future port load used in EWMA calculations
Range 1-16
port_load_past
boolean
    Choices:
  • no
  • yes
Enable/disable past port load, the average egress bytes measured on a port
port_load_past_weight
integer
Weight of past port load used in EWMA calculations
Range 1-16
random_seed
integer
Random seed value
Range 0-16777214
sampling_interval
integer
Sampling interval in microseconds
Range 1-255
switch_binding
dictionary
ARS switch binding configuration
profile
string
ARS profile to bind to switch
state
string
    Choices:
  • merged ←
  • deleted
  • replaced
  • overridden
The state of the configuration after module completion

Notes ----- .. note:: - Tested against Enterprise SONiC Distribution by Dell Technologies. - Supports ``check_mode``. Examples -------- .. code-block:: yaml # Using "merged" state # # Before state: # ------------- # # sonic# show running-configuration ars # (No ARS configuration present) - name: Merge ARS configuration dellemc.enterprise_sonic.sonic_ars: config: ars_objects: - name: obj1 idle_time: 100 max_flows: 1024 mode: flowlet-quality port_profiles: - name: pp1 enable: true load_future_weight: 9 load_past_weight: 20 load_scaling_factor: 0 profiles: - name: p1 algorithm: EWMA load_current_max_val: 10000 load_current_min_val: 100 load_future_max_val: 20000 load_future_min_val: 200 load_past_max_val: 500 load_past_min_val: 50 port_load_current: true port_load_exponent: 7 port_load_future: true port_load_future_weight: 9 port_load_past: true port_load_past_weight: 11 random_seed: 800000 sampling_interval: 140 port_bindings: - name: Ethernet20 profile: pp1 switch_binding: profile: p1 state: merged # After state: # ------------ # # sonic# show running-configuration ars # ars profile p1 # sampling-interval 140 # random-seed 800000 # port-load-past-weight 11 # port-load-future-weight 9 # port-load-current # port-load-exponent 7 # load-past-min-val 50 # load-past-max-val 500 # load-future-min-val 200 # load-future-max-val 20000 # load-current-min-val 100 # load-current-max-val 10000 # ! # ars port-profile pp1 # enable # load-past-weight 20 # load-future-weight 9 # ! # ars object obj1 # idle-time 100 # max-flows 1024 # ! # interface Ethernet20 # mtu 9100 # speed 400000 # fec RS # unreliable-los auto # shutdown # ars bind pp1 # ! # ars bind profile p1 # Using "replaced" state # # Before state: # ------------- # # sonic# show running-configuration ars # ars profile p1 # sampling-interval 140 # random-seed 800000 # port-load-past-weight 11 # port-load-future-weight 9 # port-load-current # port-load-exponent 7 # load-past-min-val 50 # load-past-max-val 500 # load-future-min-val 200 # load-future-max-val 20000 # load-current-min-val 100 # load-current-max-val 10000 # ! # ars port-profile pp1 # enable # load-past-weight 20 # load-future-weight 9 # ! # ars object obj1 # idle-time 100 # max-flows 1024 # ! # interface Ethernet20 # mtu 9100 # speed 400000 # fec RS # unreliable-los auto # shutdown # ars bind pp1 # ! # ars bind profile p1 - name: Replace ARS configuration dellemc.enterprise_sonic.sonic_ars: config: port_profiles: - name: pp2 enable: true load_future_weight: 8 load_past_weight: 15 port_bindings: - name: Ethernet20 profile: pp2 state: replaced # After state: # ------------ # # sonic# show running-configuration ars # ars profile p1 # sampling-interval 140 # random-seed 800000 # port-load-past-weight 11 # port-load-future-weight 9 # port-load-current # port-load-exponent 7 # load-past-min-val 50 # load-past-max-val 500 # load-future-min-val 200 # load-future-max-val 20000 # load-current-min-val 100 # load-current-max-val 10000 # ! # ars port-profile pp2 # enable # load-past-weight 15 # load-future-weight 8 # ! # ars object obj1 # idle-time 100 # max-flows 1024 # ! # interface Ethernet20 # mtu 9100 # speed 400000 # fec RS # unreliable-los auto # shutdown # ars bind pp2 # ! # ars bind profile p1 # Using "overridden" state # # Before state: # ------------- # # sonic# show running-configuration ars # ars profile p1 # sampling-interval 140 # random-seed 800000 # port-load-past-weight 11 # port-load-future-weight 9 # port-load-current # port-load-exponent 7 # load-past-min-val 50 # load-past-max-val 500 # load-future-min-val 200 # load-future-max-val 20000 # load-current-min-val 100 # load-current-max-val 10000 # ! # ars port-profile pp2 # enable # load-past-weight 15 # load-future-weight 8 # ! # ars object obj1 # idle-time 100 # max-flows 1024 # ! # interface Ethernet20 # mtu 9100 # speed 400000 # fec RS # unreliable-los auto # shutdown # ars bind pp1 # ! # ars bind profile p1 - name: Override ARS configuration dellemc.enterprise_sonic.sonic_ars: config: ars_objects: - name: obj4 idle_time: 65 max_flows: 4096 mode: flowlet-quality state: overridden # After state: # ------------ # # sonic# show running-configuration ars # ars object obj4 # idle-time 65 # max-flows 4096 # Using "deleted" state # # Before state: # ------------- # # sonic# show running-configuration ars # ars profile p1 # sampling-interval 140 # random-seed 800000 # port-load-past-weight 11 # port-load-future-weight 9 # port-load-current # port-load-exponent 7 # load-past-min-val 50 # load-past-max-val 500 # load-future-min-val 200 # load-future-max-val 20000 # load-current-min-val 100 # load-current-max-val 10000 # ! # ars port-profile pp2 # enable # load-past-weight 15 # load-future-weight 8 - name: Delete specified ARS configuration dellemc.enterprise_sonic.sonic_ars: config: port_profiles: - name: pp2 profiles: - name: p1 load_current_max_val: 10000 load_future_max_val: 20000 load_past_max_val: 500 random_seed: 800000 sampling_interval: 140 state: deleted # After state: # ------------ # # sonic# show running-configuration ars # ars profile p1 # port-load-past-weight 11 # port-load-future-weight 9 # port-load-current # port-load-exponent 7 # load-past-min-val 50 # load-future-min-val 200 # load-current-min-val 100 # Using "deleted" state # # Before state: # ------------- # # sonic# show running-configuration ars # ars profile p1 # sampling-interval 140 # random-seed 800000 # port-load-past-weight 11 # port-load-future-weight 9 # port-load-current # port-load-exponent 7 # load-past-min-val 50 # load-past-max-val 500 # load-future-min-val 200 # load-future-max-val 20000 # load-current-min-val 100 # load-current-max-val 10000 # ! # ars port-profile pp1 # enable # load-past-weight 20 # load-future-weight 9 # ! # ars object obj1 # idle-time 100 # max-flows 1024 # ! # interface Ethernet20 # mtu 9100 # speed 400000 # fec RS # unreliable-los auto # shutdown # ars bind pp1 # ! # ars bind profile p1 - name: Delete all ARS configuration dellemc.enterprise_sonic.sonic_ars: config: state: deleted # After state: # ------------ # # sonic# show running-configuration ars # (No ARS configuration present) Return Values ------------- Common return values are documented `here `_, the following are the fields unique to this module: .. raw:: html
Key Returned Description
after
dictionary
when changed
The configuration resulting from module invocation.

after_generated
dictionary
when check_mode
The generated configuration from module invocation.

before
dictionary
always
The configuration prior to the module invocation.

commands
list
always
The set of commands pushed to the remote device.

Sample:
['command 1', 'command 2', 'command 3']


Status ------ Authors ~~~~~~~ - S\. Talabi (@stalabi1)