forked from cellular-infrastructure/osmo-pcu
edge: Show current mode in VTY
Add the current mode to the output of the 'show ms imsi' and 'show ms tlli' commands. Sponsored-by: On-Waves ehf
This commit is contained in:
parent
cb7289094a
commit
7b57997874
|
@ -176,3 +176,13 @@ void GprsCodingScheme::dec()
|
|||
|
||||
m_scheme = Scheme(m_scheme - 1);
|
||||
}
|
||||
|
||||
const char *GprsCodingScheme::modeName(Mode mode)
|
||||
{
|
||||
switch (mode) {
|
||||
case GPRS: return "GPRS";
|
||||
case EGPRS_GMSK: return "EGPRS_GMSK-only";
|
||||
case EGPRS: return "EGPRS";
|
||||
default: return "???";
|
||||
}
|
||||
}
|
||||
|
|
|
@ -87,6 +87,7 @@ public:
|
|||
static GprsCodingScheme getGprsByNum(unsigned num);
|
||||
static GprsCodingScheme getEgprsByNum(unsigned num);
|
||||
|
||||
static const char *modeName(Mode mode);
|
||||
private:
|
||||
enum Scheme m_scheme;
|
||||
};
|
||||
|
|
|
@ -107,6 +107,8 @@ static int show_ms(struct vty *vty, GprsMs *ms)
|
|||
VTY_NEWLINE);
|
||||
vty_out(vty, " Coding scheme downlink: %s%s", ms->current_cs_dl().name(),
|
||||
VTY_NEWLINE);
|
||||
vty_out(vty, " Mode: %s%s",
|
||||
GprsCodingScheme::modeName(ms->mode()), VTY_NEWLINE);
|
||||
vty_out(vty, " MS class: %d%s", ms->ms_class(), VTY_NEWLINE);
|
||||
vty_out(vty, " EGPRS MS class: %d%s", ms->egprs_ms_class(), VTY_NEWLINE);
|
||||
vty_out(vty, " LLC queue length: %d%s", ms->llc_queue()->size(),
|
||||
|
|
Loading…
Reference in New Issue