aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhilipp Maier <pmaier@sysmocom.de>2020-10-08 17:30:42 +0200
committerPhilipp Maier <pmaier@sysmocom.de>2020-10-08 19:08:17 +0200
commita5218ea9b3a6329a3ce9b56bc1434ca96a0e35aa (patch)
tree9ac22373100339d58b87b35758c682a13bf06f99
parentbd771a9576cd16b346ba8cbb0478074df4e3307c (diff)
command: add library command attribute for libosmo-abis
-rw-r--r--include/osmocom/vty/command.h2
-rw-r--r--src/vty/command.c6
-rw-r--r--tests/vty/vty_transcript_test.vty2
3 files changed, 10 insertions, 0 deletions
diff --git a/include/osmocom/vty/command.h b/include/osmocom/vty/command.h
index 232da2c6..2cb45dd3 100644
--- a/include/osmocom/vty/command.h
+++ b/include/osmocom/vty/command.h
@@ -153,6 +153,8 @@ enum {
* 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,
+ OSMO_ABIS_LIB_ATTR_IPA_NEW_LNK,
+ OSMO_ABIS_LIB_ATTR_LINE_UPD,
/* 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 4952567d..fae925ea 100644
--- a/src/vty/command.c
+++ b/src/vty/command.c
@@ -654,6 +654,10 @@ static const char * const cmd_lib_attr_desc[32] = {
* "Brief but meaningful description", */
[OSMO_SCCP_LIB_ATTR_RSTRT_ASP] = \
"This command applies on ASP restart",
+ [OSMO_ABIS_LIB_ATTR_IPA_NEW_LNK] = \
+ "This command applies on IPA link establishment",
+ [OSMO_ABIS_LIB_ATTR_LINE_UPD] = \
+ "This command applies on E1 line update",
};
/* Flag letters of attributes shared between the lib commands.
@@ -661,6 +665,8 @@ static const char * const cmd_lib_attr_desc[32] = {
static const char cmd_lib_attr_letters[32] = {
/* [OSMO_LIBNAME_LIB_ATTR_ATTRNAME] = 'X', */
[OSMO_SCCP_LIB_ATTR_RSTRT_ASP] = 'A',
+ [OSMO_ABIS_LIB_ATTR_IPA_NEW_LNK] = 'I',
+ [OSMO_ABIS_LIB_ATTR_LINE_UPD] = 'L',
};
/*
diff --git a/tests/vty/vty_transcript_test.vty b/tests/vty/vty_transcript_test.vty
index b626f3db..2c618d89 100644
--- a/tests/vty/vty_transcript_test.vty
+++ b/tests/vty/vty_transcript_test.vty
@@ -91,6 +91,8 @@ vty_transcript_test> show vty-attributes
@ This command applies on VTY node exit
Library specific attributes:
A This command applies on ASP restart
+ I This command applies on IPA link establishment
+ L This command applies on E1 line update
Application specific attributes:
u Unbelievable: not able to be believed; unlikely to be true
m Magnificent: impressively beautiful, elaborate, or extravagant