diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-08-26 15:38:42 +0800 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-08-26 16:55:37 +0800 |
commit | 7a2c86b67d6df9bc0ff132211f4fc6608f44131b (patch) | |
tree | decbc1beeb5249c00e90fbe779bb26479cc5fadb /openbsc/src/common_vty.c | |
parent | 2c869efcd3e01d7c111526a3efc140fae5b843af (diff) |
vty: Provide a is_config_node for the VTY and use it for the bsc
Right now only bsc_hack and osmo_bsc need to have a custom
config handling as they use the subscr/oml nodes.
Diffstat (limited to 'openbsc/src/common_vty.c')
-rw-r--r-- | openbsc/src/common_vty.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/openbsc/src/common_vty.c b/openbsc/src/common_vty.c index 3c257a871..9d2214675 100644 --- a/openbsc/src/common_vty.c +++ b/openbsc/src/common_vty.c @@ -185,3 +185,15 @@ gDEFUN(ournode_end, return CMD_SUCCESS; } +int bsc_vty_is_config_node(struct vty *vty, int node) +{ + switch (node) { + /* add items that are not config */ + case OML_NODE: + case SUBSCR_NODE: + return 0; + + default: + return 1; + } +} |