Skip to content

Define 'ipv6_router_advertisement' model for Dell Enterprise SONiC collection #290

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
# 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
# !
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
# 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
# !
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
# 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
# !
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
# 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
# !
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
# 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
# !
Loading