title: Opendaylight YANG RPC modelling for anyxml /anydata types
body: <p>Does Opendaylight(Beryllium) support YANG RPC data modelling types like anyxml/anydata ?</p>
  <p>I have been involved in developing an Opendaylight Controller App, in which i have to publish a dynamic JSON data as part of RPC(NorthBound API).</p>
  <p>Here is my YANG RPC definition:</p>
  <pre><code>rpc service_discovery{
      input {
          leaf service_account_id{
              type string;
          }
          leaf action{
              type string;
          }
      }
      output {
          list discoveryList{
              anyxml service_element;
          }
      }
  }
  </code></pre>
  <p>Referred this <a href="https://datatracker.ietf.org/doc/html/draft-ietf-netmod-yang-json-09#page-10" rel="nofollow noreferrer">YANG IETF documentation</a> for defining anyxml/anydata types</p>
  <p>When I build this YANG, I couldn't see JAVA interfaces/classes generated against anyxml type and am not sure on how to do the JAVA implementation corresponding to this types. This blocks me in publishing the dynamic JSON which i received from SouthBound API.</p>
  <p>Here is the sample data which i want to publish in the output. The difficulty here is, the JSON attributes are dynamic so it is not possible to define them statically in YANG. So i opted for anyxml type.</p>
  <pre><code>[ {
      &quot;id_1&quot;: &quot;123245&quot;,
      &quot;name_1&quot;: &quot;test1&quot;,
      &quot;deployment_1&quot;: &quot;prod&quot;,
      &quot;type_1&quot;: &quot;cloud&quot;
    },
    {
      &quot;id_2&quot;: &quot;33455&quot;,
      &quot;name_2&quot;: &quot;Test2&quot;,
      &quot;deployment_2&quot;: &quot;QA&quot;,
      &quot;type_2&quot;: &quot;container&quot;
    } ]
  </code></pre>
  <p>Please suggest me the YANG model for the above data to be published in output.</p>