From 60a3b3dabf72c744c0045ff25207be37f21c91c1 Mon Sep 17 00:00:00 2001 From: Denis Fondras <1040974+ledeuns@users.noreply.github.com> Date: Fri, 7 Feb 2025 16:08:06 +0100 Subject: [PATCH] Forbid -e -E -6 (#123) The resulting list is a bit weird :wink: ``` permit ip host 2a05:6340:: host 255.255.255.248 permit ip host 2a06:19c0:: host 255.255.255.248 permit ip host 2a07:4b00:: host 255.255.255.248 permit ip host 2a07:7b40:: host 255.255.255.248 ``` --- main.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/main.c b/main.c index 1fbb358..c427c04 100644 --- a/main.c +++ b/main.c @@ -604,6 +604,14 @@ main(int argc, char* argv[]) exit(1); } + if (expander.vendor == V_ARISTA + && expander.generation == T_EACL + && expander.family == AF_INET6) { + sx_report(SX_FATAL, "Sorry, extended access-lists is not compatible " + "with Arista EOS and IPv6\n"); + exit(1); + } + if (expander.sequence && (expander.vendor != V_CISCO && expander.vendor != V_ARISTA)) { sx_report(SX_FATAL, "Sorry, prefix-lists sequencing (-s) supported"