<p>laforge <strong>submitted</strong> this change.</p><p><a href="https://gerrit.osmocom.org/c/libosmocore/+/20481">View Change</a></p><div style="white-space:pre-wrap">Approvals:
  Jenkins Builder: Verified
  Vadim Yanitskiy: Looks good to me, approved

</div><pre style="font-family: monospace,monospace; white-space: pre-wrap;">command: add library command attribute for libosmo-abis<br><br>Change-Id: I0efc57f2cb54798ba207ae6fef9af4771d96bfa9<br>Related: SYS#4937, OS#1601<br>---<br>M include/osmocom/vty/command.h<br>M src/vty/command.c<br>M tests/vty/vty_transcript_test.vty<br>3 files changed, 10 insertions(+), 0 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/include/osmocom/vty/command.h b/include/osmocom/vty/command.h</span><br><span>index 232da2c..2cb45dd 100644</span><br><span>--- a/include/osmocom/vty/command.h</span><br><span>+++ b/include/osmocom/vty/command.h</span><br><span>@@ -153,6 +153,8 @@</span><br><span>        * 3. Values are not flags but indexes, unlike CMD_ATTR_*.</span><br><span>    * 4. Ordering: new entries added before _OSMO_CORE_LIB_ATTR_COUNT. */</span><br><span>       OSMO_SCCP_LIB_ATTR_RSTRT_ASP,</span><br><span style="color: hsl(120, 100%, 40%);">+ OSMO_ABIS_LIB_ATTR_IPA_NEW_LNK,</span><br><span style="color: hsl(120, 100%, 40%);">+       OSMO_ABIS_LIB_ATTR_LINE_UPD,</span><br><span> </span><br><span>     /* Keep this floating entry last, it's needed for count check. */</span><br><span>        _OSMO_CORE_LIB_ATTR_COUNT</span><br><span>diff --git a/src/vty/command.c b/src/vty/command.c</span><br><span>index 4952567..fae925e 100644</span><br><span>--- a/src/vty/command.c</span><br><span>+++ b/src/vty/command.c</span><br><span>@@ -654,6 +654,10 @@</span><br><span>     *      "Brief but meaningful description", */</span><br><span>     [OSMO_SCCP_LIB_ATTR_RSTRT_ASP] = \</span><br><span>           "This command applies on ASP restart",</span><br><span style="color: hsl(120, 100%, 40%);">+      [OSMO_ABIS_LIB_ATTR_IPA_NEW_LNK] = \</span><br><span style="color: hsl(120, 100%, 40%);">+          "This command applies on IPA link establishment",</span><br><span style="color: hsl(120, 100%, 40%);">+   [OSMO_ABIS_LIB_ATTR_LINE_UPD] = \</span><br><span style="color: hsl(120, 100%, 40%);">+             "This command applies on E1 line update",</span><br><span> };</span><br><span> </span><br><span> /* Flag letters of attributes shared between the lib commands.</span><br><span>@@ -661,6 +665,8 @@</span><br><span> static const char cmd_lib_attr_letters[32] = {</span><br><span>      /* [OSMO_LIBNAME_LIB_ATTR_ATTRNAME] =           'X', */</span><br><span>      [OSMO_SCCP_LIB_ATTR_RSTRT_ASP] =                'A',</span><br><span style="color: hsl(120, 100%, 40%);">+  [OSMO_ABIS_LIB_ATTR_IPA_NEW_LNK] =              'I',</span><br><span style="color: hsl(120, 100%, 40%);">+  [OSMO_ABIS_LIB_ATTR_LINE_UPD] =                 'L',</span><br><span> };</span><br><span> </span><br><span> /*</span><br><span>diff --git a/tests/vty/vty_transcript_test.vty b/tests/vty/vty_transcript_test.vty</span><br><span>index b626f3d..2c618d8 100644</span><br><span>--- a/tests/vty/vty_transcript_test.vty</span><br><span>+++ b/tests/vty/vty_transcript_test.vty</span><br><span>@@ -91,6 +91,8 @@</span><br><span>     @  This command applies on VTY node exit</span><br><span>   Library specific attributes:</span><br><span>     A  This command applies on ASP restart</span><br><span style="color: hsl(120, 100%, 40%);">+    I  This command applies on IPA link establishment</span><br><span style="color: hsl(120, 100%, 40%);">+    L  This command applies on E1 line update</span><br><span>   Application specific attributes:</span><br><span>     u  Unbelievable: not able to be believed; unlikely to be true</span><br><span>     m  Magnificent: impressively beautiful, elaborate, or extravagant</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/libosmocore/+/20481">change 20481</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.osmocom.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.osmocom.org/c/libosmocore/+/20481"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: libosmocore </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: I0efc57f2cb54798ba207ae6fef9af4771d96bfa9 </div>
<div style="display:none"> Gerrit-Change-Number: 20481 </div>
<div style="display:none"> Gerrit-PatchSet: 4 </div>
<div style="display:none"> Gerrit-Owner: dexter <pmaier@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder </div>
<div style="display:none"> Gerrit-Reviewer: Vadim Yanitskiy <vyanitskiy@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: laforge <laforge@osmocom.org> </div>
<div style="display:none"> Gerrit-MessageType: merged </div>