Skip to content

Commit

Permalink
[DM]: Fix for correct schema type for top level netconf XML conf object
Browse files Browse the repository at this point in the history
generateDS only generates types for xsd:complexType/other types.
root netconf xml node 'config' should be of type 'xsd:complexType' instead of 'xsd:element'

Change-Id: Idc7c7cfb436ebb10bda15564bf265874744179af
Partial-Bug: #1620788
  • Loading branch information
sbalineni committed Nov 29, 2016
1 parent 135426b commit 786cd0e
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions src/schema/device_schema/juniper/juniper_common.xsd
Expand Up @@ -440,13 +440,11 @@ targetNamespace="http://www.juniper.net/2016/device-config/0">
</xsd:all>
</xsd:complexType>

<xsd:element name="config">
<xsd:complexType>
<xsd:attribute name="xmlns:xc" type="xsd:string" default="urn:ietf:params:xml:ns:netconf:base:1.0"/>
<xsd:all>
<xsd:element name="configuration" type="Configuration"/>
</xsd:all>
</xsd:complexType>
</xsd:element>
<xsd:complexType name="config">
<xsd:attribute name="xmlns:xc" type="xsd:string" default="urn:ietf:params:xml:ns:netconf:base:1.0"/>
<xsd:all>
<xsd:element name="configuration" type="Configuration"/>
</xsd:all>
</xsd:complexType>

</xsd:schema>

0 comments on commit 786cd0e

Please sign in to comment.