Versions Compared

Key

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

Table of Contents

Jira
serverONAP Jira
columnskey,summary,type,created,updated,due,assignee,reporter,priority,status,resolution
serverId425b2b0a-557c-3c0c-b515-579789cceedb
keyCPS-395

...

titleWork In Progress


The purpose of this spike is to be able to identify the APIs we need in order to talk to SDNC for doing CRUD operations on the models that are mounted as nodes on a particular installation.

Assumptions

#AssumptionNote
1rests bundle is pre-deployed
2NCMP/DMI-Plugin is not responsible for mounting nodes

Issues & Decisions

#

Issue Description

NotesDecision

Decisions

Description

DecisionNotes
1Bundle to useIt also supports actions.

"rests" bundle supports MIME type "application/yang-data+json" and is chosen as the bundle to use.

Supports parameters like fields and depth (details below)

It also supports actions.

Assumptions

...

2Differentiation between config false and config=true data

The NCMP and DMI interface will use the concept of datastores like 'operational' and 'running' to possible request config=true or all data. Currently it is unclear if the RESTConf/ODL parameter of 'content' works as intended to make this distinction.

Currently on the simulator the available "datastores" observed are startup, persist and running.

Rel I only aiming at non-NMDA devices.



Spike Findings

Sample Model

Code Block
firstline1
titleModel used for illustration purposes
linenumberstrue
collapsetrue
module gnodeb {
    yang-version 1.1;
    namespace "urn:gnodeb:test";

    prefix gnb;

    description
      "Yang model for gnodeb";
    revision "2019-12-03" {
        description
          "initial version";
    }

    container cells {
        list cellinfolist {
            key cell-id;
            leaf cell-id {
                type uint16;
            }
            leaf cell-uuid {
                type uint32;
            }
			leaf cell-description {
                type string;
                description
                  "Possible name or description";
            }
			
			leaf connected-users {
				type uint32;
				config false;
				default 10;
			}
        }
		
		container antenna {
            leaf a-id {
                type uint16;
            }
            
			leaf antenna-description {
                type string;
            }   
		}
		
		container measurements {
			config false;
            leaf speed {
                type uint16;
				default 20;
            }			   
		}
		
		
	}
}




Info

For this use case we do not need to worry about creating mount points or supplying our models, as these would be made available beforehand.

For this spike we have used the NETCONF Plug-and-Play Simulator which enables the creation of NETCONF-enabled devices i.e, xNF.

...

Credentials  : - admin / Kp8bJ4SXszM0WXlhak3eHlcse2gAw84vaoGGmJvUy2U


Interface Usage

Once the above model is added to a mount point ( say PNFDemo ) on SDNC this model should show up on the GUI, with methods for operating on all public leaves as below.

...

All of these are well documented with examples in the Swagger UI as below :

...

Postman sample URLs

GET all cells - http://localhost:8282/restconf/config/network-topology:network-topology/topology/topology-netconf/node/PNFDemo/yang-ext:mount/gnodeb:cells

...

http://localhost:8282/rests/data/network-topology:network-topology/topology=topology-netconf/node=PNFDemo/yang-ext:mount/gnodeb:cells/cellinfolist=1?fields=cell-uuid;cell-id&depth=1

...

Query Config data

The "content" query parameter controls how descendant nodes of the requested data nodes will be processed in the reply of a GET request.

Possible values are config, nonconfig and all, with all being the default.

e.g. http://localhost:8282/rests/data/network-topology:network-topology/topology=topology-netconf/node=PNFDemo/yang-ext:mount/gnodeb:cells?content=nonconfig


Code Block
titleEquivalent rpc request
collapsetrue
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<rpc message-id="m-441" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">             
<get>                                                                                
<filter xmlns:ns0="urn:ietf:params:xml:ns:netconf:base:1.0" ns0:type="subtree">      
<cells xmlns="urn:gnodeb:test"/>                                                     
</filter>                                                                            
</get>                                                                               
</rpc>                                                                               


http://localhost:8282/rests/data/network-topology:network-topology/topology=topology-netconf/node=PNFDemo/yang-ext:mount/gnodeb:cells?content=config

Code Block
titleEquivalent rpc request
collapsetrue
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<rpc message-id="m-442" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
<get-config>
<source>
<running/>
</source>
<filter xmlns:ns0="urn:ietf:params:xml:ns:netconf:base:1.0" ns0:type="subtree">
<cells xmlns="urn:gnodeb:test"/>
</filter>
</get-config>
</rpc>


http://localhost:8282/rests/data/network-topology:network-topology/topology=topology-netconf/node=PNFDemo/yang-ext:mount/gnodeb:cells?content=all

Code Block
titleEquivalent rpc request
collapsetrue
Request 1:

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<rpc message-id="m-464" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
<get>
<filter xmlns:ns0="urn:ietf:params:xml:ns:netconf:base:1.0" ns0:type="subtree">
<cells xmlns="urn:gnodeb:test"/>
</filter>
</get>
</rpc>


Request 2 :

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<rpc message-id="m-444" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
<get-config>
<source>
<running/>
</source>
<filter xmlns:ns0="urn:ietf:params:xml:ns:netconf:base:1.0" ns0:type="subtree">
<cells xmlns="urn:gnodeb:test"/>
</filter>
</get-config>
</rpc>


E2E Test Findings on config filtering

Response Read use-cases

DataStore(filter)SimulatorModel Contains
config:trueconfig:falseboth
passthrough-running
(config=true)
NetConf PnPconfig-true404 Error from SDN-C wrapped inside 500 error by DMI*Not tested**
Honeycomb***


passthrough-operational
(config=all)
NetConf PnPconfig-trueconfig-falseNot tested**
Honeycomb***


* need to decide on expected response from DMI in this case: empty result, 404, 500 
** having issues creating/deploying a model with both config true and false data
*** Honeycomb results have been recorded but need to be add here

Other available parameters :

Recording

...