-
Notifications
You must be signed in to change notification settings - Fork 219
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update error msg and add negative test
- Loading branch information
Laxmikant Chintakindi
authored and
Laxmikant Chintakindi
committed
Oct 21, 2024
1 parent
357e133
commit 5504ee0
Showing
3 changed files
with
31 additions
and
1 deletion.
There are no files selected for viewing
29 changes: 29 additions & 0 deletions
29
..._negative_unit_tests/inventory/host_vars/failure-p2p-links-ptp-profile-does-not-exist.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
--- | ||
type: l3leaf | ||
|
||
ptp_profiles: | ||
- profile: PROFILE-1 | ||
|
||
l3leaf: | ||
defaults: | ||
loopback_ipv4_pool: 10.254.1.0/27 | ||
vtep_loopback_ipv4_pool: 10.254.11.0/27 | ||
nodes: | ||
- name: failure-p2p-links-ptp-profile-does-not-exist | ||
id: 1 | ||
bgp_as: 65101 | ||
mgmt_ip: 192.168.0.101/24 | ||
ptp: | ||
enabled: true | ||
|
||
l3_edge: | ||
p2p_links: | ||
- nodes: [failure-p2p-links-ptp-profile-does-not-exist, not-in-fabric] | ||
interfaces: [Ethernet10, Ethernet11] | ||
ip: [192.168.0.2/31, 192.168.0.3/31] | ||
ptp: | ||
enabled: true | ||
profile: PROFILE DOES NOT EXIST | ||
|
||
expected_error_message: >- | ||
PTP Profile 'PROFILE DOES NOT EXIST' referenced under l3_edge.p2p_links does not exist in `ptp_profiles`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters