Forbid -e -E -6 (#123)

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
```
This commit is contained in:
Denis Fondras
2025-02-07 16:08:06 +01:00
committed by GitHub
parent b769ad9ce6
commit 60a3b3dabf

8
main.c
View File

@@ -604,6 +604,14 @@ main(int argc, char* argv[])
exit(1); 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 if (expander.sequence
&& (expander.vendor != V_CISCO && expander.vendor != V_ARISTA)) { && (expander.vendor != V_CISCO && expander.vendor != V_ARISTA)) {
sx_report(SX_FATAL, "Sorry, prefix-lists sequencing (-s) supported" sx_report(SX_FATAL, "Sorry, prefix-lists sequencing (-s) supported"