/go-junos

Go package for automation of Junos (Juniper Networks) devices.

Primary LanguageGoMIT LicenseMIT

go-junos

GoDoc Travis-CI license

A Go package that interacts with Junos devices, as well as Junos Space, and allows you to do the following:

  • Run operational mode commands, such as show, request, etc..
  • Compare the active configuration to a given rollback config.
  • Rollback the configuration to a given state or a "rescue" config.
  • Configure devices by uploading a local file or from an FTP/HTTP server.
  • List files on devices.
  • [SRX] Create a policy to be deployed.
  • [SRX] Convert from a zone-based address book to a global one.

Junos Space

  • Get information from Junos Space managed devices.
  • Add/remove devices from Junos Space.
  • List all software image packages that are in Junos Space.
  • Stage and deploy software images to devices from Junos Space.
  • Add/remove address and service objects/groups.
  • Modify objects (e.g. add/remove objects from groups, and delete objects).
  • View all policies managed by Junos Space.
  • Publish policies and update devices.
  • Add/modify polymorphic (variable) objects.

Examples & Documentation

Visit the GoDoc page for package documentation and examples.

Note: This package makes all of it's calls over Netconf using the go-netconf package from Juniper Networks