junoser icon indicating copy to clipboard operation
junoser copied to clipboard

junoser's false negative problem

Open shogosanz opened this issue 7 years ago • 1 comments

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.

shogosanz avatar Dec 19 '17 08:12 shogosanz

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">

codeout avatar Jul 10 '18 11:07 codeout