nat: Two fixes for the write memory case...
Add new BSCs to the tail so we keep the sort order when writing them out to the vty, fix the LAC command.
This commit is contained in:
parent
8bdcf55b22
commit
d1278c1fc9
|
@ -74,7 +74,7 @@ struct bsc_config *bsc_config_alloc(struct bsc_nat *nat, const char *token, unsi
|
|||
conf->nr = nat->num_bsc;
|
||||
conf->nat = nat;
|
||||
|
||||
llist_add(&conf->entry, &nat->bsc_configs);
|
||||
llist_add_tail(&conf->entry, &nat->bsc_configs);
|
||||
++nat->num_bsc;
|
||||
|
||||
conf->stats.sccp.conn = counter_alloc("nat.bsc.sccp.conn");
|
||||
|
|
|
@ -62,7 +62,7 @@ static void config_write_bsc_single(struct vty *vty, struct bsc_config *bsc)
|
|||
{
|
||||
vty_out(vty, " bsc %u%s", bsc->nr, VTY_NEWLINE);
|
||||
vty_out(vty, " token %s%s", bsc->token, VTY_NEWLINE);
|
||||
vty_out(vty, " lac %u%s", bsc->lac, VTY_NEWLINE);
|
||||
vty_out(vty, " location_area_code %u%s", bsc->lac, VTY_NEWLINE);
|
||||
if (bsc->imsi_allow)
|
||||
vty_out(vty, " imsi allow %s%s", bsc->imsi_allow, VTY_NEWLINE);
|
||||
if (bsc->imsi_deny)
|
||||
|
|
Loading…
Reference in New Issue