Skip to content

Commit 896de98

Browse files
committed
Disable 'provider changed' warnings in DHCP integration tests
The IPv4 DHCP integration tests use Linux VMs as DHCP clients, resulting in irrelevant 'top provider changed' warnings when testing DHCP server/relays running as containers.
1 parent 2e95768 commit 896de98

File tree

5 files changed

+34
-21
lines changed

5 files changed

+34
-21
lines changed

tests/integration/dhcp/03-ipv4-server.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
message: |
2+
Use this topology to test the DHCPv4 server on your device. Use 'netlab
3+
validate' to check whether your device allocated IPv4 addresses to DHCP
4+
clients running on Linux VMs.
5+
6+
defaults.sources.extra: [ ../wait_times.yml, ../warnings.yml ]
7+
18
groups:
29
clients:
310
members: [ c1, c2 ]
@@ -36,8 +43,3 @@ validate:
3643
linux: "ip addr show eth1 | grep inet | grep dynamic || true"
3744
valid:
3845
linux: stdout.rstrip()
39-
40-
message: |
41-
Use this topology to test the DHCPv4 server on your device. Use 'netlab
42-
validate' to check whether your device allocated IPv4 addresses to DHCP
43-
clients running Cumulus Linux.

tests/integration/dhcp/04-ipv6-server.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
message: |
2+
Use this topology to test the DHCPv6 server on your device. Use 'netlab
3+
validate' to check whether your device allocated IPv6 addresses to Cisco
4+
IOS clients.
5+
6+
defaults.sources.extra: [ ../wait_times.yml, ../warnings.yml ]
7+
18
addressing.lan:
29
ipv4: false
310
ipv6: 2001:db8:cafe::/48
@@ -34,8 +41,3 @@ validate:
3441
exec: "show ipv6 interface brief {{ interfaces[0].ifname }}"
3542
valid: >-
3643
"CAFE" in stdout
37-
38-
message: |
39-
Use this topology to test the DHCPv6 server on your device. Use 'netlab
40-
validate' to check whether your device allocated IPv6 addresses to DHCPv6
41-
clients running Cumulus Linux.

tests/integration/dhcp/11-ipv4-relay.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
---
2+
message: |
3+
Use this topology to test the DHCPv4 relay functionality of your device. Use
4+
'netlab validate' to check whether your device propagated DHCPv4 requests from
5+
DHCP clients (Linux VMs) to DHCP servers.
6+
7+
defaults.sources.extra: [ ../wait_times.yml, ../warnings.yml ]
8+
19
module: [ dhcp ]
210

311
groups:
@@ -80,8 +88,3 @@ validate:
8088
valid:
8189
eos: len(vrfs.default.ipv4ActiveLeases) == 2
8290
dnsmasq: stdout.rstrip() == '2'
83-
84-
message: |
85-
Use this topology to test the DHCPv4 relay functionality of your device. Use
86-
'netlab validate' to check whether your device propagated DHCPv4 requests from
87-
DHCP clients to DHCP servers.

tests/integration/dhcp/21-ipv4-relay-vrf-global.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
---
2+
message: |
3+
Use this topology to test the inter-VRF DHCPv4 relay functionality of your
4+
device. Use 'netlab validate' to check whether your device propagated DHCPv4
5+
requests from DHCP clients (Linux VMs) in VRF c_vrf to DHCP servers in global
6+
routing table.
7+
8+
defaults.sources.extra: [ ../wait_times.yml, ../warnings.yml ]
9+
110
groups:
211
_auto_create: true
312
clients:
@@ -49,9 +58,3 @@ validate:
4958
linux: "ip addr show eth1 | grep inet | grep dynamic || true"
5059
valid:
5160
linux: stdout.rstrip()
52-
53-
message: |
54-
Use this topology to test the inter-VRF DHCPv4 relay functionality of your
55-
device. Use 'netlab validate' to check whether your device propagated DHCPv4
56-
requests from DHCP clients in VRF c_vrf to DHCP servers in global routing
57-
table.

tests/integration/warnings.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,6 @@
33
devices:
44
eos.warnings.ospf_stub: False
55
sros.warnings.loopback_ipv6: False
6+
7+
warnings:
8+
providers.change: False

0 commit comments

Comments
 (0)