AMWA-TV / is-06

AMWA IS-06 NMOS Network Control Specification (Deprecated)
https://specs.amwa.tv/is-06
Apache License 2.0
14 stars 10 forks source link

Just asking a question about the Network Link resource #63

Closed garethsb closed 4 years ago

garethsb commented 4 years ago

The Network Link resources at /network-links are unusual in NMOS APIs because they don't have their own unique ID, they can only be queried based on the peer identifiers.

(That also explains why there isn't an /network-links/{networkLinkId} resource in the API RAML).

They're also unusual in that they contain a reference attribute that may refer to two different resource types, the "device_id" may refer to either an Endpoint or a Network Device.

Though it is not backwards compatible, the following schema seems to be much more natural, and consistent with other NMOS APIs...

garethsb commented 4 years ago

Adding "link_type": "access" to Endpoint-Network Device links and "link_type": "trunk" to inter-Network Device links would make additional useful basic queries about the topology possible also.

/network-links?link_type=trunk /network-links?link_type=access&peers.device_id={networkDeviceId}

garethsb commented 4 years ago

During the group call today, we discussed whether there is actually a use-case to include the Endpoint-to-Network Device links (I called this link type "access" but "host" or "endpoint" may be better). One opinion was that only the otherwise invisible or opaque inter-switch links are useful. The "attached_network_device" info in the Endpoint basically defines those links already.

garethsb commented 4 years ago

Rebased on v1.0.x, with link_type enum values changed to "network-device" (inter-switch links) and "endpoint" (switch-host links).

Making the basic queries things like:

garethsb commented 4 years ago

Withdrawn for v1.0.x, in favour of #69.