Skip to content

junoser's false negative problem #9

Open

Description

@shogosanz

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.

Activity

  1. codeout commented on Jul 10, 2018

    @codeout
    Owner

    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">
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions