You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Value of 'peer-state' not 'is-equal' at '//bgp-information/bgp-peer' with {"peer-as": "65200", "peer-state": "Active", "peer-address": "100.0.0.21"}
58
-
Value of 'peer-state' not 'is-equal' at '//bgp-information/bgp-peer' with {"peer-as": "60021", "peer-state": "Idle", "peer-address": "192.168.0.1"}
59
-
Value of 'oper-status' not 'is-equal' at '//interface-information/physical-interface[normalize-space(admin-status)='up' and logical-interface/address-family/address-family-name ]' with {"oper-status": "down", "name": "et-0/0/18"}
Value of 'peer-state' not 'is-equal' at '//bgp-information/bgp-peer' with {"peer-as": "65200", "peer-state": "Active", "peer-address": "100.0.0.21"}
63
+
Value of 'peer-state' not 'is-equal' at '//bgp-information/bgp-peer' with {"peer-as": "60021", "peer-state": "Idle", "peer-address": "192.168.0.1"}
64
+
Value of 'oper-status' not 'is-equal' at '//interface-information/physical-interface[normalize-space(admin-status)='up' and logical-interface/address-family/address-family-name ]' with {"oper-status": "down", "name": "et-0/0/18"}
You must have the [DEPENDENCIES](#dependencies) installed on your system.
84
87
88
+
### NOTICES
89
+
90
+
#### Ubuntu 14.04
91
+
85
92
If you're dealing with Ubuntu 14.04 and faced following error during the installation, it's because the system python which used by Ubuntu 14.04 is locked to 2.7.6 till EOL, as a result, please consider to skip galaxy certification process by appending `-c` option of ansible-galaxy. i.e. `ansible-galaxy install Juniper.junos -c`
86
93
87
-
```
88
-
[WARNING]: - Juniper.junos was NOT installed successfully: Failed to get data
89
-
from the API server (https://galaxy.ansible.com/api/): Failed to validate the
90
-
SSL certificate for galaxy.ansible.com:443. Make sure your managed systems have
91
-
a valid CA certificate installed. If the website serving the url uses SNI you
92
-
need python >= 2.7.9 on your managed machine (the python executable used
93
-
(/usr/bin/python) is version: 2.7.6 (default, Nov 23 2017, 15:49:48) [GCC
94
-
4.8.4]) or you can install the `urllib3`, `pyOpenSSL`, `ndg-httpsclient`, and
95
-
`pyasn1` python modules to perform SNI verification in python >= 2.6. You can
96
-
use validate_certs=False if you do not need to confirm the servers identity but
97
-
this is unsafe and not recommended. Paths checked for this platform:
ERROR! - you can use --ignore-errors to skip failed roles and finish processing the list.
105
110
111
+
### MacOS Mojave and newer
112
+
113
+
In MacOS Mojave and newer (>=10.14), ssh keys created with the system `ssh-keygen` are created using the newer 'OPENSSH' key format, even when specifying `-t rsa` during creation. This directly affects the usage of ssh keys, particularly when using the `ssh_private_key_file`. To create/convert/check keys, follow these steps:
114
+
115
+
- Create a new RSA key: `ssh-keygen -m PEM -t rsa -b 4096`
116
+
- Check existing keys: `head -n1 ~/.ssh/some_private_key` RSA keys will be `-----BEGIN RSA PRIVATE KEY-----` and OPENSSH keys will be `-----BEGIN OPENSSH PRIVATE KEY-----`
117
+
- Convert an OPENSSH key to an RSA key: `ssh-keygen -p -m PEM -f ~/.ssh/some_key`
106
118
107
119
### Ansible Galaxy Role
120
+
108
121
To download the latest released version of the junos role to the Ansible
109
122
server, execute the ansible-galaxy install command, and specify **Juniper.junos**.
To run this as a Docker container, which includes JSNAPy and PyEZ, simply pull it from the Docker hub and run it.
138
-
The following will pull the latest image and run it in an interactive ash shell.
139
-
```
140
-
$ docker run -it --rm juniper/pyez-ansible ash
141
-
```
142
-
Although, you'll probably want to bind mount a host directory (perhaps the directory containing your playbooks and
143
-
associated files). The following will bind mount the current working directory and start the ash shell.
155
+
156
+
To run this as a Docker container, which includes JSNAPy and PyEZ, simply pull it from the Docker hub and run it. The following will pull the latest image and run it in an interactive ash shell.
157
+
158
+
```bash
159
+
docker run -it --rm juniper/pyez-ansible ash
144
160
```
145
-
$ docker run -it --rm -v $PWD:/project juniper/pyez-ansible ash
161
+
162
+
Although, you'll probably want to bind mount a host directory (perhaps the directory containing your playbooks and associated files). The following will bind mount the current working directory and start the ash shell.
163
+
164
+
```bash
165
+
docker run -it --rm -v $PWD:/project juniper/pyez-ansible ash
146
166
```
167
+
147
168
You can also use the container as an executable to run your playbooks. Let's assume we have a typical playbook structure as below:
148
-
```
149
-
example
150
-
|playbook.yml
151
-
|hosts
152
-
|-vars
153
-
|-templates
154
-
|-scripts
155
-
```
169
+
170
+
example
171
+
|playbook.yml
172
+
|hosts
173
+
|-vars
174
+
|-templates
175
+
|-scripts
176
+
156
177
We can move to the example directory and run the playbook with the following command:
0 commit comments