1- Install docker
2- Git clone https://github.com/Juniper/docker-saltstack-junos.git
3- cd directory : cd docker-saltstack-junos
4- Then the rest ….. https://github.com/Juniper/docker-saltstack-junos
7- Basic junos ping and junos facts
[root@centos7 ~]# cd /home/githubdir/docker-saltstack-junos/
[root@centos7 docker-saltstack-junos]# more ./uc-engine/pillar/top.sls
base:
proxy01:
- proxy01
# proxy02:
# - proxy02
[root@centos7 docker-saltstack-junos]# more ./uc-engine/pillar/proxy01.sls
proxy:
proxytype: junos
host: 192.168.70.21
username: root
passwd: Juniper1
[root@centos7 docker-saltstack-junos]# make master-start
181493ce3ff6112439c85bb44f1a67074653c23292175255699c191b87b36c0f
[root@centos7 docker-saltstack-junos]# docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
181493ce3ff6 juniper/saltstack "/entrypoint.sh sa..." 8 seconds ago Up 7 seconds 0.0.0.0:8516->516/udp saltmaster-engine
[root@centos7 docker-saltstack-junos]# make master-shell
root@saltmaster-engine:/# ps -ef | grep proxy01
root 19 1 0 16:58 ? 00:00:00 /usr/bin/python /usr/bin/salt-proxy --proxyid=proxy01 -l debug -d
root 330 236 0 16:59 ? 00:00:00 grep --color=auto proxy01
7- Basic junos ping and junos facts
root@saltmaster-engine:/# salt '*' junos.ping
proxy01:
----------
message:
True
out:
True
root@saltmaster-engine:/# salt '*' junos.facts
proxy01:
----------
message:
{"domain": null, "hostname": "vSRX1", "ifd_style": "CLASSIC", "version_info": {"major": [15, 1], "type": "X", "build": 3, "minor": [49, "D", 70]}, "2RE": false, "serialnumber": "AF7691DC331F", "fqdn": "vSRX1", "switch_style": "NONE", "version": "15.1X49-D70.3", "HOME": "/cf/root", "srx_cluster": false, "model": "VSRX", "RE0": {"status": "OK", "last_reboot_reason": "0x4000:VJUNOS reboot ", "model": "VSRX-S", "up_time": "3 hours, 27 minutes, 34 seconds"}, "vc_capable": false, "personality": "UNKNOWN"}
out:
True
root@saltmaster-engine:/# salt '*' junos.cli 'show version'
proxy01:
----------
message:
Hostname: vSRX1
Model: vsrx
Junos: 15.1X49-D70.3
JUNOS Software Release [15.1X49-D70.3]
out:
True
root@saltmaster-engine:/# salt '*' junos.rpc 'get-chassis-inventory'
proxy01:
----------
message:
----------
chassis-inventory:
----------
chassis:
----------
chassis-module:
|_
----------
name:
CB 0
|_
----------
description:
VSRX-S
name:
Routing Engine 0
part-number:
BUILTIN
serial-number:
BUILTIN
|_
----------
chassis-sub-module:
----------
description:
VSRX DPDK GE
name:
PIC 0
part-number:
BUILTIN
serial-number:
BUILTIN
version:
description:
FPC
name:
FPC 0
part-number:
611-049549
serial-number:
RL3714040884
version:
REV 07
description:
VSRX
name:
Chassis
serial-number:
AF7691DC331F
out:
True