Skip to content

Instantly share code, notes, and snippets.

@jeffbrl
Created June 23, 2017 14:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jeffbrl/72cc6c6e2f709e946c7550983949cd3c to your computer and use it in GitHub Desktop.
Save jeffbrl/72cc6c6e2f709e946c7550983949cd3c to your computer and use it in GitHub Desktop.
xpath expression for obtaining primary loopback address in junos
//logical-interface[name='lo0.0']/address-family[address-family-name='inet']/interface-address[ifa-flags/ifaf-current-primary]/ifa-local
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment