Getter for port-capability in port-mapping 2.2.1 16/99616/1
authorBalagangadhar Bathula <bb4341@att.com>
Tue, 8 Feb 2022 18:58:03 +0000 (13:58 -0500)
committerChristophe BETOULE <christophe.betoule@orange.com>
Mon, 14 Feb 2022 14:57:27 +0000 (14:57 +0000)
commit1b8a9fdaf6c5a7c34115f0856f492c878e06060a
treeabf25a03daca3ad47d40586b4b7c6f3b67b7dc09
parent51190fdd7f2e4c980f4412b6404fc683d61c1f70
Getter for port-capability in port-mapping 2.2.1

- There are two ways the 2.2.1 device can advertise
  supported port-capabilities
  a. Using the leaf list supported-interface-capability
     under ports list
  b. Using port-capabilities tree.
- Currently port-mapping only supports case (a).
- Add code to provide support for case (b).

JIRA: TRNSPRTPCE-610
Change-Id: I2e6900ccafa3e50d44d59d55c97acf824c28639e
Signed-off-by: Balagangadhar Bathula <bb4341@att.com>
(cherry picked from commit 6758b3817a44e31150a6ebea828a94d46241a63d)
common/src/main/java/org/opendaylight/transportpce/common/mapping/PortMappingVersion221.java