How it works...

The first steps should all be quite familiar by now. Connect to the JUNOS device, authenticate, and make a remote procedure call. Let's take a look at an example response to the RPC, and the parts of the message that we're interested in.

    <isis-database-information xmlns="http://xml.juniper.net/JUNOS/14.1R6/JUNOS-routing" JUNOS:style="detail">        <isis-database>            <level>1</level>        </isis-database>        <isis-database>            <level>2</level>            <isis-database-entry>                <lsp-id>lon-lab-access-4.00-00</lsp-id>                <sequence-number>0x1002</sequence-number>                <checksum>0x6e7</checksum>                <remaining-lifetime>26185</remaining-lifetime>                <isis-neighbor>                    <isis-topology-id>IPV4 Unicast</isis-topology-id>                    <is-neighbor-id>lon-lab-access-4.01</is-neighbor-                     id>                    <metric>1000</metric> ...

Get JUNOS Automation Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.