blob: f2e51d4fe8a43325da49a28fec16f7d6e1e72532 [file] [log] [blame]
Neels Hofmeyr4d8eb4c2016-08-18 01:03:44 +02001/* HNB-GW interface to quagga VTY */
2
3/* (C) 2016 by sysmocom s.f.m.c. GmbH <info@sysmocom.de>
4 * All Rights Reserved
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU Affero General Public License as published by
8 * the Free Software Foundation; either version 3 of the License, or
9 * (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU Affero General Public License for more details.
15 *
16 * You should have received a copy of the GNU Affero General Public License
17 * along with this program. If not, see <http://www.gnu.org/licenses/>.
18 *
19 */
20
Harald Welteda86fe52017-11-21 08:14:37 +010021#include <string.h>
22
Neels Hofmeyr140f38c2017-12-20 23:48:02 +010023#include <osmocom/core/socket.h>
Neels Hofmeyr4d8eb4c2016-08-18 01:03:44 +020024#include <osmocom/vty/command.h>
25
Neels Hofmeyr926153b2016-08-18 02:15:56 +020026#include <osmocom/iuh/vty.h>
27
Neels Hofmeyrdf63de22016-08-18 13:13:55 +020028#include <osmocom/iuh/hnbgw.h>
29#include <osmocom/iuh/context_map.h>
Neels Hofmeyr5ee050c2016-10-13 15:12:18 +020030#include <osmocom/sigtran/protocol/sua.h>
Neels Hofmeyr140f38c2017-12-20 23:48:02 +010031#include <osmocom/sigtran/sccp_helpers.h>
32#include <osmocom/netif/stream.h>
Neels Hofmeyr4d8eb4c2016-08-18 01:03:44 +020033
34static void *tall_hnb_ctx = NULL;
35static struct hnb_gw *g_hnb_gw = NULL;
36
Neels Hofmeyr926153b2016-08-18 02:15:56 +020037static struct cmd_node hnbgw_node = {
38 HNBGW_NODE,
39 "%s(config-hnbgw)# ",
40 1,
41};
42
43DEFUN(cfg_hnbgw, cfg_hnbgw_cmd,
44 "hnbgw", "Configure HNBGW options")
45{
46 vty->node = HNBGW_NODE;
47 return CMD_SUCCESS;
48}
49
50static struct cmd_node iuh_node = {
51 IUH_NODE,
52 "%s(config-hnbgw-iuh)# ",
53 1,
54};
55
56DEFUN(cfg_hnbgw_iuh, cfg_hnbgw_iuh_cmd,
57 "iuh", "Configure Iuh options")
58{
59 vty->node = IUH_NODE;
60 return CMD_SUCCESS;
61}
62
Neels Hofmeyr5ee050c2016-10-13 15:12:18 +020063static struct cmd_node iucs_node = {
64 IUCS_NODE,
65 "%s(config-hnbgw-iucs)# ",
66 1,
67};
68
69DEFUN(cfg_hnbgw_iucs, cfg_hnbgw_iucs_cmd,
70 "iucs", "Configure IuCS options")
71{
72 vty->node = IUCS_NODE;
73 return CMD_SUCCESS;
74}
75
76static struct cmd_node iups_node = {
77 IUPS_NODE,
78 "%s(config-hnbgw-iups)# ",
79 1,
80};
81
82DEFUN(cfg_hnbgw_iups, cfg_hnbgw_iups_cmd,
83 "iups", "Configure IuPS options")
84{
85 vty->node = IUPS_NODE;
86 return CMD_SUCCESS;
87}
88
Neels Hofmeyrc510fc22016-10-13 16:58:04 +020089int hnbgw_vty_go_parent(struct vty *vty)
90{
91 switch (vty->node) {
92 case IUH_NODE:
Neels Hofmeyr5ee050c2016-10-13 15:12:18 +020093 case IUCS_NODE:
94 case IUPS_NODE:
Neels Hofmeyrc510fc22016-10-13 16:58:04 +020095 vty->node = HNBGW_NODE;
96 vty->index = NULL;
97 break;
Neels Hofmeyrc510fc22016-10-13 16:58:04 +020098 case HNBGW_NODE:
99 vty->node = CONFIG_NODE;
100 vty->index = NULL;
101 break;
102 case CONFIG_NODE:
103 vty->node = ENABLE_NODE;
104 vty->index = NULL;
105 break;
Neels Hofmeyrecbdc5c2017-07-31 13:13:24 +0200106 default:
107 osmo_ss7_vty_go_parent(vty);
108 break;
Neels Hofmeyrc510fc22016-10-13 16:58:04 +0200109 }
110
111 return vty->node;
112}
113
Neels Hofmeyr140f38c2017-12-20 23:48:02 +0100114DEFUN(show_cnlink, show_cnlink_cmd, "show cnlink",
115 SHOW_STR "Display information on core network link\n")
116{
117 struct osmo_ss7_route *rt;
118 struct osmo_ss7_instance *ss7 = osmo_sccp_get_ss7(g_hnb_gw->sccp.client);
Neels Hofmeyr140f38c2017-12-20 23:48:02 +0100119#define GUARD(STR) \
120 STR ? STR : "", \
121 STR ? ":" : ""
Pau Espin Pedrol35e20582020-03-20 20:35:06 +0100122
Neels Hofmeyr140f38c2017-12-20 23:48:02 +0100123 vty_out(vty, "IuCS: %s <->",
124 osmo_sccp_user_name(g_hnb_gw->sccp.cnlink->sccp_user));
125 vty_out(vty, " %s%s%s%s",
126 GUARD(g_hnb_gw->config.iucs_remote_addr_name),
127 osmo_sccp_inst_addr_name(g_hnb_gw->sccp.client, &g_hnb_gw->sccp.iucs_remote_addr),
128 VTY_NEWLINE);
129
130 rt = osmo_ss7_route_lookup(ss7, g_hnb_gw->sccp.iucs_remote_addr.pc);
131 vty_out(vty, " SS7 route: %s%s", osmo_ss7_route_name(rt, true), VTY_NEWLINE);
132
133 vty_out(vty, "IuPS: %s <->",
134 osmo_sccp_user_name(g_hnb_gw->sccp.cnlink->sccp_user));
135 vty_out(vty, " %s%s%s%s",
136 GUARD(g_hnb_gw->config.iups_remote_addr_name),
137 osmo_sccp_inst_addr_name(g_hnb_gw->sccp.client, &g_hnb_gw->sccp.iups_remote_addr),
138 VTY_NEWLINE);
139
140 rt = osmo_ss7_route_lookup(ss7, g_hnb_gw->sccp.iups_remote_addr.pc);
141 vty_out(vty, " SS7 route: %s%s", osmo_ss7_route_name(rt, true), VTY_NEWLINE);
142
143#undef GUARD
144 return CMD_SUCCESS;
145}
146
147static void vty_out_ofd_addr(struct vty *vty, struct osmo_fd *ofd)
148{
Harald Welte8e88d372017-12-26 21:38:49 +0100149 char *name;
150 if (!ofd || ofd->fd < 0
Neels Hofmeyr140f38c2017-12-20 23:48:02 +0100151 || !(name = osmo_sock_get_name(vty, ofd->fd))) {
152 vty_out(vty, "(no addr)");
153 return;
Harald Welte8e88d372017-12-26 21:38:49 +0100154 }
Harald Weltef8b73b12017-12-26 21:39:53 +0100155 vty_out(vty, "%s", name);
Harald Welte8e88d372017-12-26 21:38:49 +0100156 talloc_free(name);
Neels Hofmeyr140f38c2017-12-20 23:48:02 +0100157}
158
Neels Hofmeyr9e17e052017-12-25 00:35:05 +0100159static void vty_dump_hnb_info__map_states(struct vty *vty, const char *name, unsigned int count,
160 unsigned int state_count[])
161{
162 unsigned int i;
163 if (!count)
164 return;
165 vty_out(vty, " %s: %u contexts:", name, count);
166 for (i = 0; i <= MAP_S_NUM_STATES; i++) {
167 if (!state_count[i])
168 continue;
169 vty_out(vty, " %s:%u", hnbgw_context_map_state_name(i), state_count[i]);
170 }
171 vty_out(vty, VTY_NEWLINE);
172}
173
Neels Hofmeyr4d8eb4c2016-08-18 01:03:44 +0200174static void vty_dump_hnb_info(struct vty *vty, struct hnb_context *hnb)
175{
176 struct hnbgw_context_map *map;
Neels Hofmeyr9e17e052017-12-25 00:35:05 +0100177 unsigned int map_count[2] = {};
178 unsigned int state_count[2][MAP_S_NUM_STATES + 1] = {};
Neels Hofmeyr4d8eb4c2016-08-18 01:03:44 +0200179
Neels Hofmeyr140f38c2017-12-20 23:48:02 +0100180 vty_out(vty, "HNB ");
181 vty_out_ofd_addr(vty, hnb->conn? osmo_stream_srv_get_ofd(hnb->conn) : NULL);
182 vty_out(vty, " \"%s\"%s", hnb->identity_info, VTY_NEWLINE);
Neels Hofmeyr3bd8a552017-12-25 15:24:33 +0100183 vty_out(vty, " MCC %u MNC %u LAC %u RAC %u SAC %u CID %u SCTP-stream:HNBAP=%u,RUA=%u%s",
Neels Hofmeyr140f38c2017-12-20 23:48:02 +0100184 hnb->id.mcc, hnb->id.mnc, hnb->id.lac, hnb->id.rac, hnb->id.sac, hnb->id.cid,
185 hnb->hnbap_stream, hnb->rua_stream, VTY_NEWLINE);
Neels Hofmeyr4d8eb4c2016-08-18 01:03:44 +0200186
187 llist_for_each_entry(map, &hnb->map_list, hnb_list) {
Neels Hofmeyr9e17e052017-12-25 00:35:05 +0100188 map_count[map->is_ps? 1 : 0]++;
189 state_count[map->is_ps? 1 : 0]
190 [(map->state >= 0 && map->state < MAP_S_NUM_STATES)?
191 map->state : MAP_S_NUM_STATES]++;
Neels Hofmeyr4d8eb4c2016-08-18 01:03:44 +0200192 }
Neels Hofmeyr9e17e052017-12-25 00:35:05 +0100193 vty_dump_hnb_info__map_states(vty, "IuCS", map_count[0], state_count[0]);
194 vty_dump_hnb_info__map_states(vty, "IuPS", map_count[1], state_count[1]);
Neels Hofmeyr4d8eb4c2016-08-18 01:03:44 +0200195}
196
197static void vty_dump_ue_info(struct vty *vty, struct ue_context *ue)
198{
199 vty_out(vty, "UE IMSI \"%s\" context ID %u%s", ue->imsi, ue->context_id, VTY_NEWLINE);
200}
201
Stefan Sperling319c2852018-10-29 18:19:14 +0100202DEFUN(show_hnb, show_hnb_cmd, "show hnb all", SHOW_STR "Display information about all HNB")
Neels Hofmeyr4d8eb4c2016-08-18 01:03:44 +0200203{
204 struct hnb_context *hnb;
Neels Hofmeyr9e17e052017-12-25 00:35:05 +0100205 unsigned int count = 0;
Neels Hofmeyr4d8eb4c2016-08-18 01:03:44 +0200206
Neels Hofmeyr140f38c2017-12-20 23:48:02 +0100207 if (llist_empty(&g_hnb_gw->hnb_list)) {
208 vty_out(vty, "No HNB connected%s", VTY_NEWLINE);
209 return CMD_SUCCESS;
210 }
211
Neels Hofmeyr4d8eb4c2016-08-18 01:03:44 +0200212 llist_for_each_entry(hnb, &g_hnb_gw->hnb_list, list) {
213 vty_dump_hnb_info(vty, hnb);
Neels Hofmeyr9e17e052017-12-25 00:35:05 +0100214 count++;
Neels Hofmeyr4d8eb4c2016-08-18 01:03:44 +0200215 }
216
Neels Hofmeyr9e17e052017-12-25 00:35:05 +0100217 vty_out(vty, "%u HNB connected%s", count, VTY_NEWLINE);
218
Neels Hofmeyr4d8eb4c2016-08-18 01:03:44 +0200219 return CMD_SUCCESS;
220}
221
Stefan Sperling319c2852018-10-29 18:19:14 +0100222DEFUN(show_one_hnb, show_one_hnb_cmd, "show hnb NAME ", SHOW_STR "Display information about a HNB")
223{
224 struct hnb_context *hnb;
Stefan Sperling319c2852018-10-29 18:19:14 +0100225 const char *identity_info = argv[0];
226
227 if (llist_empty(&g_hnb_gw->hnb_list)) {
228 vty_out(vty, "No HNB connected%s", VTY_NEWLINE);
229 return CMD_SUCCESS;
230 }
231
Vadim Yanitskiydab16ff2019-08-23 00:26:52 +0200232 hnb = hnb_context_by_identity_info(g_hnb_gw, identity_info);
Stefan Sperling319c2852018-10-29 18:19:14 +0100233 if (hnb == NULL) {
234 vty_out(vty, "No HNB found with identity '%s'%s", identity_info, VTY_NEWLINE);
235 return CMD_SUCCESS;
236 }
237
238 vty_dump_hnb_info(vty, hnb);
239 return CMD_SUCCESS;
240}
241
Neels Hofmeyr4d8eb4c2016-08-18 01:03:44 +0200242DEFUN(show_ue, show_ue_cmd, "show ue all", SHOW_STR "Display information about a UE")
243{
244 struct ue_context *ue;
245
246 llist_for_each_entry(ue, &g_hnb_gw->ue_list, list) {
247 vty_dump_ue_info(vty, ue);
248 }
249
250 return CMD_SUCCESS;
251}
252
253DEFUN(show_talloc, show_talloc_cmd, "show talloc", SHOW_STR "Display talloc info")
254{
255 talloc_report_full(tall_hnb_ctx, stderr);
256 talloc_report_full(talloc_asn1_ctx, stderr);
257
258 return CMD_SUCCESS;
259}
260
Neels Hofmeyrda58d262017-12-25 00:01:37 +0100261DEFUN(cfg_hnbgw_rnc_id, cfg_hnbgw_rnc_id_cmd,
262 "rnc-id <0-65535>",
263 "Configure the HNBGW's RNC Id, the common RNC Id used for all connected hNodeB. It is sent to"
264 " each hNodeB upon HNBAP HNB-Register-Accept, and the hNodeB will subsequently send this as"
265 " RANAP InitialUE Messages' GlobalRNC-ID IE. Takes effect as soon as the hNodeB re-registers.\n"
266 "RNC Id value\n")
267{
268 g_hnb_gw->config.rnc_id = atoi(argv[0]);
269 return CMD_SUCCESS;
270}
271
Neels Hofmeyr39ee9262016-09-26 01:07:19 +0200272DEFUN(cfg_hnbgw_iuh_local_ip, cfg_hnbgw_iuh_local_ip_cmd, "local-ip A.B.C.D",
Neels Hofmeyrf495b232016-08-18 02:18:00 +0200273 "Accept Iuh connections on local interface\n"
Neels Hofmeyrc7ccdd42016-10-13 14:43:49 +0200274 "Local interface IP address (default: " HNBGW_LOCAL_IP_DEFAULT ")")
Neels Hofmeyrf495b232016-08-18 02:18:00 +0200275{
Neels Hofmeyrc7ccdd42016-10-13 14:43:49 +0200276 talloc_free((void*)g_hnb_gw->config.iuh_local_ip);
277 g_hnb_gw->config.iuh_local_ip = talloc_strdup(tall_hnb_ctx, argv[0]);
Neels Hofmeyrf495b232016-08-18 02:18:00 +0200278 return CMD_SUCCESS;
279}
280
Neels Hofmeyr9153de62016-10-13 15:11:07 +0200281DEFUN(cfg_hnbgw_iuh_local_port, cfg_hnbgw_iuh_local_port_cmd, "local-port <1-65535>",
282 "Accept Iuh connections on local port\n"
283 "Local interface port (default: 29169)")
284{
285 g_hnb_gw->config.iuh_local_port = atoi(argv[0]);
286 return CMD_SUCCESS;
287}
288
Neels Hofmeyr12181a92016-04-25 15:05:32 +0200289DEFUN(cfg_hnbgw_iuh_hnbap_allow_tmsi, cfg_hnbgw_iuh_hnbap_allow_tmsi_cmd,
290 "hnbap-allow-tmsi (0|1)",
291 "Allow HNBAP UE Register messages with TMSI or PTMSI identity\n"
292 "Only accept IMSI identity, reject TMSI or PTMSI\n"
293 "Accept IMSI, TMSI or PTMSI as UE identity\n")
294{
295 g_hnb_gw->config.hnbap_allow_tmsi = (*argv[0] == '1');
296 return CMD_SUCCESS;
297}
298
Neels Hofmeyrecbdc5c2017-07-31 13:13:24 +0200299DEFUN(cfg_hnbgw_iucs_remote_addr,
300 cfg_hnbgw_iucs_remote_addr_cmd,
301 "remote-addr NAME",
302 "SCCP address to send IuCS to (MSC)\n"
303 "SCCP address book entry name (see 'cs7-instance')\n")
Neels Hofmeyr5ee050c2016-10-13 15:12:18 +0200304{
Neels Hofmeyrecbdc5c2017-07-31 13:13:24 +0200305 g_hnb_gw->config.iucs_remote_addr_name = talloc_strdup(g_hnb_gw, argv[0]);
Neels Hofmeyr5ee050c2016-10-13 15:12:18 +0200306 return CMD_SUCCESS;
307}
308
Neels Hofmeyrecbdc5c2017-07-31 13:13:24 +0200309DEFUN(cfg_hnbgw_iups_remote_addr,
310 cfg_hnbgw_iups_remote_addr_cmd,
311 "remote-addr NAME",
312 "SCCP address to send IuPS to (SGSN)\n"
313 "SCCP address book entry name (see 'cs7-instance')\n")
Neels Hofmeyr5ee050c2016-10-13 15:12:18 +0200314{
Neels Hofmeyrecbdc5c2017-07-31 13:13:24 +0200315 g_hnb_gw->config.iups_remote_addr_name = talloc_strdup(g_hnb_gw, argv[0]);
Neels Hofmeyr5ee050c2016-10-13 15:12:18 +0200316 return CMD_SUCCESS;
317}
318
Neels Hofmeyr926153b2016-08-18 02:15:56 +0200319static int config_write_hnbgw(struct vty *vty)
320{
321 vty_out(vty, "hnbgw%s", VTY_NEWLINE);
322 return CMD_SUCCESS;
323}
324
325static int config_write_hnbgw_iuh(struct vty *vty)
326{
Neels Hofmeyrf495b232016-08-18 02:18:00 +0200327 const char *addr;
Neels Hofmeyr9153de62016-10-13 15:11:07 +0200328 uint16_t port;
Neels Hofmeyrf495b232016-08-18 02:18:00 +0200329
Neels Hofmeyr926153b2016-08-18 02:15:56 +0200330 vty_out(vty, " iuh%s", VTY_NEWLINE);
Neels Hofmeyrf495b232016-08-18 02:18:00 +0200331
Neels Hofmeyrc7ccdd42016-10-13 14:43:49 +0200332 addr = g_hnb_gw->config.iuh_local_ip;
333 if (addr && (strcmp(addr, HNBGW_LOCAL_IP_DEFAULT) != 0))
Neels Hofmeyr39ee9262016-09-26 01:07:19 +0200334 vty_out(vty, " local-ip %s%s", addr, VTY_NEWLINE);
Neels Hofmeyrf495b232016-08-18 02:18:00 +0200335
Neels Hofmeyr9153de62016-10-13 15:11:07 +0200336 port = g_hnb_gw->config.iuh_local_port;
337 if (port && port != IUH_DEFAULT_SCTP_PORT)
338 vty_out(vty, " local-port %u%s", port, VTY_NEWLINE);
339
Neels Hofmeyr12181a92016-04-25 15:05:32 +0200340 if (g_hnb_gw->config.hnbap_allow_tmsi)
341 vty_out(vty, " hnbap-allow-tmsi 1%s", VTY_NEWLINE);
342
Neels Hofmeyr926153b2016-08-18 02:15:56 +0200343 return CMD_SUCCESS;
344}
345
Neels Hofmeyr5ee050c2016-10-13 15:12:18 +0200346static int config_write_hnbgw_iucs(struct vty *vty)
347{
Neels Hofmeyrecbdc5c2017-07-31 13:13:24 +0200348 if (!g_hnb_gw->config.iucs_remote_addr_name)
349 return CMD_SUCCESS;
350
Neels Hofmeyr5ee050c2016-10-13 15:12:18 +0200351 vty_out(vty, " iucs%s", VTY_NEWLINE);
Neels Hofmeyrecbdc5c2017-07-31 13:13:24 +0200352 vty_out(vty, " remote-addr %s%s", g_hnb_gw->config.iucs_remote_addr_name,
353 VTY_NEWLINE);
Neels Hofmeyr5ee050c2016-10-13 15:12:18 +0200354
355 return CMD_SUCCESS;
356}
357
358static int config_write_hnbgw_iups(struct vty *vty)
359{
Neels Hofmeyrecbdc5c2017-07-31 13:13:24 +0200360 if (!g_hnb_gw->config.iups_remote_addr_name)
361 return CMD_SUCCESS;
362
Neels Hofmeyr5ee050c2016-10-13 15:12:18 +0200363 vty_out(vty, " iups%s", VTY_NEWLINE);
Neels Hofmeyrecbdc5c2017-07-31 13:13:24 +0200364 vty_out(vty, " remote-addr %s%s", g_hnb_gw->config.iups_remote_addr_name,
365 VTY_NEWLINE);
Neels Hofmeyr5ee050c2016-10-13 15:12:18 +0200366
367 return CMD_SUCCESS;
368}
369
Neels Hofmeyr4d8eb4c2016-08-18 01:03:44 +0200370void hnbgw_vty_init(struct hnb_gw *gw, void *tall_ctx)
371{
372 g_hnb_gw = gw;
373 tall_hnb_ctx = tall_ctx;
Neels Hofmeyr926153b2016-08-18 02:15:56 +0200374
375 install_element(CONFIG_NODE, &cfg_hnbgw_cmd);
376 install_node(&hnbgw_node, config_write_hnbgw);
Neels Hofmeyr926153b2016-08-18 02:15:56 +0200377
Neels Hofmeyrda58d262017-12-25 00:01:37 +0100378 install_element(HNBGW_NODE, &cfg_hnbgw_rnc_id_cmd);
379
Neels Hofmeyr926153b2016-08-18 02:15:56 +0200380 install_element(HNBGW_NODE, &cfg_hnbgw_iuh_cmd);
381 install_node(&iuh_node, config_write_hnbgw_iuh);
Neels Hofmeyr12181a92016-04-25 15:05:32 +0200382
Neels Hofmeyr39ee9262016-09-26 01:07:19 +0200383 install_element(IUH_NODE, &cfg_hnbgw_iuh_local_ip_cmd);
Neels Hofmeyr9153de62016-10-13 15:11:07 +0200384 install_element(IUH_NODE, &cfg_hnbgw_iuh_local_port_cmd);
Neels Hofmeyr12181a92016-04-25 15:05:32 +0200385 install_element(IUH_NODE, &cfg_hnbgw_iuh_hnbap_allow_tmsi_cmd);
Neels Hofmeyr926153b2016-08-18 02:15:56 +0200386
Neels Hofmeyr5ee050c2016-10-13 15:12:18 +0200387 install_element(HNBGW_NODE, &cfg_hnbgw_iucs_cmd);
388 install_node(&iucs_node, config_write_hnbgw_iucs);
Neels Hofmeyr5ee050c2016-10-13 15:12:18 +0200389
Neels Hofmeyrecbdc5c2017-07-31 13:13:24 +0200390 install_element(IUCS_NODE, &cfg_hnbgw_iucs_remote_addr_cmd);
Neels Hofmeyr5ee050c2016-10-13 15:12:18 +0200391
392 install_element(HNBGW_NODE, &cfg_hnbgw_iups_cmd);
393 install_node(&iups_node, config_write_hnbgw_iups);
Neels Hofmeyr5ee050c2016-10-13 15:12:18 +0200394
Neels Hofmeyrecbdc5c2017-07-31 13:13:24 +0200395 install_element(IUPS_NODE, &cfg_hnbgw_iups_remote_addr_cmd);
Neels Hofmeyr5ee050c2016-10-13 15:12:18 +0200396
Neels Hofmeyr140f38c2017-12-20 23:48:02 +0100397 install_element_ve(&show_cnlink_cmd);
Neels Hofmeyr4d8eb4c2016-08-18 01:03:44 +0200398 install_element_ve(&show_hnb_cmd);
Stefan Sperling319c2852018-10-29 18:19:14 +0100399 install_element_ve(&show_one_hnb_cmd);
Neels Hofmeyr4d8eb4c2016-08-18 01:03:44 +0200400 install_element_ve(&show_ue_cmd);
401 install_element_ve(&show_talloc_cmd);
402}