neels has submitted this change. (
https://gerrit.osmocom.org/c/osmo-upf/+/30456 )
Change subject: VTY: show gtp: still list tunmap if no tunend device is open
......................................................................
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(-)
Approvals:
Jenkins Builder: Verified
laforge: Looks good to me, approved
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
https://gerrit.osmocom.org/c/osmo-upf/+/30456
To unsubscribe, or for help writing mail filters, visit
https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-upf
Gerrit-Branch: master
Gerrit-Change-Id: I9a43a240f2ca55cf2ca237a83aa13e68a625d6ea
Gerrit-Change-Number: 30456
Gerrit-PatchSet: 1
Gerrit-Owner: neels <nhofmeyr(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge(a)osmocom.org>
Gerrit-Reviewer: neels <nhofmeyr(a)sysmocom.de>
Gerrit-MessageType: merged