You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

Setting up IDE

You can set up the SDNC IDE by following instructions from Setting Up Your Development Environment with the additions described below.

Install sonarlint plugin

<coming soon>

Download the Source Code

Create Your Linux Foundation Account

If you already have a Linux Foundation account, you can skip this section.

You will need linux foundation account to submit code change to ONAP projects repos. If you only want to read the code, you can skip this step.

To create your linux foundation account, go to Linux Foundation Identity page, and select I need to create a Linux Foundation ID, the following page will be shown:

Filling the information and click on Create new account to proceed account creation.

Download SDNC Projects

Follow steps in Get git command from ONAP gerrit to get the git clone command and clone each of the following SDNC projects:

Project NameProject Descriptionhas code
sdnc/adaptorsSDNC adaptors(minus)
sdnc/architectureSDNC architectural artifacts (e.g. blueprints)(minus)
sdnc/coreSDNC core platform(minus)
sdnc/featuresSDNC Karaf features(minus)
sdnc/northboundSDNC northbound adaptors(tick) java
sdnc/oamSDNC OA&M tools(tick) bash, javascript, python, DGs
sdnc/parentParent POMS to be used by SDNC components (minus)
sdnc/pluginSDNC plugins(minus)


Note: The ONAP SDNC projects are more like a demo version of ECOMP's SDN-GC.

Download CCSDK Projects

Follow steps in Get git command from ONAP gerrit to get the git clone command and clone each of the following CCSDK projects:

Project NameProject Descriptionhas code
ccsdk/dashboardOpeations Manager Dashboard(tick)
ccsdk/distributionCCSDK distribution packaging (e.g. docker containers)(minus)
ccsdk/parentParent POMs to be used by CCSDK clients(minus)
ccsdk/platform/blueprintsBlueprints. not in Amesterdam release(minus)
 ccsdk/platform/nbapiNorthbound API(tick)
 ccsdk/platform/pluginsPlatform plugins(tick)
 ccsdk/sli/adaptorsCommon adaptors for use by directed graphs(tick)
ccsdk/sli/coreCore Service Logic Interpreter classes(tick)
 ccsdk/sli/northboundCommon northbound APIS related to service logic interpreter(tick)
 ccsdk/sli/pluginsCommon plugins used by direcged graphs (tick) python
ccsdk/storage/esaasElastic Storage as a Service.  not in Amesterdam release(minus)
ccsdk/storage/pgaasPGAAS (PostgreSQL as a Service)(tick) java, python, bash
ccsdk/utilsUtilities(tick) bash, yaml


Get git clone Command From ONAP gerrit

Use your linux foundation account to login onto ONAP projects.

Get Project list by entering the project key name in the Filter, for example sdnc, this list of projects under sdnc will be shown as below:

Click on the wanted project from the list, the General page of the selected project will be shown. the following is the General page of sdnc/adaptors:

Now click on Clone with commit-msg hook, then click on http, then click on the notepad icon.

The git clone command for the selected project is now copied into your clipboard. You do paste to use it at where-ever you want to.


View Code in gerrit Website

ONAP code can also be viewed from gerrit web site as below (sdnc/adaptors project is used as the example here):


To view the coce through gerrit client, first follow steps in SDNC - Development Environment Setup to get the Projects list page.

Then, choose either one of the following option to view the code of the desired project.

Option 1: view through "gitweb" option in project list page

Note: this option will bring you to, and only to, the HEAD branch which is the master branch.


In the project list page, click on the gitweb under the Repository Browser column of your project row.

The master branch's summary page will be shown up. Click on the tree option.

Now, the repo details page will be shown and you can view the code in master branch from there.


Option 2: view from "Branches" option in project page

Note: this option allows you to select a particular branch to view it code.

In the project list page, click the project under the Project Name column. (using sdnc/adaptors project as example here)

It takes you to the project General page, click on the Branches option.

The project page will be switched to Branches page. Check out the Branch Name column, click the gitweb on the same row of the desired branch.

The project Summary page of the selected branch will be shown up.  Click on the tree option.

Now, the repo details page will be shown and you can view the code in master branch from there.

Compiling

coming soon

Unit Testing

coming soon

How to Commit Code

coming soon

How to Deploy New Code (based on standard ONAP lab setup)

coming soon

Remote Debugging

coming soon

  • No labels