]> git.proxmox.com Git - mirror_frr.git/blobdiff - lib/command.h
lib, pimd: Remove PIM_NODE as it is not needed
[mirror_frr.git] / lib / command.h
index 5184b53a9f6ae4813384e4fefc995259ac393f81..760d40f505e800a5a40a5f1392af066ba5210fbd 100644 (file)
@@ -41,6 +41,9 @@ struct host {
        /* Host name of this router. */
        char *name;
 
+       /* Domainname of this router */
+       char *domainname;
+
        /* Password for vty interface. */
        char *password;
        char *password_encrypt;
@@ -116,13 +119,13 @@ enum node_type {
        LDP_L2VPN_NODE,         /* LDP L2VPN node */
        LDP_PSEUDOWIRE_NODE,    /* LDP Pseudowire node */
        ISIS_NODE,              /* ISIS protocol mode */
-       PIM_NODE,               /* PIM protocol mode */
        MASC_NODE,              /* MASC for multicast.  */
        IRDP_NODE,              /* ICMP Router Discovery Protocol mode. */
        IP_NODE,                /* Static ip route node. */
        ACCESS_NODE,            /* Access list node. */
        PREFIX_NODE,            /* Prefix list node. */
        ACCESS_IPV6_NODE,       /* Access list node. */
+       ACCESS_MAC_NODE,        /* MAC access list node*/
        PREFIX_IPV6_NODE,       /* Prefix list node. */
        AS_LIST_NODE,           /* AS list node. */
        COMMUNITY_LIST_NODE,    /* Community list node. */
@@ -132,9 +135,11 @@ enum node_type {
        FORWARDING_NODE,        /* IP forwarding node. */
        PROTOCOL_NODE,          /* protocol filtering node */
        MPLS_NODE,              /* MPLS config node */
+       PW_NODE,                /* Pseudowire config node */
        VTY_NODE,               /* Vty node. */
        LINK_PARAMS_NODE,       /* Link-parameters node */
        BGP_EVPN_VNI_NODE,      /* BGP EVPN VNI */
+       RPKI_NODE,              /* RPKI node for configuration of RPKI cache server connections.*/
        NODE_TYPE_MAX,          /* maximum */
 };
 
@@ -184,7 +189,7 @@ struct cmd_node {
 #define CMD_NOT_MY_INSTANCE    14
 
 /* Argc max counts. */
-#define CMD_ARGC_MAX   25
+#define CMD_ARGC_MAX   256
 
 /* Turn off these macros when uisng cpp with extract.pl */
 #ifndef VTYSH_EXTRACT_PL
@@ -352,6 +357,8 @@ struct cmd_node {
 #define OSPF_RI_STR "OSPF Router Information specific commands\n"
 #define PCE_STR "PCE Router Information specific commands\n"
 #define MPLS_STR "MPLS information\n"
+#define WATCHFRR_STR "watchfrr information\n"
+#define ZEBRA_STR "Zebra information\n"
 
 #define CONF_BACKUP_EXT ".sav"
 
@@ -374,6 +381,13 @@ extern void uninstall_element(enum node_type, struct cmd_element *);
    string with a space between each element (allocated using
    XMALLOC(MTYPE_TMP)).  Returns NULL if shift >= argc. */
 extern char *argv_concat(struct cmd_token **argv, int argc, int shift);
+
+/*
+ * It is preferred that you set the index initial value
+ * to a 0.  This way in the future if you modify the
+ * cli then there is no need to modify the initial
+ * value of the index
+ */
 extern int argv_find(struct cmd_token **argv, int argc, const char *text,
                     int *index);
 
@@ -396,7 +410,10 @@ extern void cmd_terminate(void);
 extern void cmd_exit(struct vty *vty);
 extern int cmd_list_cmds(struct vty *vty, int do_permute);
 
+extern int cmd_domainname_set(const char *domainname);
 extern int cmd_hostname_set(const char *hostname);
+extern const char *cmd_hostname_get(void);
+extern const char *cmd_domainname_get(void);
 
 /* NOT safe for general use; call this only if DEV_BUILD! */
 extern void grammar_sandbox_init(void);