-
Notifications
You must be signed in to change notification settings - Fork 212
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix(eos_cli_config_gen,eos_designs): Dont configure access group on i…
…nterface when access group is defined on session level (#4565)
- Loading branch information
1 parent
3716663
commit 40451d8
Showing
26 changed files
with
308 additions
and
99 deletions.
There are no files selected for viewing
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
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
32 changes: 32 additions & 0 deletions
32
..._tests/inventory/host_vars/connected-endpoints-monitor-session-connected-endpoint-acl.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,32 @@ | ||
loopback_ipv4_pool: 192.168.1.0/24 | ||
|
||
type: l2leaf | ||
l2leaf: | ||
defaults: | ||
nodes: | ||
- name: connected-endpoints-monitor-session-connected-endpoint-acl | ||
|
||
servers: | ||
- name: INDIVIDUAL_1 | ||
adapters: | ||
- switches: [connected-endpoints-monitor-session-connected-endpoint-acl] | ||
switch_ports: [Ethernet14] | ||
description: Monitor port-channel 14 | ||
port_channel: | ||
channel_id: 14 | ||
mode: active | ||
monitor_sessions: | ||
- name: DMF | ||
role: source | ||
source_settings: | ||
access_group: | ||
type: ip | ||
name: acl2 | ||
session_settings: | ||
access_group: | ||
type: ip | ||
name: acl1 | ||
|
||
expected_error_message: >- | ||
Cannot set an ACL for both `session_settings` and `source_settings` under the monitor session 'DMF' | ||
for servers[name=INDIVIDUAL_1].adapters[0]. |
28 changes: 28 additions & 0 deletions
28
...e_unit_tests/inventory/host_vars/connected-endpoints-monitor-session-network-port-acl.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,28 @@ | ||
loopback_ipv4_pool: 192.168.1.0/24 | ||
|
||
type: l2leaf | ||
l2leaf: | ||
defaults: | ||
nodes: | ||
- name: connected-endpoints-monitor-session-network-port-acl | ||
network_ports: | ||
- switches: | ||
- connected-endpoints-monitor-session-network-port-acl | ||
switch_ports: | ||
- Ethernet24-25 | ||
description: PC | ||
monitor_sessions: | ||
- name: DMF | ||
role: source | ||
source_settings: | ||
access_group: | ||
type: ip | ||
name: acl2 | ||
session_settings: | ||
access_group: | ||
type: ip | ||
name: acl1 | ||
|
||
expected_error_message: >- | ||
Cannot set an ACL for both `session_settings` and `source_settings` under the monitor session 'DMF' | ||
for network_ports[0]. |
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
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
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
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
Oops, something went wrong.