pespin has submitted this change. (
https://gerrit.osmocom.org/c/libosmo-sigtran/+/41511?usp=email )
Change subject: ss7_as_vty: Forbid configuring RKM-dynamically allocated AS
......................................................................
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(-)
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
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 https://gerrit.osmocom.org/c/libosmo-sigtran/+/41511?usp=email
To unsubscribe, or for help writing mail filters, visit
https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: merged
Gerrit-Project: libosmo-sigtran
Gerrit-Branch: master
Gerrit-Change-Id: Ia0c3ce39337de3a10ff0215ccec72c65fab13029
Gerrit-Change-Number: 41511
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <[email protected]>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: daniel <[email protected]>
Gerrit-Reviewer: fixeria <[email protected]>
Gerrit-Reviewer: pespin <[email protected]>