Fix eos entity lookups with YangInstanceIdentifier 81/98281/4
authorTomas Cere <tomas.cere@pantheon.tech>
Wed, 3 Nov 2021 11:20:45 +0000 (12:20 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Thu, 4 Nov 2021 18:21:43 +0000 (19:21 +0100)
Caused by entity-name only being a string type which was inadvertently
trying to lookup all entities as General.

Fix this by changing entity-name to a union of instance-identifier and
string.

Also changed up the output of get-entities slightly:
- if the entity is string based it will only contain the name in the
  output.
- if, however, it is Instance-identifier based it will contain the
  entire identifier in the name field.

JIRA: CONTROLLER-2009
Change-Id: I93e108bd54b14850b6bf276ec1eca4d7671d7d87
Signed-off-by: Tomas Cere <tomas.cere@pantheon.tech>
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>

No differences found