Versions Compared

Key

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

related Jira: 

Jira
serverONAP JIRA
serverId425b2b0a-557c-3c0c-b515-579789cceedb
keySDNC-1094

related links: 

TODO: add text and references here.



Sequence Diagram

Status: under discussion 2020-03-01


PlantUML Macro
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' 
' Copyright 2020 highstreet technologies GmbH
' Licensed under the Apache License, Version 2.0 (the "License"); 
' you may not use this file except in compliance with the License. 
' You may obtain a copy of the License at 
' 
'   http://www.apache.org/licenses/LICENSE-2.0 
' 
' Unless required by applicable law or agreed to in writing, software 
' distributed under the License is distributed on an "AS IS" BASIS, 
' WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 
' See the License for the specific language governing permissions and 
' limitations under the License. 

@startuml

' Diagram 
title 
  ONAP SDN-R
  Interfacing with ONAP-SQL-DB via DMaaP
end title

box "ONAP CCSDK/SDNC/SDN-R cluster" #lightpink
  participant "NetConf provider" as ncs
end box

box "ONAP CCSDK/SDNC/SDN-R cluster" #gold
  participant "ODL NetConf Client" as ncc
  database "md-sal\nfile-system" as mdsal
  participant "RestConf Server" as rcs
  participant "DMaaP Consumer" as ctrldc
  participant "DMaaP Provider" as ctrldp
end box

participant "DMaaP" as mb

box “RunTimeDB; ConfigDB, CONFucius” #lightblue
  participant "DMaaP Consumer" as dbdc
  ' participant "DMaaP Provider" as dbdp
  participant "YANG-to-SQL" as y2s
  participant "A1-REST-to-SQL (?)" as a2s
  database SQL as sql
end box

autonumber 10 10 "<b>[000]"

== start, idling ==
dbdc -> mb: subscribe for topic(s) - topic-names?
y2s -> rcs: synch-request
y2s <- rcs: synch-response (MountPoints, ConnectionStatus,YANG-Capabilities)
y2s -> rcs: download of new intersting YANG modules
y2s <- rcs: YANG modules
y2s -> y2s: process YANG modules
y2s -> sql: Create INDEX, TABLE, ASSOCCIATION

ctrldc -> mb: subscribe for topic(s) - topic-names?

loop every 5s
  dbdc -> mb: poll for updates
  dbdc <- mb: response (empty or new message)
end loop

loop every 5s
  ctrldc -> mb: poll for updates
  ctrldc <- mb: response (empty or new message)
end loop

== New YANG revision (e.g. atfer xNF Software upgrade) ==

ncc <-> ncs: Establish NetConf session
ncc -> ncs: Hello Message
ncc <- ncs: Capabilites (yang modules)
ncc -> ncs: download new YANG revision
ncc <- ncs: new YANG module
ncc -> mdsal: new YANG module
ncc -> mdsal: mountpoint operation update
mdsal -> ctrldp: mountpoint operation update 
ctrldp -> mb: mountpoint operation update 
mb-> dbdc: mountpoint operation update 
dbdc -> y2s: mountpoint operation update 
y2s -> y2s: analyse new YANG capabilities 
y2s -> rcs: download new YANG revision
rcs -> mdsal: read new YANG revision
rcs <- mdsal: YANG module
y2s <- rcs: YANG module
y2s -> y2s: process YANG modules
y2s -> sql: Create INDEX, TABLE, ASSOCCIATION

== READ data from network (proposed, to be discussed) ==
dbdc -> rcs: RESTCONF HTTP-GET data from network (pnf-id; filter)
rcs -> ncc: trigger <get> ro <get-config>
ncc -> ncs: NetConf <get> ro <get-config>
ncc <- ncs: NetConf <response> 
rcs <- ncc: forward data
dbdc <- rcs: RESTCONF response
dbdc -> y2s: forward data
y2s -> sql: strore data

== SET data on network (???) ==
y2s <-> mb: TO BE DEFINED


' End Diagram
' Format
header
  <b><font color=#8888ff>License</font></b>
  <b><font color=#8888ff>Apache 2.0</font></b>
end header

right footer 
  Thanks to plantUml! 
  2020-03-01 | wiki.onap.org
end footer

skinparam backgroundColor #fefefe
'skinparam handwritten true
skinparam roundcorner 15
skinparam componentStyle uml2

skinparam databaseBorderColor #444444
skinparam databaseBackgroundColor #fefefe
skinparam databaseFontColor #444444

skinparam component {
  BorderColor #666666
  BackgroundColor #fefefe
}

skinparam database {
  BorderColor #666666
  BackgroundColor #ffffdd
}

skinparam interface {
  BorderColor #666666
  BackgroundColor #fefefe
  FontColor #fefefe
}

skinparam node {
  FontColor #ffffff
}

skinparam sequence {
  MessageAlign left
  ArrowColor #2277dd
  ArrowFontColor #444444
  ActorBorderColor #444444
  LifeLineBorderColor #444444
  LifeLineBackgroundColor #eeeeee
 
  BoxBorderColor #444444

  GroupBorderColor #444444
  GroupBackgroundColor #eeeeee

  ParticipantBorderColor #444444
  ParticipantBackgroundColor #ffffdd
  ParticipantFontColor #444444

  ActorBackgroundColor #ffffdd
  'ActorFontColor DeepSkyBlue
  'ActorFontSize 17
  'ActorFontName Aapex
}

@enduml