From 251151ffb6afa263f9c6e0da955b16128cec9f33 Mon Sep 17 00:00:00 2001
From: chliu-nems <87927057+chliu-nems@users.noreply.github.com>
Date: Sun, 24 Oct 2021 23:40:24 +0800
Subject: [PATCH] Support to modify SQN (#12)

---
 .../pages/Subscribers/components/SubscriberModal.js    | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/frontend/src/pages/Subscribers/components/SubscriberModal.js b/frontend/src/pages/Subscribers/components/SubscriberModal.js
index 3cd065f..24ba206 100644
--- a/frontend/src/pages/Subscribers/components/SubscriberModal.js
+++ b/frontend/src/pages/Subscribers/components/SubscriberModal.js
@@ -193,6 +193,7 @@ class SubscriberModal extends Component {
       "K",
       "OPOPcSelect",
       "OPOPc",
+      "SQN",
     ],
     properties: {
       plmnID: {
@@ -231,6 +232,12 @@ class SubscriberModal extends Component {
         pattern: "^[A-Fa-f0-9]{32}$",
         default: "8e27b6af0e692e750f32667a3b14605d",
       },
+      SQN: {
+        type: "string",
+        title: "SQN",
+        pattern: "^[A-Fa-f0-9]{1,12}$",
+        default: "16f3b3f70fc2",
+      },
       sliceConfigurations: {
         type: "array",
         title: "S-NSSAI Configuration",
@@ -472,6 +479,7 @@ class SubscriberModal extends Component {
           OPOPcSelect: isOp ? "OP" : "OPc",
           OPOPc: isOp ? subscriber['AuthenticationSubscription']["milenage"]["op"]["opValue"] :
             subscriber['AuthenticationSubscription']["opc"]["opcValue"],
+          SQN: subscriber['AuthenticationSubscription']["sequenceNumber"],
           sliceConfigurations: sliceConfigurationsFromSubscriber(subscriber),
         };
 
@@ -542,7 +550,7 @@ class SubscriberModal extends Component {
           "encryptionKey": 0,
           "permanentKeyValue": formData["K"] // Change required
         },
-        "sequenceNumber": "16f3b3f70fc2",
+        "sequenceNumber": formData["SQN"],
       },
       "AccessAndMobilitySubscriptionData": {
         "gpsis": [
-- 
GitLab