Closed juztas closed 3 years ago
python ./test/test_api_methods.py
, query for end-site works while query for WAN domains failed.
# Testing Method #1
====================================================================================================
Request:
https://sense-o.es.net:8443/StackV-web/restapi//sense/discovery/edgepoints/urn:ogf:network:ultralight.org:2013
Response (code=200):
{
"edge_points": [
{
"capailities": [],
"peer_uri": "urn:ogf:network:ultralight.org:2013:s0:1_3:+",
"stp": {
"assign_ip": null,
"ipv4_prefix_list": null,
"type": "ethernet/vlan",
"uri": "urn:ogf:network:ultralight.org:2013:s0:1_3:transfer-6.ultralight.org:enp4s0f1",
"label": null
},
"peer_name": null
},
{
"capailities": [],
"peer_uri": "urn:ogf:network:ultralight.org:2013:s0:1_2:+",
"stp": {
"assign_ip": null,
"ipv4_prefix_list": null,
"type": "ethernet/vlan",
"uri": "urn:ogf:network:ultralight.org:2013:s0:1_2:sdn-dtn-1-7.tier2:enp143s0",
"label": null
},
"peer_name": null
}
],
"name": null,
"uri": "urn:ogf:network:ultralight.org:2013"
}
----------------------------------------------------------------------------------------------------
Request:
https://sense-o.es.net:8443/StackV-web/restapi//sense/discovery/edgepoints/urn:ogf:network:es.net:2013:
Response (code=500):
>>> Something Wrong <<<
----------------------------------------------------------------------------------------------------
Is this about topology connectivity or list of all the services originating from / sinking to this site?
We will add the support in SENSE-O NBI.
1 looks to be then orchestrator issue. Also 1 - I need to get all edgepoints, like call: https://sense-o.es.net:8443/StackV-web/restapi//sense/discovery/edgepoints should return all list of edge points.
4-11 are supported now.
12-15 will be added to SENSE-O NBI.
For clarification, does get intent
mean the JSON intent spec or the service instance? Intent is a JSON document that can be used by multiple service instances. Each service instance could also have multiple intents along its history. We may consider change the requirements to something like
- Not only site - but yes, topology how things are connected. I know it is not available in N-RM - but would be great to have this. Not sure what it would take to implement.
"topology how things are connected" can be very broad. I could return the entire model but that is too much for the request. Alternatively we can use service negotiation call to query connections between two (or more) give endpoints with intents of different parameters.
let's say we have switch A and B and ports 1,2 on A connected to B 1,2:
for get intent - we need both. and what was submitted and also what is provisioned with all details
Ref: https://github.com/esnet/StackV/issues/958 for some earlier query discussions.
@juztas
2 is still unclear to me. I am leaving it to future discussions.
3 is now tracked in Intent inquiry and operation - development #5
4-11 and 14 have examples in Service lifecycle operation examples #6
12 - 15 are now tracked in Query for details of a service instance #4
@R-Jimenez and I will work on the development for #4 and #5.
I've established a JSON schema system for both responses and resource endpoints that should help with ironing out a consistent API structure, as well as come up with a neat way of serving them through our existing deployments. These schemas can be used for validation, and will also make porting into swagger much easier as the response information can be some of the bulkiest parts of the doc. The initial StackV API 2.0 general response schema and an example data response schema can be found at the following:
Note again this is not replacing the swagger docs, but are more for development and automation, and will be used to bootstrap/guide both the swagger and general API upgrades.
Here is the draft
hit list
for the expansion of the SENSE NB API. The development task group include @xi-yang @R-Jimenez @juztas @scaly789 .Item in the below is checked off when there is a
Feature
tagged issue is taking care of it.Service Intent
service_profile
+ edit-params
+ appended withqueries
) for service createService Instance
Lookup / Discovery
home domains / nodes / interfaces
for restrictive access (list managed by admin)name
substring and regexname
substring and regexname
substring and regexname
substring and regexname
substring and regexExtra
/sevice
and/instance
resources as needed** Reference: SENSE-O NB API Swagger Doc
On the Orchestrator side, new development will be done in the
StackV/Feature-sense_nbi_rework-M11-xyang
branch.A new API will be documented as SENSE-O NB API 2.0.
Original:
Here is the APIs and manifests for submission we need