]> git.puffer.fish Git - matthieu/frr.git/commitdiff
vtysh: recategorize access list commands
authorRafael Zalamena <rzalamena@opensourcerouting.org>
Tue, 28 Jul 2020 00:27:50 +0000 (21:27 -0300)
committerRafael Zalamena <rzalamena@opensourcerouting.org>
Tue, 4 Aug 2020 00:17:45 +0000 (21:17 -0300)
Create a new category for access lists commands so we can avoid sending
configurations (which might be big) to daemons which do not use it.

Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
vtysh/extract.pl.in
vtysh/vtysh.h

index 346061d7ca817e581880648a98e82b34e1855d8a..7ddca5ea5a66ef0520e4a4d50720892614265bbf 100755 (executable)
@@ -98,7 +98,10 @@ sub scan_file {
         elsif ($file =~ /lib\/if\.c$/) {
             $protocol = "VTYSH_INTERFACE";
         }
-        elsif ($file =~ /lib\/(filter|filter_cli|lib_vty)\.c$/) {
+        elsif ($file =~ /lib\/(filter|filter_cli)\.c$/) {
+            $protocol = "VTYSH_ACL";
+        }
+        elsif ($file =~ /lib\/lib_vty\.c$/) {
             $protocol = "VTYSH_ALL";
         }
        elsif ($file =~ /lib\/agentx\.c$/) {
index d0edbb2710a6fa5b3ad9af12314cc38747178b5e..2a7efa7722c66d21ffc1f2d4926041200a0354d3 100644 (file)
@@ -52,6 +52,7 @@ DECLARE_MGROUP(MVTYSH)
  * run on it (logging & co. should stay in a fixed/frozen config, and
  * things like prefix lists are not even initialised) */
 #define VTYSH_ALL        VTYSH_ZEBRA|VTYSH_RIPD|VTYSH_RIPNGD|VTYSH_OSPFD|VTYSH_OSPF6D|VTYSH_LDPD|VTYSH_BGPD|VTYSH_ISISD|VTYSH_PIMD|VTYSH_NHRPD|VTYSH_EIGRPD|VTYSH_BABELD|VTYSH_SHARPD|VTYSH_PBRD|VTYSH_STATICD|VTYSH_BFDD|VTYSH_FABRICD|VTYSH_VRRPD
+#define VTYSH_ACL         VTYSH_BFDD|VTYSH_BABELD|VTYSH_BGPD|VTYSH_EIGRPD|VTYSH_ISISD|VTYSH_FABRICD|VTYSH_LDPD|VTYSH_NHRPD|VTYSH_OSPF6D|VTYSH_OSPFD|VTYSH_PBRD|VTYSH_PIMD|VTYSH_RIPD|VTYSH_RIPNGD|VTYSH_SHARPD|VTYSH_STATICD|VTYSH_VRRPD|VTYSH_ZEBRA
 #define VTYSH_RMAP       VTYSH_ZEBRA|VTYSH_RIPD|VTYSH_RIPNGD|VTYSH_OSPFD|VTYSH_OSPF6D|VTYSH_BGPD|VTYSH_ISISD|VTYSH_PIMD|VTYSH_EIGRPD|VTYSH_SHARPD|VTYSH_FABRICD
 #define VTYSH_INTERFACE          VTYSH_ZEBRA|VTYSH_RIPD|VTYSH_RIPNGD|VTYSH_OSPFD|VTYSH_OSPF6D|VTYSH_ISISD|VTYSH_PIMD|VTYSH_NHRPD|VTYSH_EIGRPD|VTYSH_BABELD|VTYSH_PBRD|VTYSH_FABRICD|VTYSH_VRRPD
 #define VTYSH_VRF        VTYSH_ZEBRA|VTYSH_PIMD|VTYSH_STATICD