From 54ebc4772b1a1fb9ed72a561b5e9dc3e272313c3 Mon Sep 17 00:00:00 2001 From: Neels Janosch Hofmeyr Date: Mon, 21 Nov 2022 17:25:48 +0100 Subject: [PATCH] VTY: show gtp: still list tunmap if no tunend device is open When there was only tunend implemented, it made sense to show on VTY when no GTP kernel device was open. Since we now also have tunmap via netfilter, drop the early exit. Change-Id: I9a43a240f2ca55cf2ca237a83aa13e68a625d6ea --- src/osmo-upf/upf_vty.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/osmo-upf/upf_vty.c b/src/osmo-upf/upf_vty.c index f57429c..45f6dec 100644 --- a/src/osmo-upf/upf_vty.c +++ b/src/osmo-upf/upf_vty.c @@ -294,11 +294,6 @@ DEFUN(show_gtp, show_gtp_cmd, struct up_peer *peer; int count = 0; - if (!upf_gtp_dev_first()) { - vty_out(vty, "No GTP device open%s", VTY_NEWLINE); - return CMD_SUCCESS; - } - llist_for_each_entry(peer, &g_upf->pfcp.ep->peers, entry) { struct up_session *session; int bkt;