Skip to content

Commit

Permalink
Fix code.
Browse files Browse the repository at this point in the history
  • Loading branch information
Laxmikant Chintakindi authored and Laxmikant Chintakindi committed Oct 10, 2024
1 parent 6c7b438 commit 2c64aa9
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,10 @@ def monitor_sessions(self: AvdStructuredConfigConnectedEndpoints) -> list | None
"direction": get(session, "source_settings.direction"),
}

if get(merged_settings, "session_settings.access_group") is not None:
if get(session, "source_settings.access_group") is not None:
msg = f"For {self.shared_utils.hostname}, an ACL is set on {session["interface"]} even though ACL is set for session {session_name}."
if get(merged_settings, "session_settings.access_group") is not None and get(session, "source_settings.access_group") is not None:
msg = (
f"For {self.shared_utils.hostname}, an ACL is set on {session["interface"]} even though ACL is set for monitor session {session_name}."
)
raise AristaAvdError(msg)

elif (access_group := get(session, "source_settings.access_group")) is not None:
Expand Down

0 comments on commit 2c64aa9

Please sign in to comment.