Skip to content

danielmacuare/JunOS-Sublime-Snippets

Repository files navigation

JunOS Sublime Text Snippets

In this project you can find some useful snippets to create config for JunOS devices.
The snippets will save you some time while preparing configs.

Usage

Write the keyword in the first column and press tab. To advance to the next placeholder press tab.

Keyword Meaning
secp Security Policy.
gsecp Global Security Policy.
aobj Global Address Object.
zaobj Zone Address Object.
aset Address Set.
zaset Zone Address Set.
appou App Object (UDP)
appot App Object (TCP)
appset Application Set.
ssmp Show Security Match Policies.
ssfs Show Security Flow session.

Getting Started

  1. If you are usiung Mac:
cd ~/Library/Application\ Support/Sublime\ Text\ 3/Packages/User
git clone [email protected]:danielmacuare/JunOS-Sublime-Snippets.git 
  1. If you are using Windows:
cd %APPDATA%/Sublime\ Text\ 3/Packages/Sublime\ Text\ 3\ Snippets
git clone [email protected]:danielmacuare/JunOS-Sublime-Snippets.git 
  1. If you are using Linux:
cd ~/.config/sublime-text-3/Packages/User
git clone [email protected]:danielmacuare/JunOS-Sublime-Snippets.git

To create more snippets http://docs.sublimetext.info/en/latest/extensibility/snippets.html?highlight=snippet

Prerequisites

Sublime Text - https://www.sublimetext.com/3

Usage

<keyword> + tab

Address Object - aobj
Address Object - aobj

Zone Address Object - zaobj
Zone Address Object - zaobj

Address Set - aset
Address Set - aset

Zone Address Set - zaset
Zone Address Set - zaset

App Object (UDP) - appou App Object (TCP) - appot App Objects

Application Set - appset
Application Set - appset

Security Policy - secp
Security Policy - secp

Global Security Policy - gsecp
Global Security Policy - gsecp

About

Sublime Text snippets for JunOS devices

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published