[j-nsp] XML parser and dumper for JUNOS

Simon Chen simonchennj at gmail.com
Wed Aug 6 15:03:18 EDT 2008


Hi all,

Do you guys know any opensource or Juniper XML parsers that are known
to work for JUNOS XML config files?

I used a standard XML::Simple parser. It can read Juniper configure in
XML without a problem but a dumped XML file looks like:

  <logical-routers name="SLICE_B_1">
    <interfaces name="interface">
      <ge-0/1/0 name="3" vlan-id="112">
        <family name="inet">
          <address name="12.0.0.1/24" />
        </family>
      </ge-0/1/0>

which is clearly not correct.

Any help is appreciated. Thanks.
-Simon


More information about the juniper-nsp mailing list