Pablo Neira Ayuso | 262aee8 | 2011-07-05 19:17:08 +0200 | [diff] [blame] | 1 | /* E1 vty interface */ |
| 2 | /* (C) 2011 by Harald Welte <laforge@gnumonks.org> |
| 3 | * All Rights Reserved |
| 4 | * |
| 5 | * This program is free software; you can redistribute it and/or modify |
| 6 | * it under the terms of the GNU Affero General Public License as published by |
| 7 | * the Free Software Foundation; either version 3 of the License, or |
| 8 | * (at your option) any later version. |
| 9 | * |
| 10 | * This program is distributed in the hope that it will be useful, |
| 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 13 | * GNU Affero General Public License for more details. |
| 14 | * |
| 15 | * You should have received a copy of the GNU Affero General Public License |
| 16 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 17 | * |
| 18 | */ |
| 19 | #include "internal.h" |
| 20 | |
| 21 | #include <stdlib.h> |
| 22 | #include <unistd.h> |
Harald Welte | d4f8f68 | 2011-08-19 13:28:48 +0200 | [diff] [blame] | 23 | #include <string.h> |
Pablo Neira Ayuso | 262aee8 | 2011-07-05 19:17:08 +0200 | [diff] [blame] | 24 | |
Harald Welte | f2737fc | 2011-08-16 14:30:10 +0200 | [diff] [blame] | 25 | #include <osmocom/core/linuxlist.h> |
| 26 | #include <osmocom/core/talloc.h> |
| 27 | #include <osmocom/core/utils.h> |
| 28 | #include <osmocom/gsm/gsm_utils.h> |
| 29 | |
Pablo Neira Ayuso | 262aee8 | 2011-07-05 19:17:08 +0200 | [diff] [blame] | 30 | #include <osmocom/vty/command.h> |
| 31 | #include <osmocom/vty/buffer.h> |
| 32 | #include <osmocom/vty/vty.h> |
| 33 | #include <osmocom/vty/logging.h> |
Harald Welte | f2737fc | 2011-08-16 14:30:10 +0200 | [diff] [blame] | 34 | #include <osmocom/vty/misc.h> |
Pablo Neira Ayuso | 262aee8 | 2011-07-05 19:17:08 +0200 | [diff] [blame] | 35 | #include <osmocom/vty/telnet_interface.h> |
| 36 | |
Pablo Neira Ayuso | 262aee8 | 2011-07-05 19:17:08 +0200 | [diff] [blame] | 37 | #include <osmocom/abis/e1_input.h> |
Harald Welte | f2737fc | 2011-08-16 14:30:10 +0200 | [diff] [blame] | 38 | |
| 39 | /* CONFIG */ |
Pablo Neira Ayuso | 262aee8 | 2011-07-05 19:17:08 +0200 | [diff] [blame] | 40 | |
Holger Hans Peter Freyther | 9d4fe51 | 2013-07-04 19:45:34 +0200 | [diff] [blame] | 41 | #define E1_DRIVER_NAMES "(misdn|misdn_lapd|dahdi|ipa)" |
Harald Welte | ce307b4 | 2011-08-21 01:18:05 +0200 | [diff] [blame] | 42 | #define E1_DRIVER_HELP "mISDN supported E1 Card (kernel LAPD)\n" \ |
| 43 | "mISDN supported E1 Card (userspace LAPD)\n" \ |
Pablo Neira Ayuso | 262aee8 | 2011-07-05 19:17:08 +0200 | [diff] [blame] | 44 | "DAHDI supported E1/T1/J1 Card\n" \ |
Holger Hans Peter Freyther | 36bac9a | 2012-07-20 23:49:52 +0200 | [diff] [blame] | 45 | "IPA TCP/IP input\n" \ |
Pablo Neira Ayuso | 262aee8 | 2011-07-05 19:17:08 +0200 | [diff] [blame] | 46 | "HSL TCP/IP input" |
| 47 | |
Harald Welte | 601a9c7 | 2011-08-16 14:17:49 +0200 | [diff] [blame] | 48 | #define E1_LINE_HELP "Configure E1/T1/J1 Line\n" "Line Number\n" |
| 49 | |
Pablo Neira Ayuso | 262aee8 | 2011-07-05 19:17:08 +0200 | [diff] [blame] | 50 | DEFUN(cfg_e1line_driver, cfg_e1_line_driver_cmd, |
| 51 | "e1_line <0-255> driver " E1_DRIVER_NAMES, |
Harald Welte | 601a9c7 | 2011-08-16 14:17:49 +0200 | [diff] [blame] | 52 | E1_LINE_HELP "Set driver for this line\n" |
Pablo Neira Ayuso | 262aee8 | 2011-07-05 19:17:08 +0200 | [diff] [blame] | 53 | E1_DRIVER_HELP) |
| 54 | { |
| 55 | struct e1inp_line *line; |
| 56 | int e1_nr = atoi(argv[0]); |
| 57 | |
Pablo Neira Ayuso | 3832c4f | 2011-07-07 17:47:26 +0200 | [diff] [blame] | 58 | line = e1inp_line_find(e1_nr); |
Pablo Neira Ayuso | 262aee8 | 2011-07-05 19:17:08 +0200 | [diff] [blame] | 59 | if (line) { |
| 60 | vty_out(vty, "%% Line %d already exists%s", e1_nr, VTY_NEWLINE); |
| 61 | return CMD_WARNING; |
| 62 | } |
| 63 | line = e1inp_line_create(e1_nr, argv[1]); |
| 64 | if (!line) { |
| 65 | vty_out(vty, "%% Error creating line %d%s", e1_nr, VTY_NEWLINE); |
| 66 | return CMD_WARNING; |
| 67 | } |
| 68 | |
| 69 | return CMD_SUCCESS; |
| 70 | } |
| 71 | |
Harald Welte | c288951 | 2011-09-13 23:49:04 +0100 | [diff] [blame] | 72 | DEFUN(cfg_e1line_port, cfg_e1_line_port_cmd, |
Harald Welte | 356918f | 2011-09-26 22:54:51 +0200 | [diff] [blame] | 73 | "e1_line <0-255> port <0-255>", |
| 74 | E1_LINE_HELP "Set physical port/span/card number\n" |
Harald Welte | c288951 | 2011-09-13 23:49:04 +0100 | [diff] [blame] | 75 | "E1/T1 Port/Span/Card number\n") |
| 76 | { |
| 77 | struct e1inp_line *line; |
| 78 | int e1_nr = atoi(argv[0]); |
| 79 | |
| 80 | line = e1inp_line_find(e1_nr); |
| 81 | if (!line) { |
| 82 | vty_out(vty, "%% Line %d doesn't exist%s", e1_nr, VTY_NEWLINE); |
| 83 | return CMD_WARNING; |
| 84 | } |
| 85 | |
| 86 | line->port_nr = atoi(argv[1]); |
| 87 | |
| 88 | return CMD_SUCCESS; |
| 89 | } |
| 90 | |
Jacob Erlbeck | 86dae84 | 2014-01-16 18:10:37 +0100 | [diff] [blame] | 91 | #define KEEPALIVE_HELP "Enable keep-alive probing\n" |
| 92 | static int set_keepalive_params(struct vty *vty, int e1_nr, |
| 93 | int idle, int num_probes, int probe_interval) |
| 94 | { |
| 95 | struct e1inp_line *line = e1inp_line_find(e1_nr); |
| 96 | |
| 97 | if (!line) { |
| 98 | vty_out(vty, "%% Line %d doesn't exist%s", e1_nr, VTY_NEWLINE); |
| 99 | return CMD_WARNING; |
| 100 | } |
| 101 | if (!line->driver->has_keepalive && num_probes != 0) { |
| 102 | vty_out(vty, "%% Driver '%s' does not support keep alive%s", |
| 103 | line->driver->name, VTY_NEWLINE); |
| 104 | return CMD_WARNING; |
| 105 | } |
| 106 | |
| 107 | line->keepalive_idle_timeout = idle; |
| 108 | line->keepalive_num_probes = num_probes; |
| 109 | line->keepalive_probe_interval = probe_interval; |
| 110 | |
| 111 | return CMD_SUCCESS; |
| 112 | } |
| 113 | |
| 114 | DEFUN(cfg_e1line_keepalive, cfg_e1_line_keepalive_cmd, |
| 115 | "e1_line <0-255> keepalive", |
| 116 | E1_LINE_HELP KEEPALIVE_HELP) |
| 117 | { |
| 118 | return set_keepalive_params(vty, atoi(argv[0]), |
| 119 | E1INP_USE_DEFAULT, E1INP_USE_DEFAULT, |
| 120 | E1INP_USE_DEFAULT); |
| 121 | } |
| 122 | |
| 123 | DEFUN(cfg_e1line_keepalive_params, cfg_e1_line_keepalive_params_cmd, |
| 124 | "e1_line <0-255> keepalive <1-300> <1-20> <1-300>", |
| 125 | E1_LINE_HELP KEEPALIVE_HELP |
| 126 | "Idle interval in seconds before probes are sent\n" |
| 127 | "Number of probes to sent\n" |
| 128 | "Delay between probe packets in seconds\n") |
| 129 | { |
| 130 | return set_keepalive_params(vty, atoi(argv[0]), |
| 131 | atoi(argv[1]), atoi(argv[2]), atoi(argv[3])); |
| 132 | } |
| 133 | |
| 134 | DEFUN(cfg_e1line_no_keepalive, cfg_e1_line_no_keepalive_cmd, |
| 135 | "no e1_line <0-255> keepalive", |
| 136 | NO_STR E1_LINE_HELP KEEPALIVE_HELP) |
| 137 | { |
| 138 | return set_keepalive_params(vty, atoi(argv[0]), 0, 0, 0); |
| 139 | } |
| 140 | |
Harald Welte | 601a9c7 | 2011-08-16 14:17:49 +0200 | [diff] [blame] | 141 | DEFUN(cfg_e1line_name, cfg_e1_line_name_cmd, |
| 142 | "e1_line <0-255> name .LINE", |
| 143 | E1_LINE_HELP "Set name for this line\n" "Human readable name\n") |
| 144 | { |
| 145 | struct e1inp_line *line; |
| 146 | int e1_nr = atoi(argv[0]); |
| 147 | |
| 148 | line = e1inp_line_find(e1_nr); |
| 149 | if (!line) { |
| 150 | vty_out(vty, "%% Line %d doesn't exist%s", e1_nr, VTY_NEWLINE); |
| 151 | return CMD_WARNING; |
| 152 | } |
| 153 | if (line->name) { |
| 154 | talloc_free((void *)line->name); |
| 155 | line->name = NULL; |
| 156 | } |
| 157 | line->name = talloc_strdup(line, argv[1]); |
| 158 | |
| 159 | return CMD_SUCCESS; |
| 160 | } |
| 161 | |
Pablo Neira Ayuso | 262aee8 | 2011-07-05 19:17:08 +0200 | [diff] [blame] | 162 | DEFUN(cfg_e1inp, cfg_e1inp_cmd, |
| 163 | "e1_input", |
| 164 | "Configure E1/T1/J1 TDM input\n") |
| 165 | { |
Harald Welte | cc2241b | 2011-07-19 16:06:06 +0200 | [diff] [blame] | 166 | vty->node = L_E1INP_NODE; |
Pablo Neira Ayuso | 262aee8 | 2011-07-05 19:17:08 +0200 | [diff] [blame] | 167 | |
| 168 | return CMD_SUCCESS; |
| 169 | } |
| 170 | |
| 171 | static int e1inp_config_write(struct vty *vty) |
| 172 | { |
| 173 | struct e1inp_line *line; |
| 174 | |
| 175 | if (llist_empty(&e1inp_line_list)) |
| 176 | return CMD_SUCCESS; |
| 177 | |
| 178 | vty_out(vty, "e1_input%s", VTY_NEWLINE); |
| 179 | |
| 180 | llist_for_each_entry(line, &e1inp_line_list, list) { |
| 181 | vty_out(vty, " e1_line %u driver %s%s", line->num, |
| 182 | line->driver->name, VTY_NEWLINE); |
Harald Welte | c288951 | 2011-09-13 23:49:04 +0100 | [diff] [blame] | 183 | vty_out(vty, " e1_line %u port %u%s", line->num, |
| 184 | line->port_nr, VTY_NEWLINE); |
Harald Welte | 601a9c7 | 2011-08-16 14:17:49 +0200 | [diff] [blame] | 185 | if (line->name) |
| 186 | vty_out(vty, " e1_line %u name %s%s", line->num, |
| 187 | line->name, VTY_NEWLINE); |
Jacob Erlbeck | 86dae84 | 2014-01-16 18:10:37 +0100 | [diff] [blame] | 188 | if (!line->keepalive_num_probes) |
| 189 | vty_out(vty, " no e1_line %u keepalive%s", line->num, |
| 190 | VTY_NEWLINE); |
| 191 | else if (line->keepalive_idle_timeout == E1INP_USE_DEFAULT && |
| 192 | line->keepalive_num_probes == E1INP_USE_DEFAULT && |
| 193 | line->keepalive_probe_interval == E1INP_USE_DEFAULT) |
| 194 | vty_out(vty, " e1_line %u keepalive%s", line->num, |
| 195 | VTY_NEWLINE); |
| 196 | else |
| 197 | vty_out(vty, " e1_line %u keepalive %d %d %d%s", |
| 198 | line->num, |
| 199 | line->keepalive_idle_timeout, |
| 200 | line->keepalive_num_probes, |
| 201 | line->keepalive_probe_interval, |
| 202 | VTY_NEWLINE); |
| 203 | |
Pablo Neira Ayuso | 262aee8 | 2011-07-05 19:17:08 +0200 | [diff] [blame] | 204 | } |
| 205 | return CMD_SUCCESS; |
| 206 | } |
| 207 | |
Harald Welte | f2737fc | 2011-08-16 14:30:10 +0200 | [diff] [blame] | 208 | /* SHOW */ |
| 209 | |
Harald Welte | 6e37c59 | 2011-08-11 12:43:31 +0200 | [diff] [blame] | 210 | static void e1drv_dump_vty(struct vty *vty, struct e1inp_driver *drv) |
| 211 | { |
| 212 | vty_out(vty, "E1 Input Driver %s%s", drv->name, VTY_NEWLINE); |
| 213 | } |
| 214 | |
| 215 | DEFUN(show_e1drv, |
| 216 | show_e1drv_cmd, |
| 217 | "show e1_driver", |
| 218 | SHOW_STR "Display information about available E1 drivers\n") |
| 219 | { |
| 220 | struct e1inp_driver *drv; |
| 221 | |
| 222 | llist_for_each_entry(drv, &e1inp_driver_list, list) |
| 223 | e1drv_dump_vty(vty, drv); |
| 224 | |
| 225 | return CMD_SUCCESS; |
| 226 | } |
| 227 | |
Harald Welte | f2737fc | 2011-08-16 14:30:10 +0200 | [diff] [blame] | 228 | static void e1line_dump_vty(struct vty *vty, struct e1inp_line *line, |
| 229 | int stats) |
Harald Welte | 6e37c59 | 2011-08-11 12:43:31 +0200 | [diff] [blame] | 230 | { |
| 231 | vty_out(vty, "E1 Line Number %u, Name %s, Driver %s%s", |
| 232 | line->num, line->name ? line->name : "", |
| 233 | line->driver->name, VTY_NEWLINE); |
Harald Welte | fe05cf5 | 2011-09-26 23:18:41 +0200 | [diff] [blame] | 234 | if (line->driver->vty_show) |
| 235 | line->driver->vty_show(vty, line); |
Harald Welte | f2737fc | 2011-08-16 14:30:10 +0200 | [diff] [blame] | 236 | if (stats) |
| 237 | vty_out_rate_ctr_group(vty, " ", line->rate_ctr); |
Harald Welte | 6e37c59 | 2011-08-11 12:43:31 +0200 | [diff] [blame] | 238 | } |
| 239 | |
| 240 | DEFUN(show_e1line, |
| 241 | show_e1line_cmd, |
Harald Welte | f2737fc | 2011-08-16 14:30:10 +0200 | [diff] [blame] | 242 | "show e1_line [line_nr] [stats]", |
Harald Welte | 6e37c59 | 2011-08-11 12:43:31 +0200 | [diff] [blame] | 243 | SHOW_STR "Display information about a E1 line\n" |
Holger Hans Peter Freyther | 9e8f1c0 | 2012-07-21 00:09:52 +0200 | [diff] [blame] | 244 | "E1 Line Number\n" "Include statistics\n") |
Harald Welte | 6e37c59 | 2011-08-11 12:43:31 +0200 | [diff] [blame] | 245 | { |
| 246 | struct e1inp_line *line; |
Harald Welte | f2737fc | 2011-08-16 14:30:10 +0200 | [diff] [blame] | 247 | int stats = 0; |
Harald Welte | 6e37c59 | 2011-08-11 12:43:31 +0200 | [diff] [blame] | 248 | |
Harald Welte | f2737fc | 2011-08-16 14:30:10 +0200 | [diff] [blame] | 249 | if (argc >= 1 && strcmp(argv[0], "stats")) { |
Harald Welte | 6e37c59 | 2011-08-11 12:43:31 +0200 | [diff] [blame] | 250 | int num = atoi(argv[0]); |
Harald Welte | f2737fc | 2011-08-16 14:30:10 +0200 | [diff] [blame] | 251 | if (argc >= 2) |
| 252 | stats = 1; |
Harald Welte | 6e37c59 | 2011-08-11 12:43:31 +0200 | [diff] [blame] | 253 | llist_for_each_entry(line, &e1inp_line_list, list) { |
| 254 | if (line->num == num) { |
Harald Welte | f2737fc | 2011-08-16 14:30:10 +0200 | [diff] [blame] | 255 | e1line_dump_vty(vty, line, stats); |
Harald Welte | 6e37c59 | 2011-08-11 12:43:31 +0200 | [diff] [blame] | 256 | return CMD_SUCCESS; |
| 257 | } |
| 258 | } |
| 259 | return CMD_WARNING; |
| 260 | } |
| 261 | |
Harald Welte | f2737fc | 2011-08-16 14:30:10 +0200 | [diff] [blame] | 262 | if (argc >= 1 && !strcmp(argv[0], "stats")) |
| 263 | stats = 1; |
| 264 | |
Harald Welte | 6e37c59 | 2011-08-11 12:43:31 +0200 | [diff] [blame] | 265 | llist_for_each_entry(line, &e1inp_line_list, list) |
Harald Welte | f2737fc | 2011-08-16 14:30:10 +0200 | [diff] [blame] | 266 | e1line_dump_vty(vty, line, stats); |
Harald Welte | 6e37c59 | 2011-08-11 12:43:31 +0200 | [diff] [blame] | 267 | |
| 268 | return CMD_SUCCESS; |
| 269 | } |
| 270 | |
| 271 | static void e1ts_dump_vty(struct vty *vty, struct e1inp_ts *ts) |
| 272 | { |
| 273 | if (ts->type == E1INP_TS_TYPE_NONE) |
| 274 | return; |
| 275 | vty_out(vty, "E1 Timeslot %2u of Line %u is Type %s%s", |
| 276 | ts->num, ts->line->num, e1inp_tstype_name(ts->type), |
| 277 | VTY_NEWLINE); |
| 278 | } |
| 279 | |
| 280 | DEFUN(show_e1ts, |
| 281 | show_e1ts_cmd, |
| 282 | "show e1_timeslot [line_nr] [ts_nr]", |
| 283 | SHOW_STR "Display information about a E1 timeslot\n" |
| 284 | "E1 Line Number\n" "E1 Timeslot Number\n") |
| 285 | { |
| 286 | struct e1inp_line *line = NULL; |
| 287 | struct e1inp_ts *ts; |
| 288 | int ts_nr; |
| 289 | |
Holger Hans Peter Freyther | 8cbd9f4 | 2013-07-04 20:00:33 +0200 | [diff] [blame] | 290 | if (argc <= 0) { |
Harald Welte | 6e37c59 | 2011-08-11 12:43:31 +0200 | [diff] [blame] | 291 | llist_for_each_entry(line, &e1inp_line_list, list) { |
Harald Welte | c288951 | 2011-09-13 23:49:04 +0100 | [diff] [blame] | 292 | for (ts_nr = 0; ts_nr < line->num_ts; ts_nr++) { |
Harald Welte | 6e37c59 | 2011-08-11 12:43:31 +0200 | [diff] [blame] | 293 | ts = &line->ts[ts_nr]; |
| 294 | e1ts_dump_vty(vty, ts); |
| 295 | } |
| 296 | } |
| 297 | return CMD_SUCCESS; |
| 298 | } |
| 299 | if (argc >= 1) { |
| 300 | int num = atoi(argv[0]); |
| 301 | struct e1inp_line *l; |
| 302 | llist_for_each_entry(l, &e1inp_line_list, list) { |
| 303 | if (l->num == num) { |
| 304 | line = l; |
| 305 | break; |
| 306 | } |
| 307 | } |
| 308 | if (!line) { |
| 309 | vty_out(vty, "E1 line %s is invalid%s", |
| 310 | argv[0], VTY_NEWLINE); |
| 311 | return CMD_WARNING; |
| 312 | } |
| 313 | } |
| 314 | if (argc >= 2) { |
| 315 | ts_nr = atoi(argv[1]); |
Harald Welte | c288951 | 2011-09-13 23:49:04 +0100 | [diff] [blame] | 316 | if (ts_nr >= line->num_ts) { |
Harald Welte | 6e37c59 | 2011-08-11 12:43:31 +0200 | [diff] [blame] | 317 | vty_out(vty, "E1 timeslot %s is invalid%s", |
| 318 | argv[1], VTY_NEWLINE); |
| 319 | return CMD_WARNING; |
| 320 | } |
| 321 | ts = &line->ts[ts_nr]; |
| 322 | e1ts_dump_vty(vty, ts); |
| 323 | return CMD_SUCCESS; |
| 324 | } else { |
Harald Welte | c288951 | 2011-09-13 23:49:04 +0100 | [diff] [blame] | 325 | for (ts_nr = 0; ts_nr < line->num_ts; ts_nr++) { |
Harald Welte | 6e37c59 | 2011-08-11 12:43:31 +0200 | [diff] [blame] | 326 | ts = &line->ts[ts_nr]; |
| 327 | e1ts_dump_vty(vty, ts); |
| 328 | } |
| 329 | return CMD_SUCCESS; |
| 330 | } |
| 331 | return CMD_SUCCESS; |
| 332 | } |
| 333 | |
| 334 | |
Pablo Neira Ayuso | 262aee8 | 2011-07-05 19:17:08 +0200 | [diff] [blame] | 335 | struct cmd_node e1inp_node = { |
Harald Welte | cc2241b | 2011-07-19 16:06:06 +0200 | [diff] [blame] | 336 | L_E1INP_NODE, |
Jacob Erlbeck | 1c9dcc1 | 2013-11-11 14:13:13 +0100 | [diff] [blame] | 337 | "%s(config-e1_input)# ", |
Pablo Neira Ayuso | 262aee8 | 2011-07-05 19:17:08 +0200 | [diff] [blame] | 338 | 1, |
| 339 | }; |
| 340 | |
| 341 | int e1inp_vty_init(void) |
| 342 | { |
| 343 | install_element(CONFIG_NODE, &cfg_e1inp_cmd); |
| 344 | install_node(&e1inp_node, e1inp_config_write); |
Jacob Erlbeck | 37f0695 | 2013-11-11 14:13:12 +0100 | [diff] [blame] | 345 | |
| 346 | vty_install_default(L_E1INP_NODE); |
Harald Welte | cc2241b | 2011-07-19 16:06:06 +0200 | [diff] [blame] | 347 | install_element(L_E1INP_NODE, &cfg_e1_line_driver_cmd); |
Harald Welte | c288951 | 2011-09-13 23:49:04 +0100 | [diff] [blame] | 348 | install_element(L_E1INP_NODE, &cfg_e1_line_port_cmd); |
Harald Welte | 601a9c7 | 2011-08-16 14:17:49 +0200 | [diff] [blame] | 349 | install_element(L_E1INP_NODE, &cfg_e1_line_name_cmd); |
Jacob Erlbeck | 86dae84 | 2014-01-16 18:10:37 +0100 | [diff] [blame] | 350 | install_element(L_E1INP_NODE, &cfg_e1_line_keepalive_cmd); |
| 351 | install_element(L_E1INP_NODE, &cfg_e1_line_keepalive_params_cmd); |
| 352 | install_element(L_E1INP_NODE, &cfg_e1_line_no_keepalive_cmd); |
Pablo Neira Ayuso | 262aee8 | 2011-07-05 19:17:08 +0200 | [diff] [blame] | 353 | |
Harald Welte | 6e37c59 | 2011-08-11 12:43:31 +0200 | [diff] [blame] | 354 | install_element_ve(&show_e1drv_cmd); |
| 355 | install_element_ve(&show_e1line_cmd); |
| 356 | install_element_ve(&show_e1ts_cmd); |
| 357 | |
Pablo Neira Ayuso | 262aee8 | 2011-07-05 19:17:08 +0200 | [diff] [blame] | 358 | return 0; |
| 359 | } |