Skip to content

Commit

Permalink
Forbid -e -E -6
Browse files Browse the repository at this point in the history
The resulting list is a bit weird 😉 

```
 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
```
  • Loading branch information
ledeuns authored Feb 7, 2025
1 parent b769ad9 commit 1105f50
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 1105f50

Please sign in to comment.