dellemc.enterprise_sonic.sonic_ipv6_router_advertisement module – Manage interface-specific IPv6 Router Advertisement configurations on SONiC
Note
This module is part of the dellemc.enterprise_sonic collection (version 3.2.0).
You might already have this collection installed if you are using the ansible package.
It is not included in ansible-core.
To check whether it is installed, run ansible-galaxy collection list.
To install it, use: ansible-galaxy collection install dellemc.enterprise_sonic.
To use it in a playbook, specify: dellemc.enterprise_sonic.sonic_ipv6_router_advertisement.
New in dellemc.enterprise_sonic 3.1.0
Synopsis
This module provides configuration management of interface-specific IPv6 Router Advertisement parameters for devices running SONiC.
This functionality is referred to as ‘ipv6 nd’ in Enterprise SONiC CLI.
Parameters
Parameter |
Comments |
|---|---|
Specifies interface-specific IPv6 Router Advertisement configurations. |
|
Include Advertisement Interval option in Router Advertisement. Choices:
|
|
Specifies the DNS search list to advertise. If state=deleted, options other than dnssl_name are not considered. |
|
Domain Name suffix to be advertised. |
|
Specifies the valid lifetime in seconds. The range if from 0 to 4294967295. Value of 4294967295 represents infinite valid lifetime. |
|
Set ‘Home Agent’ flag in Router Advertisement. Choices:
|
|
Specifies the Home Agent lifetime in seconds when home_agent_config=True. The range is from 0 to 65520. |
|
Specifies the Home Agent preference when home_agent_config=True. The range is from 0 to 65535. |
|
Set ‘Managed Address Configuration’ flag in Router Advertisement. Choices:
|
|
Specifies the minimum Router Advertisement interval in seconds. The range is from 1 to 1350. |
|
Specifies the minimum Router Advertisement interval in milliseconds. The range is from 30 to 1350000. |
|
Specifies the MTU (in bytes) to be advertised. The range is from 0 to 65535. |
|
Full name of the interface. |
|
Set ‘Other Configuration’ flag in Router Advertisement. Choices:
|
|
Enable faster transmissions of RA packets. Choices:
|
|
Specifies the Hop limit to be advertised. The range is from 0 to 255. |
|
Specifies the maximum Router Advertisement interval in seconds. The range is from 1 to 1800. |
|
Specifies the maximum Router Advertisement interval in milliseconds. The range is from 70 to 1800000. |
|
Specifies the Router Lifetime in seconds. The range is from 0 to 9000. |
|
Specifies the IPv6 prefixes to be included in Router Advertisement. If state=deleted, options other than prefix are not considered. |
|
Indicate the prefix cannot be used for IPv6 autoconfiguration. Choices:
|
|
Indicate the prefix cannot be used for on-link determination. Choices:
|
|
Specifies the preferred lifetime in seconds. The range if from 0 to 4294967295. Value of 4294967295 represents infinite preferred lifetime. |
|
IPv6 prefix to be advertised. |
|
Set ‘Router Address’ flag. Choices:
|
|
Specifies the valid lifetime in seconds. The range if from 0 to 4294967295. Value of 4294967295 represents infinite valid lifetime. |
|
Specifies the Retransmission Interval in milliseconds. The range is from 0 to 4294967295. |
|
Specifies the Recursive DNS server addresses to advertise. If state=deleted, options other than address are not considered. |
|
Recursive DNS server address to be advertised. |
|
Specifies the valid lifetime in seconds. The range if from 0 to 4294967295. Value of 4294967295 represents infinite valid lifetime. |
|
Specifies the Reachable Time in milliseconds. The range is from 0 to 3600000. |
|
Specifies the default router preference. Choices:
|
|
Enable suppression of Router Advertisement. Choices:
|
|
The state of the configuration after module completion.
Choices:
|
Examples
# Using merged
#
# Before State:
# -------------
#
# sonic# show running-configuration interface
# !
# interface Eth1/1
# mtu 9100
# speed 400000
# fec RS
# no shutdown
# !
# interface Eth1/2
# mtu 9100
# speed 400000
# fec RS
# no shutdown
# no ipv6 nd suppress-ra
# ipv6 nd prefix 1000:0:0:1000::/64 86400 86400 off-link no-autoconfig
# !
- name: Add IPv6 Router Advertisement configurations
dellemc.enterprise_sonic.sonic_ipv6_router_advertisement:
config:
- name: 'Eth1/1'
suppress: false
router_preference: high
ra_interval: 180
min_ra_interval: 60
ra_lifetime: 360
ra_retrans_interval: 30000
ra_hop_limit: 10
dnssl:
- dnssl_name: 'test.com'
valid_lifetime: 3600
rdnss:
- address: 100::100
- address: 100::200
- name: 'Eth1/2'
adv_interval_option: true
ra_fast_retrans: false
reachable_time: 7200000
ra_prefixes:
- prefix: 1000:0:0:2000::/64
valid_lifetime: 86400
preferred_lifetime: 86400
off_link: true
no_autoconfig: true
state: merged
# After State:
# ------------
#
# sonic# show running-configuration interface
# !
# interface Eth1/1
# mtu 9100
# speed 400000
# fec RS
# no shutdown
# no ipv6 nd suppress-ra
# ipv6 nd ra-hop-limit 10
# ipv6 nd ra-interval 180
# ipv6 nd min-ra-interval 60
# ipv6 nd ra-lifetime 360
# ipv6 nd ra-retrans-interval 30000
# ipv6 nd router-preference high
# ipv6 nd dnssl test.com 3600
# ipv6 nd rdnss 100::100
# ipv6 nd rdnss 100::200
# !
# interface Eth1/2
# mtu 9100
# speed 400000
# fec RS
# no shutdown
# no ipv6 nd suppress-ra
# no ipv6 nd ra-fast-retrans
# ipv6 nd adv-interval-option
# ipv6 nd reachable-time 1200000
# ipv6 nd prefix 1000:0:0:1000::/64 86400 86400 off-link no-autoconfig
# ipv6 nd prefix 1000:0:0:2000::/64 86400 86400 off-link no-autoconfig
# !
# Using deleted
#
# Before State:
# -------------
#
# sonic# show running-configuration interface
# !
# interface Eth1/1
# mtu 9100
# speed 400000
# fec RS
# no shutdown
# no ipv6 nd suppress-ra
# ipv6 nd ra-hop-limit 10
# ipv6 nd ra-interval 180
# ipv6 nd min-ra-interval 60
# ipv6 nd ra-lifetime 360
# ipv6 nd ra-retrans-interval 30000
# ipv6 nd router-preference high
# ipv6 nd dnssl test.com 3600
# ipv6 nd dnssl test2.com 7200
# ipv6 nd rdnss 100::100 3600
# ipv6 nd rdnss 100::200 7200
# !
# interface Eth1/2
# mtu 9100
# speed 400000
# fec RS
# no shutdown
# no ipv6 nd suppress-ra
# no ipv6 nd ra-fast-retrans
# ipv6 nd adv-interval-option
# ipv6 nd min-ra-interval msec 45500
# ipv6 nd reachable-time 1200000
# ipv6 nd prefix 1000:0:0:1000::/64 86400 86400 off-link no-autoconfig
# ipv6 nd prefix 1000:0:0:2000::/64 86400 86400 off-link no-autoconfig
# !
- name: Delete IPv6 Router Advertisement configurations
dellemc.enterprise_sonic.sonic_ipv6_router_advertisement:
config:
- name: 'Eth1/1'
ra_hop_limit: 10
router_preference: high
dnssl:
- dnssl_name: test2.com
rdnss:
- address: 100::200
- name: 'Eth1/2'
adv_interval_option: true
ra_fast_retrans: false
ra_prefixes:
- prefix: 1000:0:0:2000::/64
state: deleted
# After State:
# ------------
#
# sonic# show running-configuration interface
# !
# interface Eth1/1
# mtu 9100
# speed 400000
# fec RS
# shutdown
# no ipv6 nd suppress-ra
# ipv6 nd ra-interval 180
# ipv6 nd min-ra-interval 60
# ipv6 nd ra-lifetime 360
# ipv6 nd ra-retrans-interval 30000
# ipv6 nd dnssl test.com 3600
# ipv6 nd rdnss 100::100 3600
# !
# interface Eth1/2
# mtu 9100
# speed 400000
# fec RS
# shutdown
# no ipv6 nd suppress-ra
# ipv6 nd min ra-interval msec 45500
# ipv6 nd reachable-time 1200000
# ipv6 nd prefix 1000:0:0:1000::/64 86400 86400 off-link no-autoconfig
# !
# Using deleted
#
# Before State:
# -------------
#
# sonic# show running-configuration interface
# !
# interface Eth1/1
# mtu 9100
# speed 400000
# fec RS
# no shutdown
# no ipv6 nd suppress-ra
# ipv6 nd ra-hop-limit 10
# ipv6 nd ra-interval 180
# ipv6 nd min-ra-interval 60
# ipv6 nd ra-lifetime 360
# ipv6 nd ra-retrans-interval 30000
# ipv6 nd dnssl test.com 3600
# ipv6 nd rdnss 100::100 3600
# ipv6 nd rdnss 100::200 7200
# !
# interface Eth1/2
# mtu 9100
# speed 400000
# fec RS
# no shutdown
# no ipv6 nd suppress-ra
# ipv6 nd adv-interval-option
# ipv6 nd router-preference low
# ipv6 nd prefix 1000:0:0:1000::/64 86400 86400 off-link no-autoconfig
# !
- name: Delete all IPv6 Router Advertisement configurations for interface Eth1/1
dellemc.enterprise_sonic.sonic_ipv6_router_advertisement:
config:
- name: 'Eth1/1'
state: deleted
# After State:
# ------------
#
# sonic# show running-configuration interface
# !
# interface Eth1/1
# mtu 9100
# speed 400000
# fec RS
# no shutdown
# !
# interface Eth1/2
# mtu 9100
# speed 400000
# fec RS
# no shutdown
# no ipv6 nd suppress-ra
# ipv6 nd adv-interval-option
# ipv6 nd router-preference low
# ipv6 nd prefix 1000:0:0:1000::/64 86400 86400 off-link no-autoconfig
# !
# Using deleted
#
# Before State:
# -------------
#
# sonic# show running-configuration interface
# !
# interface Eth1/1
# mtu 9100
# speed 400000
# fec RS
# no shutdown
# no ipv6 nd suppress-ra
# ipv6 nd ra-hop-limit 10
# ipv6 nd ra-interval 180
# ipv6 nd min-ra-interval 60
# ipv6 nd ra-lifetime 360
# ipv6 nd ra-retrans-interval 30000
# ipv6 nd dnssl test.com 3600
# ipv6 nd rdnss 100::100 3600
# ipv6 nd rdnss 100::200 7200
# !
# interface Eth1/2
# mtu 9100
# speed 400000
# fec RS
# no shutdown
# no ipv6 nd suppress-ra
# ipv6 nd adv-interval-option
# ipv6 nd router-preference low
# ipv6 nd prefix 1000:0:0:1000::/64 86400 86400 off-link no-autoconfig
# !
- name: Delete all IPv6 Router Advertisement configurations
dellemc.enterprise_sonic.sonic_ipv6_router_advertisement:
config:
state: deleted
# After State:
# ------------
#
# sonic# show running-configuration interface
# !
# interface Eth1/1
# mtu 9100
# speed 400000
# fec RS
# no shutdown
# !
# interface Eth1/2
# mtu 9100
# speed 400000
# fec RS
# no shutdown
# !
# Using replaced
#
# Before State:
# -------------
#
# sonic# show running-configuration interface
# !
# interface Eth1/1
# mtu 9100
# speed 400000
# fec RS
# no shutdown
# no ipv6 nd suppress-ra
# ipv6 nd ra-hop-limit 10
# ipv6 nd ra-interval 180
# ipv6 nd min-ra-interval 60
# ipv6 nd ra-lifetime 360
# ipv6 nd router-preference high
# !
# interface Eth1/2
# mtu 9100
# speed 400000
# fec RS
# no shutdown
# no ipv6 nd suppress-ra
# no ipv6 nd ra-fast-retrans
# ipv6 nd adv-interval-option
# ipv6 nd min-ra-interval msec 45500
# ipv6 nd ra-hop-limit 10
# ipv6 nd reachable-time 1200000
# ipv6 nd prefix 1000:0:0:1000::/64 86400 86400 off-link no-autoconfig
# ipv6 nd prefix 1000:0:0:2000::/64 86400 86400 off-link no-autoconfig
# !
- name: Replace IPv6 Router Advertisement configurations for interface Eth1/2
dellemc.enterprise_sonic.sonic_ipv6_router_advertisement:
config:
- name: 'Eth1/2'
suppress: false
ra_interval: 300
router_preference: high
ra_prefixes:
- prefix: 2000:0:0:1000::/64
valid_lifetime: 3600
preferred_lifetime: 3600
router_address: true
state: replaced
# After State:
# ------------
#
# sonic# show running-configuration interface
# !
# interface Eth1/1
# mtu 9100
# speed 400000
# fec RS
# no shutdown
# no ipv6 nd suppress-ra
# ipv6 nd ra-hop-limit 10
# ipv6 nd ra-interval 180
# ipv6 nd min-ra-interval 60
# ipv6 nd ra-lifetime 360
# ipv6 nd router-preference high
# !
# interface Eth1/2
# mtu 9100
# speed 400000
# fec RS
# no shutdown
# no ipv6 nd suppress-ra
# ipv6 nd ra-interval 300
# ipv6 nd router-preference high
# ipv6 nd prefix 2000:0:0:1000::/64 3600 3600 router-address
# !
# Using overridden
#
# Before State:
# -------------
#
# sonic# show running-configuration interface
# !
# interface Eth1/1
# mtu 9100
# speed 400000
# fec RS
# no shutdown
# no ipv6 nd suppress-ra
# ipv6 nd ra-hop-limit 10
# ipv6 nd ra-interval 180
# ipv6 nd min-ra-interval 60
# ipv6 nd ra-lifetime 360
# ipv6 nd router-preference high
# !
# interface Eth1/2
# mtu 9100
# speed 400000
# fec RS
# no shutdown
# no ipv6 nd suppress-ra
# ipv6 nd ra-interval 300
# ipv6 nd router-preference high
# ipv6 nd prefix 2000:0:0:1000::/64 3600 3600 router-address
# !
# interface Eth1/3
# mtu 9100
# speed 400000
# fec RS
# no shutdown
# !
- name: Override all IPv6 Router Advertisement configurations
dellemc.enterprise_sonic.sonic_ipv6_router_advertisement:
config:
- name: 'Eth1/1'
suppress: false
home_agent_config: true
home_agent_lifetime: 7200
home_agent_preference: 100
- name: 'Eth1/3'
suppress: false
managed_config: true
other_config: true
ra_retrans_interval: 30000
state: overridden
# After State:
# ------------
#
# sonic# show running-configuration interface
# !
# interface Eth1/1
# mtu 9100
# speed 400000
# fec RS
# no shutdown
# no ipv6 nd suppress-ra
# ipv6 nd home-agent-config-flag
# ipv6 nd home-agent-lifetime 7200
# ipv6 nd home-agent-preference 100
# !
# interface Eth1/2
# mtu 9100
# speed 400000
# fec RS
# no shutdown
# !
# interface Eth1/3
# mtu 9100
# speed 400000
# fec RS
# no shutdown
# no ipv6 nd suppress-ra
# ipv6 nd managed-config-flag
# ipv6 nd other-config-flag
# ipv6 nd ra-retrans-interval 30000
# !
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key |
Description |
|---|---|
The configuration resulting from module invocation. Returned: when changed Sample: |
|
The configuration that would be generated by module invocation. Returned: when Sample: |
|
The configuration prior to the module invocation. Returned: always Sample: |
|
The set of commands pushed to the remote device. Returned: always Sample: |