Subject: [lmap] Data type for Option/Value

From: Ron Stana <[email-masked]>
Date: Tue, 27 Sep 2016 21:24:34 +0000

LMAP Team,

The data type for the option/value in the LMAP YANG model is currently defined as a string.  Our tests use a structured set of input parameters, sometimes mandated by IETF YANG models such as TWAMP and TWAMP Light (see example below) so we currently have to stringify the data which makes it unnecessarily hard to read and requires an extra step before sending and parsing.

"action":[

   {

      "name":"Test-2016-09-27-16:54-action",

      "task":"twamp-initiator",

      "option":[

                 {

                    "id":"twamp-light",

                    "value":"{\"ietf-twamp-light:twamp-light\":{\"twamp-light-session-sender\":{\"sender-light-enable\":true,\"test-session\":[{\"session-id\":1,\"test-session-enable\":true,\"packet-padding-size\":425,\"session-authentication-mode\":\"unauthenticated\",\"interval\":10,\"sender-ip\":\"192.168.2.10\",\"sender-udp-port\":50000,\"reflector-ip\":\"192.168.2.20\",\"reflector-udp-port\":50000,\"dscp\":0},{\"session-id\":2,\"test-session-enable\":true,\"packet-padding-size\":41,\"session-authentication-mode\":\"unauthenticated\",\"interval\":20,\"sender-ip\":\"192.168.2.10\",\"sender-udp-port\":50000,\"reflector-ip\":\"192.168.2.20\",\"reflector-udp-port\":50000,\"dscp\":8}]}}}"

                }

      ],

      "destination":[

                 "Test-2016-09-27-16:54-results-periodic-pm",

                "Test-2016-09-27-16:54-results-periodic-rt"

      ]

   }

]

Can the value object be changed in the LMAP YANG model so that it can contain another object (i.e. YANG's anyxml object type)?

Regards,
Ron