Do bounds checking on the BondEthernet and VXLAN Tunnel instances

This commit is contained in:
Pim van Pelt
2022-04-03 14:40:44 +00:00
parent 79f41d447d
commit 720f581e47
4 changed files with 60 additions and 0 deletions

View File

@ -0,0 +1,22 @@
test:
description: "A VXLAN tunnel instance must be within [0,2G)"
errors:
expected:
- "vxlan_tunnel .* has instance .* which is too large"
count: 1
---
vxlan_tunnels:
vxlan_tunnel2147483647:
local: 192.0.2.1
remote: 192.0.2.2
vni: 100
vxlan_tunnel2147483648:
local: 2001:db8::1
remote: 2001:db8::2
vni: 101
interfaces:
vxlan_tunnel2147483647:
description: "Cool."
vxlan_tunnel2147483648:
description: "Not cool."