openBackhaul / MicroWaveDeviceInventory

Physical and logical inventory of the MW SDN Domain
Apache License 2.0
5 stars 1 forks source link

Add proper examples for cache/link services #809

Closed kmohr-soprasteria closed 8 months ago

kmohr-soprasteria commented 8 months ago

Add proper examples for the cache/link services for better understanding of the services:

kmohr-soprasteria commented 8 months ago

todo:

  1. example for link: generic, minimum for rest
  2. example for link_port: generic

(1) Minimum for rest example:

core-model-1-4:link:
  - uuid: '530557202'
    layer-protocol-name: 'core-model-1-4:LAYER_PROTOCOL_NAME_TYPE_AIR_LAYER'
    end-point-list:
      - control-construct: '530270703'
        logical-termination-point: '530270703+RF-2146435217'
        layer-protocol: '530270703+2146435217'
      - control-construct: '530270705'
        logical-termination-point: '530270705+RF-2146435217'
        layer-protocol: '530270705+2146435217'
 - uuid: '513559997‘
    layer-protocol-name: 'core-model-1-4:LAYER_PROTOCOL_NAME_TYPE_AIR_LAYER'
    end-point-list:
      - control-construct: '530270703'
        logical-termination-point: '530270703+RF-2146435233'
        layer-protocol: '530270703+2146435233'
      - control-construct: '530270705'
        logical-termination-point: '530270705+RF-2146435233'
        layer-protocol: '530270705+2146435233'

some examples derived from testbed and live NEs: image

kmohr-soprasteria commented 8 months ago

Example for (1) generic and (2) link_port:

Example:

{
  "core-model-1-4:link": [
    {
      "uuid": "genericLink1",
      "layer-protocol-name": "genericLink1_layerProtocolName",
      "link-direction": "core-model-1-4:FORWARDING_DIRECTION_BIDIRECTIONAL",
      "forwarding-domain": [
        "genericLink1_forwardingDomain"
      ],
      "link-port": [
        {
          "local-id": "1",                                        
          "link-port-direction": "core-model-1-4:PORT_DIRECTION_INPUT",
          "logical-termination-point": "genericLink1_ltpA"
        },
        {
          "local-id": "2",                                        
          "link-port-direction": "core-model-1-4:PORT_DIRECTION_INPUT",
          "logical-termination-point": "genericLink1_ltpB"
        }
      ]
    }
  ]
}

link-port example:

/core-model-1-4:network-control-domain=cache/link=513559991/link-port=2: { "core-model-1-4:link-port": [ { "local-id": "2", "link-port-direction": "core-model-1-4:PORT_DIRECTION_OUTPUT", "logical-termination-point": "51359991B+819.1.1" } ] }