<p>dexter has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/libosmo-sccp/+/24644">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">osmo_ss7_vty: allow config-cs7-rt also in client role<br><br>The VTY commands config-cs7-rt are used to set up routing in SG mode,<br>they are usually not needed in client applications like osmo-hnbgw.<br><br>However, in some situations it may be still useful to have control over<br>the routes in client mode as well, lets move the installation of<br>rtable_node and its related VTY commands from osmo_ss7_vty_init_sg() to<br>vty_init_shared()<br><br>Change-Id: I72950cb58edb201f21c35dd7e032ce0fdc1530f7<br>Related: SYS#5392<br>---<br>M src/osmo_ss7_vty.c<br>1 file changed, 7 insertions(+), 7 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/libosmo-sccp refs/changes/44/24644/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/osmo_ss7_vty.c b/src/osmo_ss7_vty.c</span><br><span>index 63625a8..42e51ce 100644</span><br><span>--- a/src/osmo_ss7_vty.c</span><br><span>+++ b/src/osmo_ss7_vty.c</span><br><span>@@ -2137,6 +2137,13 @@</span><br><span>  install_lib_element(L_CS7_AS_NODE, &as_pc_override_cmd);</span><br><span>         install_lib_element(L_CS7_AS_NODE, &as_pc_patch_sccp_cmd);</span><br><span> </span><br><span style="color: hsl(120, 100%, 40%);">+    install_node(&rtable_node, NULL);</span><br><span style="color: hsl(120, 100%, 40%);">+ install_lib_element_ve(&show_cs7_route_cmd);</span><br><span style="color: hsl(120, 100%, 40%);">+      install_lib_element(L_CS7_NODE, &cs7_route_table_cmd);</span><br><span style="color: hsl(120, 100%, 40%);">+    install_lib_element(L_CS7_RTABLE_NODE, &cfg_description_cmd);</span><br><span style="color: hsl(120, 100%, 40%);">+     install_lib_element(L_CS7_RTABLE_NODE, &cs7_rt_upd_cmd);</span><br><span style="color: hsl(120, 100%, 40%);">+  install_lib_element(L_CS7_RTABLE_NODE, &cs7_rt_rem_cmd);</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span>       vty_init_addr();</span><br><span> }</span><br><span> </span><br><span>@@ -2151,13 +2158,6 @@</span><br><span>   cs7_role = CS7_ROLE_SG;</span><br><span>      vty_init_shared(ctx);</span><br><span> </span><br><span style="color: hsl(0, 100%, 40%);">-       install_node(&rtable_node, NULL);</span><br><span style="color: hsl(0, 100%, 40%);">-   install_lib_element_ve(&show_cs7_route_cmd);</span><br><span style="color: hsl(0, 100%, 40%);">-        install_lib_element(L_CS7_NODE, &cs7_route_table_cmd);</span><br><span style="color: hsl(0, 100%, 40%);">-      install_lib_element(L_CS7_RTABLE_NODE, &cfg_description_cmd);</span><br><span style="color: hsl(0, 100%, 40%);">-       install_lib_element(L_CS7_RTABLE_NODE, &cs7_rt_upd_cmd);</span><br><span style="color: hsl(0, 100%, 40%);">-    install_lib_element(L_CS7_RTABLE_NODE, &cs7_rt_rem_cmd);</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span>         install_node(&xua_node, NULL);</span><br><span>   install_lib_element(L_CS7_NODE, &cs7_xua_cmd);</span><br><span>   install_lib_element(L_CS7_NODE, &no_cs7_xua_cmd);</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/libosmo-sccp/+/24644">change 24644</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/libosmo-sccp/+/24644"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: libosmo-sccp </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: I72950cb58edb201f21c35dd7e032ce0fdc1530f7 </div>
<div style="display:none"> Gerrit-Change-Number: 24644 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: dexter <pmaier@sysmocom.de> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>