-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathausf.yaml
85 lines (81 loc) · 2.22 KB
/
ausf.yaml
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
tosca_definitions_version: tosca_simple_profile_for_nfv_1_0_0
description: description
node_types:
tosca.nodes.nfv.VNF8:
requirements:
- virtualLink1:
type: tosca.nodes.nfv.VL
required: true
metadata:
template_name: free5GCSetup
topology_template:
substitution_mappings:
node_type: tosca.nodes.nfv.VNF8
node_templates:
VDU1:
type: tosca.nodes.nfv.VDU.Tacker
properties:
name: free5gc-ausf-VNF
image: stage3_cp
flavor: free5gc
availability_zone: nova
mgmt_driver: noop
key_name: free5gc
user_data_format: RAW
user_data: |
#!/bin/sh
cd /home/ubuntu/
echo "export GOPATH for bash shell"
export HOME=/home/ubuntu
export GOPATH=$HOME/go
export GOROOT=/usr/local/go
export PATH=$PATH:$GOPATH/bin:$GOROOT/bin
export GO111MODULE=off
cd stage3
echo "configure AUSF"
cat > /home/ubuntu/stage3/config/ausfcfg.conf <<- EOM
info:
version: 1.0.0
description: AUSF initial local configuration
configuration:
sbi:
scheme: https
ipv4Addr: 192.168.2.108
port: 29509
serviceNameList:
- nausf-auth
nrfUri: http://192.168.2.101:29510
plmnSupportList:
- mcc: 208
mnc: 93
- mcc: 123
mnc: 45
groupId: ausfGroup001
EOM
#echo "initialize AUSF"
#go build -o bin/ausf -x src/ausf/ausf.go
#echo "run AUSF"
#sudo ./bin/ausf
CP1:
type: tosca.nodes.nfv.CP.Tacker
properties:
ip_address: 192.168.2.108
management: true
requirements:
- virtualLink:
node: VL1
- virtualBinding:
node: VDU1
VL1:
type: tosca.nodes.nfv.VL
properties:
network_name: 5GC
vendor: Tacker
FIP1:
type: tosca.nodes.network.FloatingIP
properties:
floating_network: public
floating_ip_address: 172.24.4.108
requirements:
- link:
node: CP1