...
To support local test with two separate NearRT-RIC simulator instances the following modifications must be done:
- change the 'a1ControllerBaseUrl' in create a new nonrtric/policy-agent/config/application.yaml_configuration.yaml with the configuration below
- The controller file of policy-agent to http://a1-controller-container:8181 The above hostname and port values come from and must match those defined in nonrtric/sdnc-a1-controller/oam/installation/src/main/yaml/docker-compose.ymlThe default URL to be replaced (http://sdnc.onap:8282) is used in Kubernetes-based ONAP deployment
- The following step is required only if you want to run more than the default ric1 nearRT-RIC simulator instance
- replace the content of nonrtric/policy-agent/config/application_configuration.yaml with the configuration below
any defined ric names must match the given docker container names in nearRT-RIC simulator startup - port is always the simulator's internal 8085
Code Block |
---|
language | yml |
---|
title | application_configuration.yaml |
---|
|
{
"config": {
"//description": "Application configuration",
"controller": [
{
"name": "controller1",
"baseUrl": "http://a1-controller-container:8181",
"userName": "admin",
"password": "Kp8bJ4SXszM0WXlhak3eHlcse2gAw84vaoGGmJvUy2U"
}
],
"ric": [
{
"name": "ric1",
"baseUrl": "http://ric1brick1:8085/",
"controller": "controller1",
"managedElementIds": [
"kista_1",
"kista_2"
]
},
{
]
},
{
"name": "ric2",
"baseUrl": "http://ric2brick2:8085/",
"controller": "controller1",
"managedElementIds": [
"kista_3",
"kista_4"
]
}
]
]
}
]
}
} |
Build the code and create docker images
...
Code Block |
---|
language | bash |
---|
title | SDNC A1 Client |
---|
|
$ docker logs policy-agent-container | grep "protocol version"
2020-04-0317 1211:2010:0011.239357 DEBUG 1 --- [or-http-epoll-1] o.o.policyagent.clients.A1ClientFactory : Established protocol version:SDNC_OSC_OSC_V1 for Ric: ric1
2020-04-0317 1211:2010:0011.248387 DEBUG 1 --- [or-http-epoll-21] o.o.policyagent.clients.A1ClientFactory : Established protocol version:SDNC_OSC_OSC_V1 for Ric: ric2 |
Code Block |
---|
language | bash |
---|
title | STD A1 Client |
---|
|
$ docker logs policy-agent-container | grep "protocol version"
2020-04-0317 1211:2010:0011.239357 DEBUG 1 --- [or-http-epoll-1] o.o.policyagent.clients.A1ClientFactory : Established protocol version:STD_V1_1 for Ric: ric1
2020-04-0317 1211:2010:0011.248387 DEBUG 1 --- [or-http-epoll-21] o.o.policyagent.clients.A1ClientFactory : Established protocol version:STD_V1_1 for Ric: ric2 |
Run Non-RT-RIC Dashboard Docker Container
...