neels submitted this change.
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
---
M src/osmo-upf/upf_vty.c
1 file changed, 0 insertions(+), 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 @@
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;
To view, visit change 30456. To unsubscribe, or for help writing mail filters, visit settings.