-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfree5gc-v311-install.yml
2302 lines (2139 loc) · 144 KB
/
free5gc-v311-install.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
---
- hosts: 127.0.0.1
connection: local
become: yes
remote_user: root
vars:
build_webconsole: "false"
install_n3iwf: "false"
GTP5G_DIR_INSTALL : "/root/gtp5g"
FREE5GC_DIR_INSTALL : "/root/go/src/free5gc"
UPF_DIR_CONFIG : "/root/go/src/free5gc/NFs/upf/build/config"
WEB_CONSOLE_FRONTEND_DIR : "/root/go/src/free5gc/webconsole/frontend"
WEB_CONSOLE_BASE_DIR : "/root/go/src/free5gc/webconsole"
NFS_DIR_CONFIG : "/root/go/src/free5gc/config"
NRF_DIR : "/root/go/src/free5gc/NFs/nrf"
UDR_DIR : "/root/go/src/free5gc/NFs/udr"
UDM_DIR : "/root/go/src/free5gc/NFs/udm"
AUSF_DIR : "/root/go/src/free5gc/NFs/ausf"
NSSF_DIR : "/root/go/src/free5gc/NFs/nssf"
AMF_DIR : "/root/go/src/free5gc/NFs/amf"
PCF_DIR : "/root/go/src/free5gc/NFs/pcf"
SMF_DIR : "/root/go/src/free5gc/NFs/smf"
N3IWF_DIR : "/root/go/src/free5gc/NFs/n3iwf"
GO_SRC_DIR : "/root/go/src"
HOME_DIR: "/root"
FREE5GC_GIT_CHECKOUT_URL_FREEGC_TAG_VERSION: "--recursive -b v3.1.1 -j `nproc` https://github.com/free5gc/free5gc.git"
FREE5GC_CHECKOUT_FOLDER_NAME: "free5gc"
GTP5G_VERSION: "v0.8.2"
PREDEFINED_IP_ADDRESS: "true"
MONGO_URL_CONNECTION: "mongodb://127.0.0.1:27017"
NRF_IP_ADDRESS: "127.0.0.10"
NRF_PORT: "8000"
UDR_IP_ADDRESS: "127.0.0.4"
UDR_PORT: "8000"
UDM_IP_ADDRESS: "127.0.0.3"
UDM_PORT: "8000"
AUSF_IP_ADDRESS: "127.0.0.9"
AUSF_PORT: "8000"
NSSF_IP_ADDRESS: "127.0.0.31"
NSSF_PORT: "8000"
AMF_NGAP_IP_ADDRESS: "10.10.10.2"
AMF_IP_ADDRESS: "127.0.0.18"
AMF_PORT: "8000"
PCF_IP_ADDRESS: "127.0.0.7"
PCF_PORT: "8000"
SMF_N3_INTERFACE_IP_ADDRESS: "10.10.10.2"
SMF_N4_INTERFACE_IP_ADDRESS: "10.10.10.2"
GTPU_UPF_IP_ADDRESS: "10.10.10.2"
UPF_CLASSLESS_IPV4_POOL_UE : "60.60.0.0/24"
SMF_IP_ADDRESS: "127.0.0.2"
SMF_PORT: "8000"
UPF_IP_ADDRESS: "127.0.0.8"
N3IWF_AMF_SCTP_PORT: "38412"
N3IWF_IKE_BIND_ADDRESS: "127.0.0.21"
N3IWF_IP_SEC_INTERFACE_ADDRESS: "10.0.0.1"
N3IWF_UE_IP_ADDRESS_RANGE: "10.0.0.0/24"
N3IWF_GTP_BIND_ADDRESS: "10.200.200.2"
N3IWF_IP_SEC_INTERFACE_MARK: "5"
N3IWF_NAS_TCP_PORT: "20000"
tasks:
- fail:
msg: "'internet_network_interface' not found, this parameter is required!"
when: internet_network_interface == ''
- name: Environment validation!
assert:
that:
- ansible_memtotal_mb >= 500
msg: "Minimum memory requirements in the deployment environment is 4GB! Operation failed!"
- set_fact:
AMF_NGAP_IP_ADDRESS: "{{ ansible_default_ipv4.address }}"
N3IWF_IKE_BIND_ADDRESS: "{{ ansible_default_ipv4.address }}"
N3IWF_GTP_BIND_ADDRESS: "{{ ansible_default_ipv4.address }}"
SMF_N3_INTERFACE_IP_ADDRESS: "{{ ansible_default_ipv4.address }}"
SMF_N4_INTERFACE_IP_ADDRESS: "{{ ansible_default_ipv4.address }}"
GTPU_UPF_IP_ADDRESS: "{{ ansible_default_ipv4.address }}"
when: PREDEFINED_IP_ADDRESS == 'false'
- name: Upgrade all apt packages
apt: upgrade=dist force_apt_get=yes
- name: Install Basic requirements
apt:
name: ['mongodb', 'wget', 'git', 'ca-certificates', 'net-tools', 'gcc', 'cmake', 'autoconf', 'build-essential', 'libtool', 'pkg-config', 'libmnl-dev', 'libyaml-dev', 'curl']
state: present
update_cache: yes
- name: Start Mongo-DB
shell: sudo systemctl start mongodb
- name: Install WebConsole front-end dependencies - 1/3
shell : |
sudo apt update && sudo apt -y install yarn
- name: Remove NodeJS Old version - 2/3
shell : |
sudo apt-get purge --auto-remove nodejs -y
sudo apt-get purge nodejs -y
sudo apt-get autoremove
- name: Install NodeJS 14 - 3/3
shell : |
sudo apt -y install curl dirmngr apt-transport-https lsb-release
curl -sL https://deb.nodesource.com/setup_14.x | sudo -E bash -
sudo apt -y install nodejs
- name: Remove GTP5G (if exists)
shell: sudo rm -rf {{ GTP5G_DIR_INSTALL }}
ignore_errors: true
- name: Remove free5GC dir (if exists)
shell: sudo rm -rf {{ FREE5GC_DIR_INSTALL }}
ignore_errors: true
# - name: User-plane Supporting Packages
# shell: go get -u github.com/sirupsen/logrus
- name : Git Clone GTP5
shell : git clone -b {{ GTP5G_VERSION }} https://github.com/free5gc/gtp5g.git
args:
chdir: "{{ HOME_DIR }}"
- name : Run 'Make' into GTP5G
shell : make clean && make
args:
chdir: "{{ GTP5G_DIR_INSTALL }}"
- name : Install GTP5G
shell : sudo make install
args:
chdir: "{{ GTP5G_DIR_INSTALL }}"
ignore_errors: true
- name : Network Setting 1/4
shell : sudo sysctl -w net.ipv4.ip_forward=1
- name : Network Setting 2/4
shell : sudo iptables -t nat -A POSTROUTING -o {{ internet_network_interface }} -j MASQUERADE
- name : Network Setting 3/4
shell : sudo iptables -A FORWARD -p tcp -m tcp --tcp-flags SYN,RST SYN -j TCPMSS --set-mss 1400
- name : Network Setting 4/4
shell : sudo systemctl stop ufw
- name : Remove Free5gc old dir if exist
shell : rm -rf {{ FREE5GC_CHECKOUT_FOLDER_NAME }}
args:
chdir: "{{ GO_SRC_DIR }}"
ignore_errors: true
- name : Git Clone by free5gc TAG Version
shell : git clone {{ FREE5GC_GIT_CHECKOUT_URL_FREEGC_TAG_VERSION }} {{ FREE5GC_CHECKOUT_FOLDER_NAME }}
args:
chdir: "{{ GO_SRC_DIR }}"
- name : Create NRF config dir
shell : |
mkdir config
mkdir config/TLS
args:
chdir: "{{ NRF_DIR }}"
- name : Copy NRF cert's 1/2
fetch: src={{ GO_SRC_DIR }}/{{ FREE5GC_CHECKOUT_FOLDER_NAME }}/config/TLS/nrf.pem dest={{ GO_SRC_DIR }}/{{ FREE5GC_CHECKOUT_FOLDER_NAME }}/NFs/nrf/config/TLS/ flat=yes
- name : Copy NRF cert's 2/2
fetch: src={{ GO_SRC_DIR }}/{{ FREE5GC_CHECKOUT_FOLDER_NAME }}/config/TLS/nrf.key dest={{ GO_SRC_DIR }}/{{ FREE5GC_CHECKOUT_FOLDER_NAME }}/NFs/nrf/config/TLS/ flat=yes
- name : Remove NRF default config file
shell : rm nrfcfg.yaml
args:
chdir: "{{ NFS_DIR_CONFIG }}"
- name : Build nrfcfg.yaml config file into base config dir
copy:
dest: "{{ NFS_DIR_CONFIG }}/nrfcfg.yaml"
content: |
info:
version: 1.0.1
description: NRF initial local configuration
configuration:
MongoDBName: free5gc # database name in MongoDB
MongoDBUrl: {{ MONGO_URL_CONNECTION }} # a valid URL of the mongodb
sbi: # Service-based interface information
scheme: http # the protocol for sbi (http or https)
registerIPv4: {{ NRF_IP_ADDRESS }} # IP used to serve NFs or register to another NRF
bindingIPv4: {{ NRF_IP_ADDRESS }} # IP used to bind the service
port: {{ NRF_PORT }} # port used to bind the service
tls: # the local path of TLS key
pem: config/TLS/nrf.pem # NRF TLS Certificate
key: config/TLS/nrf.key # NRF TLS Private key
DefaultPlmnId:
mcc: 208 # Mobile Country Code (3 digits string, digit: 0~9)
mnc: 93 # Mobile Network Code (2 or 3 digits string, digit: 0~9)
serviceNameList: # the SBI services provided by this NRF, refer to TS 29.510
- nnrf-nfm # Nnrf_NFManagement service
- nnrf-disc # Nnrf_NFDiscovery service
# the kind of log output
# debugLevel: how detailed to output, value: trace, debug, info, warn, error, fatal, panic
# ReportCaller: enable the caller report or not, value: true or false
logger:
NRF:
debugLevel: info
ReportCaller: false
- name : Build nrfcfg.yaml config file
copy:
dest: "{{ NRF_DIR }}/config/nrfcfg.yaml"
content: |
info:
version: 1.0.1
description: NRF initial local configuration
configuration:
MongoDBName: free5gc # database name in MongoDB
MongoDBUrl: {{ MONGO_URL_CONNECTION }} # a valid URL of the mongodb
sbi: # Service-based interface information
scheme: http # the protocol for sbi (http or https)
registerIPv4: {{ NRF_IP_ADDRESS }} # IP used to serve NFs or register to another NRF
bindingIPv4: {{ NRF_IP_ADDRESS }} # IP used to bind the service
port: {{ NRF_PORT }} # port used to bind the service
tls: # the local path of TLS key
pem: config/TLS/nrf.pem # NRF TLS Certificate
key: config/TLS/nrf.key # NRF TLS Private key
DefaultPlmnId:
mcc: 208 # Mobile Country Code (3 digits string, digit: 0~9)
mnc: 93 # Mobile Network Code (2 or 3 digits string, digit: 0~9)
serviceNameList: # the SBI services provided by this NRF, refer to TS 29.510
- nnrf-nfm # Nnrf_NFManagement service
- nnrf-disc # Nnrf_NFDiscovery service
# the kind of log output
# debugLevel: how detailed to output, value: trace, debug, info, warn, error, fatal, panic
# ReportCaller: enable the caller report or not, value: true or false
logger:
NRF:
debugLevel: info
ReportCaller: false
- name : Create UDR config dir
shell : |
mkdir config
mkdir config/TLS
args:
chdir: "{{ UDR_DIR }}"
- name : Copy UDR cert's 1/2
fetch: src={{ GO_SRC_DIR }}/{{ FREE5GC_CHECKOUT_FOLDER_NAME }}/config/TLS/udr.pem dest={{ GO_SRC_DIR }}/{{ FREE5GC_CHECKOUT_FOLDER_NAME }}/NFs/udr/config/TLS/ flat=yes
- name : Copy UDR cert's 2/2
fetch: src={{ GO_SRC_DIR }}/{{ FREE5GC_CHECKOUT_FOLDER_NAME }}/config/TLS/udr.key dest={{ GO_SRC_DIR }}/{{ FREE5GC_CHECKOUT_FOLDER_NAME }}/NFs/udr/config/TLS/ flat=yes
- name : Remove UDR default config file
shell : rm udrcfg.yaml
args:
chdir: "{{ NFS_DIR_CONFIG }}"
- name : Build udrcfg.yaml config file into base config dir
copy:
dest: "{{ NFS_DIR_CONFIG }}/udrcfg.yaml"
content: |
info:
version: 1.0.1
description: UDR initial local configuration
configuration:
sbi: # Service-based interface information
scheme: http # the protocol for sbi (http or https)
registerIPv4: {{ UDR_IP_ADDRESS }} # IP used to register to NRF
bindingIPv4: {{ UDR_IP_ADDRESS }} # IP used to bind the service
port: {{ UDR_PORT }} # port used to bind the service
tls: # the local path of TLS key
pem: config/TLS/udr.pem # UDR TLS Certificate
key: config/TLS/udr.key # UDR TLS Private key
mongodb:
name: free5gc # Database name in MongoDB
url: {{ MONGO_URL_CONNECTION }} # URL of MongoDB
nrfUri: http://{{ NRF_IP_ADDRESS }}:{{ NRF_PORT }} # a valid URI of NRF
# the kind of log output
# debugLevel: how detailed to output, value: trace, debug, info, warn, error, fatal, panic
# ReportCaller: enable the caller report or not, value: true or false
logger:
UDR:
debugLevel: info
ReportCaller: false
- name : Build udrcfg.yaml config file
copy:
dest: "{{ UDR_DIR }}/config/udrcfg.yaml"
content: |
info:
version: 1.0.1
description: UDR initial local configuration
configuration:
sbi: # Service-based interface information
scheme: http # the protocol for sbi (http or https)
registerIPv4: {{ UDR_IP_ADDRESS }} # IP used to register to NRF
bindingIPv4: {{ UDR_IP_ADDRESS }} # IP used to bind the service
port: {{ UDR_PORT }} # port used to bind the service
tls: # the local path of TLS key
pem: config/TLS/udr.pem # UDR TLS Certificate
key: config/TLS/udr.key # UDR TLS Private key
mongodb:
name: free5gc # Database name in MongoDB
url: {{ MONGO_URL_CONNECTION }} # URL of MongoDB
nrfUri: http://{{ NRF_IP_ADDRESS }}:{{ NRF_PORT }} # a valid URI of NRF
# the kind of log output
# debugLevel: how detailed to output, value: trace, debug, info, warn, error, fatal, panic
# ReportCaller: enable the caller report or not, value: true or false
logger:
UDR:
debugLevel: info
ReportCaller: false
- name : Create UDM config dir
shell : |
mkdir config
mkdir config/TLS
args:
chdir: "{{ UDM_DIR }}"
- name : Copy UDM cert's 1/2
fetch: src={{ GO_SRC_DIR }}/{{ FREE5GC_CHECKOUT_FOLDER_NAME }}/config/TLS/udm.pem dest={{ GO_SRC_DIR }}/{{ FREE5GC_CHECKOUT_FOLDER_NAME }}/NFs/udm/config/TLS/ flat=yes
- name : Copy UDM cert's 2/2
fetch: src={{ GO_SRC_DIR }}/{{ FREE5GC_CHECKOUT_FOLDER_NAME }}/config/TLS/udm.key dest={{ GO_SRC_DIR }}/{{ FREE5GC_CHECKOUT_FOLDER_NAME }}/NFs/udm/config/TLS/ flat=yes
- name : Remove UDM default config file
shell : rm udmcfg.yaml
args:
chdir: "{{ NFS_DIR_CONFIG }}"
- name : Build udmcfg.yaml config file into base config dir
copy:
dest: "{{ NFS_DIR_CONFIG }}/udmcfg.yaml"
content: |
info:
version: 1.0.2
description: UDM initial local configuration
configuration:
serviceNameList: # the SBI services provided by this UDM, refer to TS 29.503
- nudm-sdm # Nudm_SubscriberDataManagement service
- nudm-uecm # Nudm_UEContextManagement service
- nudm-ueau # Nudm_UEAuthenticationManagement service
- nudm-ee # Nudm_EventExposureManagement service
- nudm-pp # Nudm_ParameterProvisionDataManagement service
sbi: # Service-based interface information
scheme: http # the protocol for sbi (http or https)
registerIPv4: {{ UDM_IP_ADDRESS }} # IP used to register to NRF
bindingIPv4: {{ UDM_IP_ADDRESS }} # IP used to bind the service
port: {{ UDM_PORT }} # Port used to bind the service
tls: # the local path of TLS key
pem: config/TLS/udm.pem # UDM TLS Certificate
key: config/TLS/udm.key # UDM TLS Private key
nrfUri: http://{{ NRF_IP_ADDRESS }}:{{ NRF_PORT }} # a valid URI of NRF
# test data set from TS33501-f60 Annex C.4
SuciProfile: # Home Network Public Key ID = slice index +1
- ProtectionScheme: 1 # Protect Scheme: Profile A
PrivateKey: c53c22208b61860b06c62e5406a7b330c2b577aa5558981510d128247d38bd1d
PublicKey: 5a8d38864820197c3394b92613b20b91633cbd897119273bf8e4a6f4eec0a650
- ProtectionScheme: 2 # Protect Scheme: Profile B
PrivateKey: F1AB1074477EBCC7F554EA1C5FC368B1616730155E0041AC447D6301975FECDA
PublicKey: 0472DA71976234CE833A6907425867B82E074D44EF907DFB4B3E21C1C2256EBCD15A7DED52FCBB097A4ED250E036C7B9C8C7004C4EEDC4F068CD7BF8D3F900E3B4
# the kind of log output
# debugLevel: how detailed to output, value: trace, debug, info, warn, error, fatal, panic
# ReportCaller: enable the caller report or not, value: true or false
logger:
UDM:
debugLevel: info
ReportCaller: false
- name : Build udmcfg.yaml config file
copy:
dest: "{{ UDM_DIR }}/config/udmcfg.yaml"
content: |
info:
version: 1.0.2
description: UDM initial local configuration
configuration:
serviceNameList: # the SBI services provided by this UDM, refer to TS 29.503
- nudm-sdm # Nudm_SubscriberDataManagement service
- nudm-uecm # Nudm_UEContextManagement service
- nudm-ueau # Nudm_UEAuthenticationManagement service
- nudm-ee # Nudm_EventExposureManagement service
- nudm-pp # Nudm_ParameterProvisionDataManagement service
sbi: # Service-based interface information
scheme: http # the protocol for sbi (http or https)
registerIPv4: {{ UDM_IP_ADDRESS }} # IP used to register to NRF
bindingIPv4: {{ UDM_IP_ADDRESS }} # IP used to bind the service
port: {{ UDM_PORT }} # Port used to bind the service
tls: # the local path of TLS key
pem: config/TLS/udm.pem # UDM TLS Certificate
key: config/TLS/udm.key # UDM TLS Private key
nrfUri: http://{{ NRF_IP_ADDRESS }}:{{ NRF_PORT }} # a valid URI of NRF
# test data set from TS33501-f60 Annex C.4
SuciProfile: # Home Network Public Key ID = slice index +1
- ProtectionScheme: 1 # Protect Scheme: Profile A
PrivateKey: c53c22208b61860b06c62e5406a7b330c2b577aa5558981510d128247d38bd1d
PublicKey: 5a8d38864820197c3394b92613b20b91633cbd897119273bf8e4a6f4eec0a650
- ProtectionScheme: 2 # Protect Scheme: Profile B
PrivateKey: F1AB1074477EBCC7F554EA1C5FC368B1616730155E0041AC447D6301975FECDA
PublicKey: 0472DA71976234CE833A6907425867B82E074D44EF907DFB4B3E21C1C2256EBCD15A7DED52FCBB097A4ED250E036C7B9C8C7004C4EEDC4F068CD7BF8D3F900E3B4
# the kind of log output
# debugLevel: how detailed to output, value: trace, debug, info, warn, error, fatal, panic
# ReportCaller: enable the caller report or not, value: true or false
logger:
UDM:
debugLevel: info
ReportCaller: false
- name : Create AUSF config dir
shell : |
mkdir config
mkdir config/TLS
args:
chdir: "{{ AUSF_DIR }}"
- name : Copy AUSF cert's 1/2
fetch: src={{ GO_SRC_DIR }}/{{ FREE5GC_CHECKOUT_FOLDER_NAME }}/config/TLS/ausf.pem dest={{ GO_SRC_DIR }}/{{ FREE5GC_CHECKOUT_FOLDER_NAME }}/NFs/ausf/config/TLS/ flat=yes
- name : Copy AUSF cert's 2/2
fetch: src={{ GO_SRC_DIR }}/{{ FREE5GC_CHECKOUT_FOLDER_NAME }}/config/TLS/ausf.key dest={{ GO_SRC_DIR }}/{{ FREE5GC_CHECKOUT_FOLDER_NAME }}/NFs/ausf/config/TLS/ flat=yes
- name : Remove AUSF default config file
shell : rm ausfcfg.yaml
args:
chdir: "{{ NFS_DIR_CONFIG }}"
- name : Build ausf.yaml config file into base config dir
copy:
dest: "{{ NFS_DIR_CONFIG }}/ausfcfg.yaml"
content: |
info:
version: 1.0.2
description: AUSF initial local configuration
configuration:
sbi: # Service-based interface information
scheme: http # the protocol for sbi (http or https)
registerIPv4: {{ AUSF_IP_ADDRESS }} # IP used to register to NRF
bindingIPv4: {{ AUSF_IP_ADDRESS }} # IP used to bind the service
port: {{ AUSF_PORT }} # Port used to bind the service
tls: # the local path of TLS key
pem: config/TLS/ausf.pem # AUSF TLS Certificate
key: config/TLS/ausf.key # AUSF TLS Private key
serviceNameList: # the SBI services provided by this AUSF, refer to TS 29.509
- nausf-auth # Nausf_UEAuthentication service
nrfUri: http://{{ NRF_IP_ADDRESS }}:{{ NRF_PORT }} # a valid URI of NRF
plmnSupportList: # the PLMNs (Public Land Mobile Network) list supported by this AUSF
- mcc: 208 # Mobile Country Code (3 digits string, digit: 0~9)
mnc: 93 # Mobile Network Code (2 or 3 digits string, digit: 0~9)
- mcc: 123 # Mobile Country Code (3 digits string, digit: 0~9)
mnc: 45 # Mobile Network Code (2 or 3 digits string, digit: 0~9)
groupId: ausfGroup001 # ID for the group of the AUSF
eapAkaSupiImsiPrefix: false # including "imsi-" prefix or not when using the SUPI to do EAP-AKA' authentication
# the kind of log output
# debugLevel: how detailed to output, value: trace, debug, info, warn, error, fatal, panic
# ReportCaller: enable the caller report or not, value: true or false
logger:
AUSF:
debugLevel: info
ReportCaller: false
- name : Build ausf.yaml config file
copy:
dest: "{{ AUSF_DIR }}/config/ausfcfg.yaml"
content: |
info:
version: 1.0.2
description: AUSF initial local configuration
configuration:
sbi: # Service-based interface information
scheme: http # the protocol for sbi (http or https)
registerIPv4: {{ AUSF_IP_ADDRESS }} # IP used to register to NRF
bindingIPv4: {{ AUSF_IP_ADDRESS }} # IP used to bind the service
port: {{ AUSF_PORT }} # Port used to bind the service
tls: # the local path of TLS key
pem: config/TLS/ausf.pem # AUSF TLS Certificate
key: config/TLS/ausf.key # AUSF TLS Private key
serviceNameList: # the SBI services provided by this AUSF, refer to TS 29.509
- nausf-auth # Nausf_UEAuthentication service
nrfUri: http://{{ NRF_IP_ADDRESS }}:{{ NRF_PORT }} # a valid URI of NRF
plmnSupportList: # the PLMNs (Public Land Mobile Network) list supported by this AUSF
- mcc: 208 # Mobile Country Code (3 digits string, digit: 0~9)
mnc: 93 # Mobile Network Code (2 or 3 digits string, digit: 0~9)
- mcc: 123 # Mobile Country Code (3 digits string, digit: 0~9)
mnc: 45 # Mobile Network Code (2 or 3 digits string, digit: 0~9)
groupId: ausfGroup001 # ID for the group of the AUSF
eapAkaSupiImsiPrefix: false # including "imsi-" prefix or not when using the SUPI to do EAP-AKA' authentication
# the kind of log output
# debugLevel: how detailed to output, value: trace, debug, info, warn, error, fatal, panic
# ReportCaller: enable the caller report or not, value: true or false
logger:
AUSF:
debugLevel: info
ReportCaller: false
- name : Create NSSF config dir
shell : |
mkdir config
mkdir config/TLS
args:
chdir: "{{ NSSF_DIR }}"
- name : Copy NSSF cert's 1/2
fetch: src={{ GO_SRC_DIR }}/{{ FREE5GC_CHECKOUT_FOLDER_NAME }}/config/TLS/nssf.pem dest={{ GO_SRC_DIR }}/{{ FREE5GC_CHECKOUT_FOLDER_NAME }}/NFs/nssf/config/TLS/ flat=yes
- name : Copy NSSF cert's 2/2
fetch: src={{ GO_SRC_DIR }}/{{ FREE5GC_CHECKOUT_FOLDER_NAME }}/config/TLS/nssf.key dest={{ GO_SRC_DIR }}/{{ FREE5GC_CHECKOUT_FOLDER_NAME }}/NFs/nssf/config/TLS/ flat=yes
- name : Remove NSSF default config file
shell : rm nssfcfg.yaml
args:
chdir: "{{ NFS_DIR_CONFIG }}"
- name : Build nssfcfg.yaml config file into base config dir
copy:
dest: "{{ NFS_DIR_CONFIG }}/nssfcfg.yaml"
content: |
info:
version: 1.0.1
description: NSSF initial local configuration
configuration:
nssfName: NSSF # the name of this NSSF
sbi: # Service-based interface information
scheme: http # the protocol for sbi (http or https)
registerIPv4: {{ NSSF_IP_ADDRESS }} # IP used to register to NRF
bindingIPv4: {{ NSSF_IP_ADDRESS }} # IP used to bind the service
port: {{ NSSF_PORT }} # Port used to bind the service
tls: # the local path of TLS key
pem: config/TLS/nssf.pem # NSSF TLS Certificate
key: config/TLS/nssf.key # NSSF TLS Private key
serviceNameList: # the SBI services provided by this SMF, refer to TS 29.531
- nnssf-nsselection # Nnssf_NSSelection service
- nnssf-nssaiavailability # Nnssf_NSSAIAvailability service
nrfUri: http://{{ NRF_IP_ADDRESS }}:{{ NRF_PORT }} # a valid URI of NRF
supportedPlmnList: # the PLMNs (Public land mobile network) list supported by this NSSF
- mcc: 208 # Mobile Country Code (3 digits string, digit: 0~9)
mnc: 93 # Mobile Network Code (2 or 3 digits string, digit: 0~9)
supportedNssaiInPlmnList: # Supported S-NSSAI List for each PLMN
- plmnId: # Public Land Mobile Network ID, <PLMN ID> = <MCC><MNC>
mcc: 208 # Mobile Country Code (3 digits string, digit: 0~9)
mnc: 93 # Mobile Network Code (2 or 3 digits string, digit: 0~9)
supportedSnssaiList: # Supported S-NSSAIs of the PLMN
- sst: 1 # Slice/Service Type (uinteger, range: 0~255)
sd: 010203 # Slice Differentiator (3 bytes hex string, range: 000000~FFFFFF)
- sst: 1 # Slice/Service Type (uinteger, range: 0~255)
sd: 112233 # Slice Differentiator (3 bytes hex string, range: 000000~FFFFFF)
- sst: 1 # Slice/Service Type (uinteger, range: 0~255)
sd: 000003 # Slice Differentiator (3 bytes hex string, range: 000000~FFFFFF)
- sst: 2 # Slice/Service Type (uinteger, range: 0~255)
sd: 000001 # Slice Differentiator (3 bytes hex string, range: 000000~FFFFFF)
- sst: 2 # Slice/Service Type (uinteger, range: 0~255)
sd: 000002 # Slice Differentiator (3 bytes hex string, range: 000000~FFFFFF)
nsiList: # List of available Network Slice Instance (NSI)
- snssai: # S-NSSAI of this NSI
sst: 1 # Slice/Service Type (uinteger, range: 0~255)
nsiInformationList: # Information list of this NSI
# the NRF to be used to select the NFs/services within the selected NSI, and an optonal ID
- nrfId: http://{{ NRF_IP_ADDRESS }}:{{ NRF_PORT }}/nnrf-nfm/v1/nf-instances
nsiId: 10
- snssai: # S-NSSAI of this NSI
sst: 1 # Slice/Service Type (uinteger, range: 0~255)
sd: 000001 # Slice Differentiator (3 bytes hex string, range: 000000~FFFFFF)
nsiInformationList: # Information list of this NSI
# the NRF to be used to select the NFs/services within the selected NSI, and an optonal ID
- nrfId: http://{{ NRF_IP_ADDRESS }}:{{ NRF_PORT }}/nnrf-nfm/v1/nf-instances
nsiId: 11
- snssai: # S-NSSAI of this NSI
sst: 1 # Slice/Service Type (uinteger, range: 0~255)
sd: 000002 # Slice Differentiator (3 bytes hex string, range: 000000~FFFFFF)
nsiInformationList: # Information list of this NSI
# the NRF to be used to select the NFs/services within the selected NSI, and an optonal ID
- nrfId: http://{{ NRF_IP_ADDRESS }}:{{ NRF_PORT }}/nnrf-nfm/v1/nf-instances
nsiId: 12
- nrfId: http://{{ NRF_IP_ADDRESS }}:{{ NRF_PORT }}/nnrf-nfm/v1/nf-instances
nsiId: 12
- snssai: # S-NSSAI of this NSI
sst: 1 # Slice/Service Type (uinteger, range: 0~255)
sd: 000003 # Slice Differentiator (3 bytes hex string, range: 000000~FFFFFF)
nsiInformationList: # Information list of this NSI
# the NRF to be used to select the NFs/services within the selected NSI, and an optonal ID
- nrfId: http://{{ NRF_IP_ADDRESS }}:{{ NRF_PORT }}/nnrf-nfm/v1/nf-instances
nsiId: 13
- snssai: # S-NSSAI of this NSI
sst: 2 # Slice/Service Type (uinteger, range: 0~255)
nsiInformationList: # Information list of this NSI
# the NRF to be used to select the NFs/services within the selected NSI, and an optonal ID
- nrfId: http://{{ NRF_IP_ADDRESS }}:{{ NRF_PORT }}/nnrf-nfm/v1/nf-instances
nsiId: 20
- snssai: # S-NSSAI of this NSI
sst: 2 # Slice/Service Type (uinteger, range: 0~255)
sd: 000001 # Slice Differentiator (3 bytes hex string, range: 000000~FFFFFF)
nsiInformationList: # Information list of this NSI
# the NRF to be used to select the NFs/services within the selected NSI, and an optonal ID
- nrfId: http://{{ NRF_IP_ADDRESS }}:{{ NRF_PORT }}/nnrf-nfm/v1/nf-instances
nsiId: 21
- snssai: # S-NSSAI of this NSI
sst: 1 # Slice/Service Type (uinteger, range: 0~255)
sd: 010203 # Slice Differentiator (3 bytes hex string, range: 000000~FFFFFF)
nsiInformationList: # Information list of this NSI
# the NRF to be used to select the NFs/services within the selected NSI, and an optonal ID
- nrfId: http://{{ NRF_IP_ADDRESS }}:{{ NRF_PORT }}/nnrf-nfm/v1/nf-instances
nsiId: 22
- snssai: # S-NSSAI of this NSI
sst: 1 # Slice/Service Type (uinteger, range: 0~255)
sd: 112233 # Slice Differentiator (3 bytes hex string, range: 000000~FFFFFF)
nsiInformationList: # Information list of this NSI
# the NRF to be used to select the NFs/services within the selected NSI, and an optonal ID
- nrfId: http://{{ NRF_IP_ADDRESS }}:{{ NRF_PORT }}/nnrf-nfm/v1/nf-instances
nsiId: 23
amfSetList: # List of AMF Sets that my be assigned by this NSSF
- amfSetId: 1 # the AMF Set identifier
amfList: # Instance ID of the AMFs in this set
- ffa2e8d7-3275-49c7-8631-6af1df1d9d26
- 0e8831c3-6286-4689-ab27-1e2161e15cb1
- a1fba9ba-2e39-4e22-9c74-f749da571d0d
# URI of the NRF used to determine the list of candidate AMF(s) from the AMF Set
nrfAmfSet: http://{{ NRF_IP_ADDRESS }}:{{ NRF_PORT }}/nnrf-nfm/v1/nf-instances
# the Nssai availability data information per TA supported by the AMF
supportedNssaiAvailabilityData:
- tai: # Tracking Area Identifier
plmnId: # Public Land Mobile Network ID, <PLMN ID> = <MCC><MNC>
mcc: 466 # Mobile Country Code (3 digits string, digit: 0~9)
mnc: 92 # Mobile Network Code (2 or 3 digits string, digit: 0~9)
tac: 33456 # Tracking Area Code (uinteger, range: 0~16777215)
supportedSnssaiList: # Supported S-NSSAIs of the tracking area
- sst: 1 # Slice/Service Type (uinteger, range: 0~255)
sd: 000001 # Slice Differentiator (3 bytes hex string, range: 000000~FFFFFF)
- sst: 1 # Slice/Service Type (uinteger, range: 0~255)
sd: 000002 # Slice Differentiator (3 bytes hex string, range: 000000~FFFFFF)
- sst: 2 # Slice/Service Type (uinteger, range: 0~255)
sd: 000001 # Slice Differentiator (3 bytes hex string, range: 000000~FFFFFF)
- tai: # Tracking Area Identifier
plmnId: # Public Land Mobile Network ID, <PLMN ID> = <MCC><MNC>
mcc: 466 # Mobile Country Code (3 digits string, digit: 0~9)
mnc: 92 # Mobile Network Code (2 or 3 digits string, digit: 0~9)
tac: 33457 # Tracking Area Code (uinteger, range: 0~16777215)
supportedSnssaiList: # Supported S-NSSAIs of the tracking area
- sst: 1 # Slice/Service Type (uinteger, range: 0~255)
- sst: 1 # Slice/Service Type (uinteger, range: 0~255)
sd: 000001 # Slice Differentiator (3 bytes hex string, range: 000000~FFFFFF)
- sst: 1 # Slice/Service Type (uinteger, range: 0~255)
sd: 000002 # Slice Differentiator (3 bytes hex string, range: 000000~FFFFFF)
- amfSetId: 2 # the AMF Set identifier
# URI of the NRF used to determine the list of candidate AMF(s) from the AMF Set
nrfAmfSet: http://localhost:8084/nnrf-nfm/v1/nf-instances
# the Nssai availability data information per TA supported by the AMF
supportedNssaiAvailabilityData:
- tai: # Tracking Area Identifier
plmnId: # Public Land Mobile Network ID, <PLMN ID> = <MCC><MNC>
mcc: 466 # Mobile Country Code (3 digits string, digit: 0~9)
mnc: 92 # Mobile Network Code (2 or 3 digits string, digit: 0~9)
tac: 33456 # Tracking Area Code (uinteger, range: 0~16777215)
supportedSnssaiList: # Supported S-NSSAIs of the tracking area
- sst: 1 # Slice/Service Type (uinteger, range: 0~255)
- sst: 1 # Slice/Service Type (uinteger, range: 0~255)
sd: 000001 # Slice Differentiator (3 bytes hex string, range: 000000~FFFFFF)
- sst: 1 # Slice/Service Type (uinteger, range: 0~255)
sd: 000003 # Slice Differentiator (3 bytes hex string, range: 000000~FFFFFF)
- sst: 2 # Slice/Service Type (uinteger, range: 0~255)
sd: 000001 # Slice Differentiator (3 bytes hex string, range: 000000~FFFFFF)
- tai: # Tracking Area Identifier
plmnId: # Public Land Mobile Network ID, <PLMN ID> = <MCC><MNC>
mcc: 466 # Mobile Country Code (3 digits string, digit: 0~9)
mnc: 92 # Mobile Network Code (2 or 3 digits string, digit: 0~9)
tac: 33458 # Tracking Area Code (uinteger, range: 0~16777215)
supportedSnssaiList: # Supported S-NSSAIs of the tracking area
- sst: 1 # Slice/Service Type (uinteger, range: 0~255)
- sst: 1 # Slice/Service Type (uinteger, range: 0~255)
sd: 000001 # Slice Differentiator (3 bytes hex string, range: 000000~FFFFFF)
- sst: 2 # Slice/Service Type (uinteger, range: 0~255)
amfList: # List of AMFs that may be assigned by this NSSF
- nfId: 469de254-2fe5-4ca0-8381-af3f500af77c # ID of this AMF
# The NSSAI availability data information per TA supported by the AMF
supportedNssaiAvailabilityData:
- tai: # Tracking Area Identifier
plmnId: # Public Land Mobile Network ID, <PLMN ID> = <MCC><MNC>
mcc: 466 # Mobile Country Code (3 digits string, digit: 0~9)
mnc: 92 # Mobile Network Code (2 or 3 digits string, digit: 0~9)
tac: 33456 # Tracking Area Code (uinteger, range: 0~16777215)
supportedSnssaiList: # Supported S-NSSAIs of the tracking area
- sst: 1 # Slice/Service Type (uinteger, range: 0~255)
- sst: 1 # Slice/Service Type (uinteger, range: 0~255)
sd: 000002 # Slice Differentiator (3 bytes hex string, range: 000000~FFFFFF)
- sst: 2 # Slice/Service Type (uinteger, range: 0~255)
- tai: # Tracking Area Identifier
plmnId: # Public Land Mobile Network ID, <PLMN ID> = <MCC><MNC>
mcc: 466 # Mobile Country Code (3 digits string, digit: 0~9)
mnc: 92 # Mobile Network Code (2 or 3 digits string, digit: 0~9)
tac: 33457 # Tracking Area Code (uinteger, range: 0~16777215)
supportedSnssaiList: # Supported S-NSSAIs of the tracking area
- sst: 1 # Slice/Service Type (uinteger, range: 0~255)
sd: 000001 # Slice Differentiator (3 bytes hex string, range: 000000~FFFFFF)
- sst: 1 # Slice/Service Type (uinteger, range: 0~255)
sd: 000002 # Slice Differentiator (3 bytes hex string, range: 000000~FFFFFF)
- nfId: fbe604a8-27b2-417e-bd7c-8a7be2691f8d # ID of this AMF
# The NSSAI availability data information per TA supported by the AMF
supportedNssaiAvailabilityData:
- tai: # Tracking Area Identifier
plmnId: # Public Land Mobile Network ID, <PLMN ID> = <MCC><MNC>
mcc: 466 # Mobile Country Code (3 digits string, digit: 0~9)
mnc: 92 # Mobile Network Code (2 or 3 digits string, digit: 0~9)
tac: 33458 # Tracking Area Code (uinteger, range: 0~16777215)
supportedSnssaiList: # Supported S-NSSAIs of the tracking area
- sst: 1 # Slice/Service Type (uinteger, range: 0~255)
- sst: 1 # Slice/Service Type (uinteger, range: 0~255)
sd: 000001 # Slice Differentiator (3 bytes hex string, range: 000000~FFFFFF)
- sst: 1 # Slice/Service Type (uinteger, range: 0~255)
sd: 000003 # Slice Differentiator (3 bytes hex string, range: 000000~FFFFFF)
- sst: 2 # Slice/Service Type (uinteger, range: 0~255)
- tai: # Tracking Area Identifier
plmnId: # Public Land Mobile Network ID, <PLMN ID> = <MCC><MNC>
mcc: 466 # Mobile Country Code (3 digits string, digit: 0~9)
mnc: 92 # Mobile Network Code (2 or 3 digits string, digit: 0~9)
tac: 33459 # Tracking Area Code (uinteger, range: 0~16777215)
supportedSnssaiList: # Supported S-NSSAIs of the tracking area
- sst: 1 # Slice/Service Type (uinteger, range: 0~255)
- sst: 1 # Slice/Service Type (uinteger, range: 0~255)
sd: 000001 # Slice Differentiator (3 bytes hex string, range: 000000~FFFFFF)
- sst: 2 # Slice/Service Type (uinteger, range: 0~255)
- sst: 2 # Slice/Service Type (uinteger, range: 0~255)
sd: 000001 # Slice Differentiator (3 bytes hex string, range: 000000~FFFFFF)
- nfId: b9e6e2cb-5ce8-4cb6-9173-a266dd9a2f0c # ID of this AMF
# The NSSAI availability data information per TA supported by the AMF
supportedNssaiAvailabilityData:
- tai: # Tracking Area Identifier
plmnId: # Public Land Mobile Network ID, <PLMN ID> = <MCC><MNC>
mcc: 466 # Mobile Country Code (3 digits string, digit: 0~9)
mnc: 92 # Mobile Network Code (2 or 3 digits string, digit: 0~9)
tac: 33456 # Tracking Area Code (uinteger, range: 0~16777215)
supportedSnssaiList: # Supported S-NSSAIs of the tracking area
- sst: 1 # Slice/Service Type (uinteger, range: 0~255)
- sst: 1 # Slice/Service Type (uinteger, range: 0~255)
sd: 000001 # Slice Differentiator (3 bytes hex string, range: 000000~FFFFFF)
- sst: 1 # Slice/Service Type (uinteger, range: 0~255)
sd: 000002 # Slice Differentiator (3 bytes hex string, range: 000000~FFFFFF)
- sst: 2 # Slice/Service Type (uinteger, range: 0~255)
- tai: # Tracking Area Identifier
plmnId: # Public Land Mobile Network ID, <PLMN ID> = <MCC><MNC>
mcc: 466 # Mobile Country Code (3 digits string, digit: 0~9)
mnc: 92 # Mobile Network Code (2 or 3 digits string, digit: 0~9)
tac: 33458 # Tracking Area Code (uinteger, range: 0~16777215)
supportedSnssaiList: # Supported S-NSSAIs of the tracking area
- sst: 1 # Slice/Service Type (uinteger, range: 0~255)
- sst: 1 # Slice/Service Type (uinteger, range: 0~255)
sd: 000001 # Slice Differentiator (3 bytes hex string, range: 000000~FFFFFF)
- sst: 2 # Slice/Service Type (uinteger, range: 0~255)
- sst: 2 # Slice/Service Type (uinteger, range: 0~255)
sd: 000001 # Slice Differentiator (3 bytes hex string, range: 000000~FFFFFF)
taList: # List of supported tracking area and their related information of this NSSF instance
- tai: # Tracking Area Identity
plmnId: # Public Land Mobile Network ID, <PLMN ID> = <MCC><MNC>
mcc: 466 # Mobile Country Code (3 digits string, digit: 0~9)
mnc: 92 # Mobile Network Code (2 or 3 digits string, digit: 0~9)
tac: 33456 # Tracking Area Code (uinteger, range: 0~16777215)
accessType: 3GPP_ACCESS # Access type of the tracking area
supportedSnssaiList: # List of supported S-NSSAIs of the tracking area
- sst: 1 # Slice/Service Type (uinteger, range: 0~255)
- sst: 1 # Slice/Service Type (uinteger, range: 0~255)
sd: 000001 # Slice Differentiator (3 bytes hex string, range: 000000~FFFFFF)
- sst: 1 # Slice/Service Type (uinteger, range: 0~255)
sd: 000002 # Slice Differentiator (3 bytes hex string, range: 000000~FFFFFF)
- sst: 2 # Slice/Service Type (uinteger, range: 0~255)
- tai: # Tracking Area Identity
plmnId: # Public Land Mobile Network ID, <PLMN ID> = <MCC><MNC>
mcc: 466 # Mobile Country Code (3 digits string, digit: 0~9)
mnc: 92 # Mobile Network Code (2 or 3 digits string, digit: 0~9)
tac: 33457 # Tracking Area Code (uinteger, range: 0~16777215)
accessType: 3GPP_ACCESS # Access type of the tracking area
supportedSnssaiList: # List of supported S-NSSAIs of the tracking area
- sst: 1 # Slice/Service Type (uinteger, range: 0~255)
- sst: 1 # Slice/Service Type (uinteger, range: 0~255)
sd: 000001 # Slice Differentiator (3 bytes hex string, range: 000000~FFFFFF)
- sst: 1 # Slice/Service Type (uinteger, range: 0~255)
sd: 000002 # Slice Differentiator (3 bytes hex string, range: 000000~FFFFFF)
- sst: 2 # Slice/Service Type (uinteger, range: 0~255)
- tai: # Tracking Area Identifier
plmnId: # Public Land Mobile Network ID, <PLMN ID> = <MCC><MNC>
mcc: 466 # Mobile Country Code (3 digits string, digit: 0~9)
mnc: 92 # Mobile Network Code (2 or 3 digits string, digit: 0~9)
tac: 33458 # Tracking Area Code (uinteger, range: 0~16777215)
accessType: 3GPP_ACCESS # Access type of the tracking area
supportedSnssaiList: # List of supported S-NSSAIs of the tracking area
- sst: 1 # Slice/Service Type (uinteger, range: 0~255)
- sst: 1 # Slice/Service Type (uinteger, range: 0~255)
sd: 000001 # Slice Differentiator (3 bytes hex string, range: 000000~FFFFFF)
- sst: 1 # Slice/Service Type (uinteger, range: 0~255)
sd: 000003 # Slice Differentiator (3 bytes hex string, range: 000000~FFFFFF)
- sst: 2 # Slice/Service Type (uinteger, range: 0~255)
restrictedSnssaiList: # List of restricted S-NSSAIs of the tracking area
- homePlmnId: # Home PLMN identifier
mcc: 310 # Mobile Country Code (3 digits string, digit: 0~9)
mnc: 560 # Mobile Network Code (2 or 3 digits string, digit: 0~9)
sNssaiList: # the S-NSSAIs List
- sst: 1 # Slice/Service Type (uinteger, range: 0~255)
sd: 000003 # Slice Differentiator (3 bytes hex string, range: 000000~FFFFFF)
- tai: # Tracking Area Identifier
plmnId: # Public Land Mobile Network ID, <PLMN ID> = <MCC><MNC>
mcc: 466 # Mobile Country Code (3 digits string, digit: 0~9)
mnc: 92 # Mobile Network Code (2 or 3 digits string, digit: 0~9)
tac: 33459 # Tracking Area Code (uinteger, range: 0~16777215)
accessType: 3GPP_ACCESS # Access type of the tracking area
supportedSnssaiList: # List of supported S-NSSAIs of the tracking area
- sst: 1 # Slice/Service Type (uinteger, range: 0~255)
- sst: 1 # Slice/Service Type (uinteger, range: 0~255)
sd: 000001 # Slice Differentiator (3 bytes hex string, range: 000000~FFFFFF)
- sst: 2 # Slice/Service Type (uinteger, range: 0~255)
- sst: 2 # Slice/Service Type (uinteger, range: 0~255)
sd: 000001 # Slice Differentiator (3 bytes hex string, range: 000000~FFFFFF)
restrictedSnssaiList: # List of restricted S-NSSAIs of the tracking area
- homePlmnId: # Home PLMN identifier
mcc: 310 # Mobile Country Code (3 digits string, digit: 0~9)
mnc: 560 # Mobile Network Code (2 or 3 digits string, digit: 0~9)
sNssaiList: # the S-NSSAIs List
- sst: 2 # Slice/Service Type (uinteger, range: 0~255)
sd: 000001 # Slice Differentiator (3 bytes hex string, range: 000000~FFFFFF)
# List of mappings of S-NSSAI in the serving network and the value of the home network
mappingListFromPlmn:
- operatorName: NTT Docomo # Home PLMN name
homePlmnId: # Home PLMN identifier
mcc: 440 # Mobile Country Code (3 digits string, digit: 0~9)
mnc: 10 # Mobile Network Code (2 or 3 digits string, digit: 0~9)
mappingOfSnssai: # List of S-NSSAIs mapping
- servingSnssai: # S-NSSAI in the serving network
sst: 1 # Slice/Service Type (uinteger, range: 0~255)
sd: 000001 # Slice Differentiator (3 bytes hex string, range: 000000~FFFFFF)
homeSnssai: # S-NSSAI in the home network
sst: 1 # Slice/Service Type (uinteger, range: 0~255)
sd: 1 # Slice Differentiator (3 bytes hex string, range: 000000~FFFFFF)
- servingSnssai: # S-NSSAI in the serving network
sst: 1 # Slice/Service Type (uinteger, range: 0~255)
sd: 000002 # Slice Differentiator (3 bytes hex string, range: 000000~FFFFFF)
homeSnssai: # S-NSSAI in the home network
sst: 1 # Slice/Service Type (uinteger, range: 0~255)
sd: 000003 # Slice Differentiator (3 bytes hex string, range: 000000~FFFFFF)
- servingSnssai: # S-NSSAI in the serving network
sst: 1 # Slice/Service Type (uinteger, range: 0~255)
sd: 000003 # Slice Differentiator (3 bytes hex string, range: 000000~FFFFFF)
homeSnssai: # S-NSSAI in the home network
sst: 1 # Slice/Service Type (uinteger, range: 0~255)
sd: 000004 # Slice Differentiator (3 bytes hex string, range: 000000~FFFFFF)
- servingSnssai: # S-NSSAI in the serving network
sst: 2 # Slice/Service Type (uinteger, range: 0~255)
sd: 000001 # Slice Differentiator (3 bytes hex string, range: 000000~FFFFFF)
homeSnssai: # S-NSSAI in the home network
sst: 2 # Slice/Service Type (uinteger, range: 0~255)
sd: 000002 # Slice Differentiator (3 bytes hex string, range: 000000~FFFFFF)
- operatorName: AT&T Mobility # Home PLMN name
homePlmnId: # Home PLMN identifier
mcc: 310 # Mobile Country Code (3 digits string, digit: 0~9)
mnc: 560 # Mobile Network Code (2 or 3 digits string, digit: 0~9)
mappingOfSnssai:
- servingSnssai: # S-NSSAI in the serving network
sst: 1 # Slice/Service Type (uinteger, range: 0~255)
sd: 000001 # Slice Differentiator (3 bytes hex string, range: 000000~FFFFFF)
homeSnssai: # S-NSSAI in the home network
sst: 1 # Slice/Service Type (uinteger, range: 0~255)
sd: 000002 # Slice Differentiator (3 bytes hex string, range: 000000~FFFFFF)
- servingSnssai: # S-NSSAI in the serving network
sst: 1 # Slice/Service Type (uinteger, range: 0~255)
sd: 000002 # Slice Differentiator (3 bytes hex string, range: 000000~FFFFFF)
homeSnssai: # S-NSSAI in the home network
sst: 1 # Slice/Service Type (uinteger, range: 0~255)
sd: 000003 # Slice Differentiator (3 bytes hex string, range: 000000~FFFFFF)
# the kind of log output
# debugLevel: how detailed to output, value: trace, debug, info, warn, error, fatal, panic
# ReportCaller: enable the caller report or not, value: true or false
logger:
NSSF:
debugLevel: info
ReportCaller: false
- name : Build nssfcfg.yaml config file
copy:
dest: "{{ NSSF_DIR }}/config/nssfcfg.yaml"
content: |
info:
version: 1.0.1
description: NSSF initial local configuration
configuration:
nssfName: NSSF # the name of this NSSF
sbi: # Service-based interface information
scheme: http # the protocol for sbi (http or https)
registerIPv4: {{ NSSF_IP_ADDRESS }} # IP used to register to NRF
bindingIPv4: {{ NSSF_IP_ADDRESS }} # IP used to bind the service
port: {{ NSSF_PORT }} # Port used to bind the service
tls: # the local path of TLS key
pem: config/TLS/nssf.pem # NSSF TLS Certificate
key: config/TLS/nssf.key # NSSF TLS Private key
serviceNameList: # the SBI services provided by this SMF, refer to TS 29.531
- nnssf-nsselection # Nnssf_NSSelection service
- nnssf-nssaiavailability # Nnssf_NSSAIAvailability service
nrfUri: http://{{ NRF_IP_ADDRESS }}:{{ NRF_PORT }} # a valid URI of NRF
supportedPlmnList: # the PLMNs (Public land mobile network) list supported by this NSSF
- mcc: 208 # Mobile Country Code (3 digits string, digit: 0~9)
mnc: 93 # Mobile Network Code (2 or 3 digits string, digit: 0~9)
supportedNssaiInPlmnList: # Supported S-NSSAI List for each PLMN
- plmnId: # Public Land Mobile Network ID, <PLMN ID> = <MCC><MNC>
mcc: 208 # Mobile Country Code (3 digits string, digit: 0~9)
mnc: 93 # Mobile Network Code (2 or 3 digits string, digit: 0~9)
supportedSnssaiList: # Supported S-NSSAIs of the PLMN
- sst: 1 # Slice/Service Type (uinteger, range: 0~255)
sd: 010203 # Slice Differentiator (3 bytes hex string, range: 000000~FFFFFF)
- sst: 1 # Slice/Service Type (uinteger, range: 0~255)
sd: 112233 # Slice Differentiator (3 bytes hex string, range: 000000~FFFFFF)
- sst: 1 # Slice/Service Type (uinteger, range: 0~255)
sd: 000003 # Slice Differentiator (3 bytes hex string, range: 000000~FFFFFF)
- sst: 2 # Slice/Service Type (uinteger, range: 0~255)
sd: 000001 # Slice Differentiator (3 bytes hex string, range: 000000~FFFFFF)
- sst: 2 # Slice/Service Type (uinteger, range: 0~255)
sd: 000002 # Slice Differentiator (3 bytes hex string, range: 000000~FFFFFF)
nsiList: # List of available Network Slice Instance (NSI)
- snssai: # S-NSSAI of this NSI
sst: 1 # Slice/Service Type (uinteger, range: 0~255)
nsiInformationList: # Information list of this NSI
# the NRF to be used to select the NFs/services within the selected NSI, and an optonal ID
- nrfId: http://{{ NRF_IP_ADDRESS }}:{{ NRF_PORT }}/nnrf-nfm/v1/nf-instances
nsiId: 10
- snssai: # S-NSSAI of this NSI
sst: 1 # Slice/Service Type (uinteger, range: 0~255)
sd: 000001 # Slice Differentiator (3 bytes hex string, range: 000000~FFFFFF)
nsiInformationList: # Information list of this NSI
# the NRF to be used to select the NFs/services within the selected NSI, and an optonal ID
- nrfId: http://{{ NRF_IP_ADDRESS }}:{{ NRF_PORT }}/nnrf-nfm/v1/nf-instances
nsiId: 11
- snssai: # S-NSSAI of this NSI
sst: 1 # Slice/Service Type (uinteger, range: 0~255)
sd: 000002 # Slice Differentiator (3 bytes hex string, range: 000000~FFFFFF)
nsiInformationList: # Information list of this NSI
# the NRF to be used to select the NFs/services within the selected NSI, and an optonal ID
- nrfId: http://{{ NRF_IP_ADDRESS }}:{{ NRF_PORT }}/nnrf-nfm/v1/nf-instances
nsiId: 12
- nrfId: http://{{ NRF_IP_ADDRESS }}:{{ NRF_PORT }}/nnrf-nfm/v1/nf-instances
nsiId: 12
- snssai: # S-NSSAI of this NSI
sst: 1 # Slice/Service Type (uinteger, range: 0~255)
sd: 000003 # Slice Differentiator (3 bytes hex string, range: 000000~FFFFFF)
nsiInformationList: # Information list of this NSI
# the NRF to be used to select the NFs/services within the selected NSI, and an optonal ID
- nrfId: http://{{ NRF_IP_ADDRESS }}:{{ NRF_PORT }}/nnrf-nfm/v1/nf-instances
nsiId: 13
- snssai: # S-NSSAI of this NSI
sst: 2 # Slice/Service Type (uinteger, range: 0~255)
nsiInformationList: # Information list of this NSI
# the NRF to be used to select the NFs/services within the selected NSI, and an optonal ID
- nrfId: http://{{ NRF_IP_ADDRESS }}:{{ NRF_PORT }}/nnrf-nfm/v1/nf-instances
nsiId: 20
- snssai: # S-NSSAI of this NSI
sst: 2 # Slice/Service Type (uinteger, range: 0~255)
sd: 000001 # Slice Differentiator (3 bytes hex string, range: 000000~FFFFFF)
nsiInformationList: # Information list of this NSI
# the NRF to be used to select the NFs/services within the selected NSI, and an optonal ID
- nrfId: http://{{ NRF_IP_ADDRESS }}:{{ NRF_PORT }}/nnrf-nfm/v1/nf-instances
nsiId: 21
- snssai: # S-NSSAI of this NSI
sst: 1 # Slice/Service Type (uinteger, range: 0~255)
sd: 010203 # Slice Differentiator (3 bytes hex string, range: 000000~FFFFFF)
nsiInformationList: # Information list of this NSI
# the NRF to be used to select the NFs/services within the selected NSI, and an optonal ID
- nrfId: http://{{ NRF_IP_ADDRESS }}:{{ NRF_PORT }}/nnrf-nfm/v1/nf-instances
nsiId: 22
- snssai: # S-NSSAI of this NSI
sst: 1 # Slice/Service Type (uinteger, range: 0~255)
sd: 112233 # Slice Differentiator (3 bytes hex string, range: 000000~FFFFFF)
nsiInformationList: # Information list of this NSI
# the NRF to be used to select the NFs/services within the selected NSI, and an optonal ID
- nrfId: http://{{ NRF_IP_ADDRESS }}:{{ NRF_PORT }}/nnrf-nfm/v1/nf-instances
nsiId: 23
amfSetList: # List of AMF Sets that my be assigned by this NSSF
- amfSetId: 1 # the AMF Set identifier
amfList: # Instance ID of the AMFs in this set
- ffa2e8d7-3275-49c7-8631-6af1df1d9d26