...
Currently only 4 subscribers profiles are supported (1/2/3/4), 2 * 100Mbit/s symmetrical and 2 * 20Mit/s symmetrical, respectively. This should be enough to run all test-cases for the BBS use-case.
REST API
The REST API documentation (this section) currently only applies to the layer2_dhcp branch in the Git repo. To assist with working with the REST API, you can utilize Postman, and import the current API Collection. The information below documents each REST call that is available.
POST CreateInternetProfileInstance
Description: Creates a subscriber instance in the vBNG. This call will be used directly by ONAP. Note, the "service_id" MUST be unique, as this is used to identify the profile for updates and deletion.
Code Block |
---|
title | CreateInternetProfileInstance Input |
---|
|
{
"remote_id":"AC9.000.990.002",
"ont_sn":"serial",
"service_type":"Internet",
"mac":"00:00:00:00:00:00",
"service_id":"2",
"up_speed":"100",
"down_speed":"100",
"s_vlan":10,
"c_vlan":334
} |
Code Block |
---|
language | bash |
---|
theme | RDark |
---|
title | curl example call |
---|
|
curl --location --request POST "{{host}}:{{port}}/CreateInternetProfileInstance" \
--header "Content-Type: application/json" \
--data "{
\"remote_id\":\"AC9.000.990.001\",
\"ont_sn\":\"serial\",
\"service_type\":\"Internet\",
\"mac\":\"00:00:00:00:00:00\",
\"service_id\":\"1\",
\"up_speed\":\"100\",
\"down_speed\":\"100\",
\"s_vlan\":10,
\"c_vlan\":333
}" |
GET GetInternetProfileInstance
Description: Returns list of all configured subscribers in the vBNG.
Code Block |
---|
language | bash |
---|
theme | RDark |
---|
title | curl example call |
---|
|
curl --location --request GET "{{host}}:{{port}}/GetInternetProfileInstance" |
POST ChangeInternetProfileInstance
Description: Updates an existing subscriber instance in the vBNG. The "service_id" parameter is used as the key to identify the specific profile to be updated.
Code Block |
---|
language | bash |
---|
theme | RDark |
---|
title | curl example call |
---|
|
{
"remote_id":"AC9.000.990.001",
"ont_sn":"serial",
"service_type":"Internet",
"mac":"00:00:00:00:00:00",
"service_id":"1",
"up_speed":"100",
"down_speed":"100",
"s_vlan":10,
"c_vlan":333
} |
Code Block |
---|
language | bash |
---|
theme | RDark |
---|
title | curl example call |
---|
|
curl --location --request POST "{{host}}:{{port}}/ChangeInternetProfileInstance" \
--header "Content-Type: application/json" \
--data "{
\"remote_id\":\"AC9.000.990.001\",
\"ont_sn\":\"serial\",
\"service_type\":\"Internet\",
\"mac\":\"00:00:00:00:00:00\",
\"service_id\":\"1\",
\"up_speed\":\"100\",
\"down_speed\":\"100\",
\"s_vlan\":10,
\"c_vlan\":333
}" |
ONAP Configuration
The installation and initial configuration of Edge SDN M&C + vBNG is done by an Heat stack template, see above. The parameters which must be modified in ONAP are the following:
...