pespin submitted this change.

View Change

Approvals: Jenkins Builder: Verified fixeria: Looks good to me, but someone else must approve daniel: Looks good to me, but someone else must approve pespin: Looks good to me, approved
ss7_as_vty: Forbid configuring RKM-dynamically allocated AS

Change-Id: Ia0c3ce39337de3a10ff0215ccec72c65fab13029
---
M src/ss7_as_vty.c
1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/src/ss7_as_vty.c b/src/ss7_as_vty.c
index 87ea26b..d88c9b4 100644
--- a/src/ss7_as_vty.c
+++ b/src/ss7_as_vty.c
@@ -71,10 +71,14 @@

as = osmo_ss7_as_find_or_create(inst, name, protocol);
if (!as) {
- vty_out(vty, "cannot create AS '%s'%s", name, VTY_NEWLINE);
+ vty_out(vty, "Cannot create AS '%s'%s", name, VTY_NEWLINE);
return CMD_WARNING;
}

+ if (as->rkm_dyn_allocated) {
+ vty_out(vty, "Cannot configure RKM-dynamically allocated AS '%s'%s", name, VTY_NEWLINE);
+ return CMD_WARNING;
+ }

vty->node = L_CS7_AS_NODE;
vty->index = as;

To view, visit change 41511. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-MessageType: merged
Gerrit-Project: libosmo-sigtran
Gerrit-Branch: master
Gerrit-Change-Id: Ia0c3ce39337de3a10ff0215ccec72c65fab13029
Gerrit-Change-Number: 41511
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <pespin@sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: daniel <dwillmann@sysmocom.de>
Gerrit-Reviewer: fixeria <vyanitskiy@sysmocom.de>
Gerrit-Reviewer: pespin <pespin@sysmocom.de>