pespin has uploaded this change for review. ( 
https://gerrit.osmocom.org/c/osmo-ggsn/+/15256


Change subject: ggsn_vty.c: Improve output of VTY show pdp-context
......................................................................

ggsn_vty.c: Improve output of VTY show pdp-context

Related: OS#4154
Change-Id: If9682fe343e9a1e78175a12538fb80d4bda54802
---
M ggsn/ggsn_vty.c
1 file changed, 14 insertions(+), 0 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-ggsn refs/changes/56/15256/1

diff --git a/ggsn/ggsn_vty.c b/ggsn/ggsn_vty.c
index a649173..5684f5a 100644
--- a/ggsn/ggsn_vty.c
+++ b/ggsn/ggsn_vty.c
@@ -757,6 +757,20 @@
        vty_out(vty, "IMSI: %s, NSAPI: %u, MSISDN: %s%s", 
imsi_gtp2str(&pdp->imsi), pdp->nsapi,
                rc ? "(NONE)" : name_buf, VTY_NEWLINE);

+       vty_out(vty, " Version: %d", pdp->version);
+       if (pdp->version == 1) {
+               if (!pdp->secondary) {
+                       vty_out(vty, ", Primary, Num Secondaries: %d%s%s",
+                               pdp_count_secondary(pdp) - 1, /* primary 
included in count */
+                               pdp->nodata ? ", No User Plane": "",
+                               VTY_NEWLINE);
+               } else {
+                       vty_out(vty, ", Secondary%s", VTY_NEWLINE);
+               }
+       } else {
+               vty_out(vty, "%s", VTY_NEWLINE);
+       }
+
        vty_out(vty, " Control: %s:%08x ", print_gsnaddr(&pdp->gsnlc), 
pdp->teic_own);
        vty_out(vty, "<-> %s:%08x%s", print_gsnaddr(&pdp->gsnrc), pdp->teic_gn, 
VTY_NEWLINE);


--
To view, visit https://gerrit.osmocom.org/c/osmo-ggsn/+/15256
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-ggsn
Gerrit-Branch: master
Gerrit-Change-Id: If9682fe343e9a1e78175a12538fb80d4bda54802
Gerrit-Change-Number: 15256
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <[email protected]>
Gerrit-MessageType: newchange

Reply via email to