Make code match documentation :-)
Bridge Domains must be [1,16M), Loopbacks must be [0,4096). Loopbacks should be allowed to have an address without an LCP. => Reuse the unittest file for the bounds check for loopbacks. => Add a new unittest file for the bounds check for bridgedomains.
This commit is contained in:
15
unittest/yaml/error-bridgedomain9.yaml
Normal file
15
unittest/yaml/error-bridgedomain9.yaml
Normal file
@ -0,0 +1,15 @@
|
||||
test:
|
||||
description: "BridgeDomain instance must be between 1 and 16M"
|
||||
errors:
|
||||
expected:
|
||||
- "bridgedomain bd0 is reserved"
|
||||
- "bridgedomain .* has instance .* which is too large"
|
||||
count: 2
|
||||
---
|
||||
bridgedomains:
|
||||
bd0:
|
||||
description: "Reserved in VPP"
|
||||
bd16777215:
|
||||
description: "Cool."
|
||||
bd16777216:
|
||||
description: "Not cool."
|
Reference in New Issue
Block a user