junoser
junoser copied to clipboard
junoser's false negative problem
First, junoser do not output error about this sentence.
junoser$echo "set interfaces em0 unit 0 family" | junoser -c
But I got error when I insert this sentence to Junos: 17.2R1.13
# set interfaces em0 unit 0 family
^
missing argument.
Please check this problem. Thank you and regards.
Sorry for my late response. I'm worried that the false-negative looks difficult to detect correctly as far as Juniper publishes today's xsd.
set interfaces em0 unit 0 family
for example, today's xsd doesn't indicate "an argument is required" but "family
contains 0 or more choices" like below:
<xsd:element name="family" minOccurs="0">
<xsd:annotation>
...
</xsd:annotation>
<xsd:complexType>
<xsd:sequence>
<xsd:choice minOccurs="0" maxOccurs="unbounded"> <!-- Should be minOccurs="1" ? -->
<xsd:element ref="undocumented" minOccurs="0"/>
<xsd:element ref="junos:comment" minOccurs="0"/>
<xsd:element name="inet" minOccurs="0">