Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • Here is a description of what you have in the ONAP Information Model. Each of the "green birds" represent a Papyrus model. Aside from the Profiles, you have the overall "model" that is composed of "sub-models". Each of the "sub-models" has a model editor that is responsible for editing the model and uploading the changes into Gerrit/Git. Note: two people can not be editing a "sub-model" without clearly communicated coordination, otherwise "model conflicts" arise. 
    • GenDoc  - This is where the GenDoc templates reside for creating an output of the model in Word                     
    • StyleSheets - These are CSS stylesheets to use when formatting the model                                                          Owner: Jessie Jewitt
    • Common - The common submodel of the model (where artifacts used by multiple sub-models are stored)           Owner: Kevin Skaggs
    • Infrastructure -  The infrastructure submodel where the multi-cloud artifacts are stored                                          Owner: Arun Gupta
    • model - This is the "umbrella" ONAP model that contains all the submodels                                                           Owner: Jessie Jewitt
    • OpenModel_Profile.profile- Contains IISOMI stereotypes                                                                                        Owner: Jessie Jewitt                                          
    • Party - The party submodel for party related artifacts                                                                                               Currently inactive
    • Resource - The resource submodel for resource related artifacts                                                                            Owner: Jessie Jewitt
    • Service - The service submodel for service related artifacts                                                                                     Owner: Jessie Jewitt
    • Vnf - The Vnf submodel for Vnf specific artifacts                                                                                                       Owner: Kevin Skaggs
    • GenDoc  - This is where the GenDoc templates reside for creating an output of the model in Word
    • StyleSheets - These are CSS stylesheets to use when formatting the model
    • Common - The common submodel of the model (where artifacts used by multiple sub-models are stored)
    • Infrastructure -  The infrastructure submodel where the multi-cloud artifacts are stored
    • model - This is the "umbrella" ONAP model that contains all the submodels
    • Onap_Profile.profile - Contains ONAP specific stereotypes
    • OpenModel_Profile.profile- Contains IISOMI stereotypes
    • Party - The party submodel for party related artifacts
    • Resource - The resource submodel for resource related artifacts
    • Service - The service submodel for service related artifacts
    • Vnf - The Vnf submodel for Vnf specific artifacts
  • To see the entire model, double-click on "model". The model will open up in the model explorer which is on the left side of the screen in the center:

...

Updating the Model in Gerrit

  • Only approved model editors can update the working branch in Gerrit. 
  • To be a model editor you must undergo Papyrus training and attend the weekly Papyrus modeling sessions.
  • Once you have finished making your model changes, make sure you "save" them in Papyrus, by selecting "File→ Save", or select the file icon.
  • Next, you will need to go to the "Git" perspective to select the files you have changed and prepare them for uploading to Gerrit
    • Once in the Git Perspective, select the repository where you have changed the files.


    • Select the "Git Staging" tab in the lower right hand portion of your screen.
    • You will see the files that you have changed in the "Unstaged changes". Note: If there is a file there that you did not intend to change, right-click on that file and select "Replace with HEAD revision". That will revert any unwanted changes you may have made.
    • Select the files that you did change, right-click and select "Add to index", Or, as a shortcut, you can select the little green "plus" sign that will add the files for you:

...

    • This window display the Gerrit identifier (in this case 59893) associated to the change.
    • Next you will have to go to Gerrit at: gerrit.onap.org and login to Gerrit
    • You can then see the change you have made. Select that change. You will then need to "add" the name of the person to approve that change (i.e. DENG Hui).
    • Approvers are Deng Hui and the Model owner if you are updating a model for which you are not the owner.
    • Once the change has been committed, you will receive an email confirmation of the commit.
    • Note: If your commit and push fails for any reason, once you have fixed the problem, you can resend the request by selecting the "Amend (Edit previous commit)" icon in the Commit Message bar.

...