diff --git a/include/osmocom/vty/command.h b/include/osmocom/vty/command.h index 07ec2425b..232da2c64 100644 --- a/include/osmocom/vty/command.h +++ b/include/osmocom/vty/command.h @@ -152,6 +152,7 @@ enum { * 2. Brevity: shortenings and abbreviations are welcome! * 3. Values are not flags but indexes, unlike CMD_ATTR_*. * 4. Ordering: new entries added before _OSMO_CORE_LIB_ATTR_COUNT. */ + OSMO_SCCP_LIB_ATTR_RSTRT_ASP, /* Keep this floating entry last, it's needed for count check. */ _OSMO_CORE_LIB_ATTR_COUNT diff --git a/src/vty/command.c b/src/vty/command.c index 7752c919f..faad9fe50 100644 --- a/src/vty/command.c +++ b/src/vty/command.c @@ -635,12 +635,15 @@ static const struct value_string cmd_attr_desc[] = { static const char * const cmd_lib_attr_desc[32] = { /* [OSMO_LIBNAME_LIB_ATTR_ATTRNAME] = \ * "Brief but meaningful description", */ + [OSMO_SCCP_LIB_ATTR_RSTRT_ASP] = \ + "This command applies on ASP restart", }; /* Flag letters of attributes shared between the lib commands. * NOTE: uppercase letters only, the rest is reserved for applications. */ static const char cmd_lib_attr_letters[32] = { /* [OSMO_LIBNAME_LIB_ATTR_ATTRNAME] = 'X', */ + [OSMO_SCCP_LIB_ATTR_RSTRT_ASP] = 'A', }; /*