1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459
|
From: Sergio de Almeida Cipriano Junior <sergiosacj@riseup.net>
Date: Tue, 23 Jan 2024 13:53:05 -0300
Subject: Change interpreter from python to python3 in example scripts
Forwarded: not-needed
---
examples/base/nc01.py | 2 +-
examples/base/nc02.py | 2 +-
examples/base/nc03.py | 2 +-
examples/base/nc04.py | 2 +-
examples/base/nc05.py | 2 +-
examples/base/nc06.py | 2 +-
examples/base/nc07.py | 2 +-
examples/base/nc08.py | 2 +-
examples/base/nc09.py | 2 +-
examples/vendor/alu/edit_config.py | 2 +-
examples/vendor/alu/get_config.py | 2 +-
examples/vendor/cisco/nxosapi.py | 2 +-
examples/vendor/ericsson/ericsson_nc_prefix_example.py | 2 +-
examples/vendor/juniper/command-jnpr.py | 2 +-
examples/vendor/juniper/compare-config-jnpr.py | 2 +-
examples/vendor/juniper/delete-config-jnpr.py | 2 +-
examples/vendor/juniper/edit-config-bgp-peer.py | 2 +-
examples/vendor/juniper/edit-config-jnpr-json.py | 2 +-
examples/vendor/juniper/edit-config-jnpr-set.py | 2 +-
examples/vendor/juniper/edit-config-jnpr-text.py | 2 +-
examples/vendor/juniper/edit-config-jnpr.py | 2 +-
examples/vendor/juniper/edit-config-std.py | 2 +-
examples/vendor/juniper/edit-config-text-std.py | 2 +-
examples/vendor/juniper/execute-rpc-string.py | 2 +-
examples/vendor/juniper/execute-rpc.py | 2 +-
examples/vendor/juniper/get-config-jnpr.py | 2 +-
examples/vendor/juniper/get-configuration-jnpr.py | 2 +-
examples/vendor/juniper/get-configuration-matching.py | 2 +-
examples/vendor/juniper/get-interface-status.py | 2 +-
examples/vendor/juniper/get-inventory.py | 2 +-
examples/vendor/juniper/get-session-params.py | 2 +-
examples/vendor/juniper/get-xnm-information.py | 2 +-
examples/vendor/juniper/get_l2vpns.py | 2 +-
examples/vendor/juniper/outbound-ssh-ncclient.py | 2 +-
examples/vendor/juniper/pubkey-auth.py | 2 +-
examples/vendor/juniper/request-reboot.py | 2 +-
examples/vendor/juniper/rollback.py | 2 +-
examples/vendor/juniper/set-description.py | 2 +-
examples/vendor/juniper/unknown-rpc.py | 2 +-
examples/vendor/nokia/sros/get_config.py | 2 +-
examples/vendor/nokia/sros/md_cli_raw_command.py | 2 +-
41 files changed, 41 insertions(+), 41 deletions(-)
diff --git a/examples/base/nc01.py b/examples/base/nc01.py
index a5c9094..c582f78 100644
--- a/examples/base/nc01.py
+++ b/examples/base/nc01.py
@@ -1,4 +1,4 @@
-#! /usr/bin/env python
+#!/usr/bin/python3
#
# Connect to the NETCONF server passed on the command line and
# display their capabilities. This script and the following scripts
diff --git a/examples/base/nc02.py b/examples/base/nc02.py
index e4a8965..3036a43 100644
--- a/examples/base/nc02.py
+++ b/examples/base/nc02.py
@@ -1,4 +1,4 @@
-#! /usr/bin/env python
+#!/usr/bin/python3
#
# Retrieve the running config from the NETCONF server passed on the
# command line using get-config and write the XML configs to files.
diff --git a/examples/base/nc03.py b/examples/base/nc03.py
index becb796..e4fa1a7 100644
--- a/examples/base/nc03.py
+++ b/examples/base/nc03.py
@@ -1,4 +1,4 @@
-#! /usr/bin/env python
+#!/usr/bin/python3
#
# Retrieve a portion selected by an XPATH expression from the running
# config from the NETCONF server passed on the command line using
diff --git a/examples/base/nc04.py b/examples/base/nc04.py
index 7b9cd1b..8f5f530 100644
--- a/examples/base/nc04.py
+++ b/examples/base/nc04.py
@@ -1,4 +1,4 @@
-#! /usr/bin/env python
+#!/usr/bin/python3
#
# Create a new user to the running configuration using edit-config
# and the test-option provided by the :validate capability.
diff --git a/examples/base/nc05.py b/examples/base/nc05.py
index 2575421..1fb04b7 100644
--- a/examples/base/nc05.py
+++ b/examples/base/nc05.py
@@ -1,4 +1,4 @@
-#! /usr/bin/env python
+#!/usr/bin/python3
#
# Delete an existing user from the running configuration using
# edit-config and the test-option provided by the :validate
diff --git a/examples/base/nc06.py b/examples/base/nc06.py
index 6dafab2..01d695c 100644
--- a/examples/base/nc06.py
+++ b/examples/base/nc06.py
@@ -1,4 +1,4 @@
-#! /usr/bin/env python
+#!/usr/bin/python3
#
# Delete a list of existing users from the running configuration using
# edit-config; protect the transaction using a lock.
diff --git a/examples/base/nc07.py b/examples/base/nc07.py
index f78f3a7..8b551cb 100644
--- a/examples/base/nc07.py
+++ b/examples/base/nc07.py
@@ -1,4 +1,4 @@
-#! /usr/bin/env python
+#!/usr/bin/python3
#
# Delete a list of existing users from the running configuration using
# edit-config and the candidate datastore protected by a lock.
diff --git a/examples/base/nc08.py b/examples/base/nc08.py
index 40eab7f..e3ebaf9 100644
--- a/examples/base/nc08.py
+++ b/examples/base/nc08.py
@@ -1,4 +1,4 @@
-#! /usr/bin/env python
+#!/usr/bin/python3
#
# Configure an Interface: its description and make it active.
# XML payload created with lxml/etree instead of a template
diff --git a/examples/base/nc09.py b/examples/base/nc09.py
index a477e7b..92583dd 100644
--- a/examples/base/nc09.py
+++ b/examples/base/nc09.py
@@ -1,4 +1,4 @@
-#! /usr/bin/env python
+#!/usr/bin/python3
#
# Connect to the NETCONF server passed on the command line while passing
# custom capabilities on the default device handler and display the
diff --git a/examples/vendor/alu/edit_config.py b/examples/vendor/alu/edit_config.py
index 5d1595d..de76ced 100644
--- a/examples/vendor/alu/edit_config.py
+++ b/examples/vendor/alu/edit_config.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python3
import logging
from ncclient import manager
diff --git a/examples/vendor/alu/get_config.py b/examples/vendor/alu/get_config.py
index cff21aa..9beb7fc 100644
--- a/examples/vendor/alu/get_config.py
+++ b/examples/vendor/alu/get_config.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python3
import logging
diff --git a/examples/vendor/cisco/nxosapi.py b/examples/vendor/cisco/nxosapi.py
index c423163..691b5d6 100644
--- a/examples/vendor/cisco/nxosapi.py
+++ b/examples/vendor/cisco/nxosapi.py
@@ -1,4 +1,4 @@
-#! /usr/bin/env python
+#!/usr/bin/python3
#
# Connect to the NETCONF server passed on the command line and
# display their capabilities. This script and the following scripts
diff --git a/examples/vendor/ericsson/ericsson_nc_prefix_example.py b/examples/vendor/ericsson/ericsson_nc_prefix_example.py
index 29e569a..563a3c5 100644
--- a/examples/vendor/ericsson/ericsson_nc_prefix_example.py
+++ b/examples/vendor/ericsson/ericsson_nc_prefix_example.py
@@ -1,4 +1,4 @@
-#! /usr/bin/env python
+#!/usr/bin/python3
#
# Connect to the NETCONF server passed on the command line and
# set a device_params to turn on/off the namespace prefix "nc".
diff --git a/examples/vendor/juniper/command-jnpr.py b/examples/vendor/juniper/command-jnpr.py
index 8c20a37..946f466 100644
--- a/examples/vendor/juniper/command-jnpr.py
+++ b/examples/vendor/juniper/command-jnpr.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python3
import logging
import sys
diff --git a/examples/vendor/juniper/compare-config-jnpr.py b/examples/vendor/juniper/compare-config-jnpr.py
index 5aab671..f625cd4 100644
--- a/examples/vendor/juniper/compare-config-jnpr.py
+++ b/examples/vendor/juniper/compare-config-jnpr.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python3
import logging
from ncclient import manager
diff --git a/examples/vendor/juniper/delete-config-jnpr.py b/examples/vendor/juniper/delete-config-jnpr.py
index 2b3f3a4..f567069 100644
--- a/examples/vendor/juniper/delete-config-jnpr.py
+++ b/examples/vendor/juniper/delete-config-jnpr.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python3
import logging
from ncclient import manager
diff --git a/examples/vendor/juniper/edit-config-bgp-peer.py b/examples/vendor/juniper/edit-config-bgp-peer.py
index 9b4c6f5..bb37a78 100644
--- a/examples/vendor/juniper/edit-config-bgp-peer.py
+++ b/examples/vendor/juniper/edit-config-bgp-peer.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python3
import logging
diff --git a/examples/vendor/juniper/edit-config-jnpr-json.py b/examples/vendor/juniper/edit-config-jnpr-json.py
index c5ea2bc..550ec06 100644
--- a/examples/vendor/juniper/edit-config-jnpr-json.py
+++ b/examples/vendor/juniper/edit-config-jnpr-json.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python3
import json
import logging
import sys
diff --git a/examples/vendor/juniper/edit-config-jnpr-set.py b/examples/vendor/juniper/edit-config-jnpr-set.py
index 6241f99..ba421d2 100644
--- a/examples/vendor/juniper/edit-config-jnpr-set.py
+++ b/examples/vendor/juniper/edit-config-jnpr-set.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python3
import sys
import logging
diff --git a/examples/vendor/juniper/edit-config-jnpr-text.py b/examples/vendor/juniper/edit-config-jnpr-text.py
index 76cfb0b..a387810 100644
--- a/examples/vendor/juniper/edit-config-jnpr-text.py
+++ b/examples/vendor/juniper/edit-config-jnpr-text.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python3
import logging
import sys
diff --git a/examples/vendor/juniper/edit-config-jnpr.py b/examples/vendor/juniper/edit-config-jnpr.py
index 42fadec..d822411 100644
--- a/examples/vendor/juniper/edit-config-jnpr.py
+++ b/examples/vendor/juniper/edit-config-jnpr.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python3
import logging
import time
diff --git a/examples/vendor/juniper/edit-config-std.py b/examples/vendor/juniper/edit-config-std.py
index 88feed3..c91e434 100644
--- a/examples/vendor/juniper/edit-config-std.py
+++ b/examples/vendor/juniper/edit-config-std.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python3
import logging
import sys
diff --git a/examples/vendor/juniper/edit-config-text-std.py b/examples/vendor/juniper/edit-config-text-std.py
index 929286a..f2a041c 100644
--- a/examples/vendor/juniper/edit-config-text-std.py
+++ b/examples/vendor/juniper/edit-config-text-std.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python3
import logging
import sys
diff --git a/examples/vendor/juniper/execute-rpc-string.py b/examples/vendor/juniper/execute-rpc-string.py
index 26e33de..fceeb0c 100644
--- a/examples/vendor/juniper/execute-rpc-string.py
+++ b/examples/vendor/juniper/execute-rpc-string.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python3
import logging
from ncclient import manager
diff --git a/examples/vendor/juniper/execute-rpc.py b/examples/vendor/juniper/execute-rpc.py
index cc3a735..b7706fd 100644
--- a/examples/vendor/juniper/execute-rpc.py
+++ b/examples/vendor/juniper/execute-rpc.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python3
import logging
from ncclient import manager
diff --git a/examples/vendor/juniper/get-config-jnpr.py b/examples/vendor/juniper/get-config-jnpr.py
index 96cb902..e345efd 100644
--- a/examples/vendor/juniper/get-config-jnpr.py
+++ b/examples/vendor/juniper/get-config-jnpr.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python3
import logging
from ncclient import manager
diff --git a/examples/vendor/juniper/get-configuration-jnpr.py b/examples/vendor/juniper/get-configuration-jnpr.py
index 5025d85..c52940f 100644
--- a/examples/vendor/juniper/get-configuration-jnpr.py
+++ b/examples/vendor/juniper/get-configuration-jnpr.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python3
import json
import logging
diff --git a/examples/vendor/juniper/get-configuration-matching.py b/examples/vendor/juniper/get-configuration-matching.py
index a6d941e..88963d6 100644
--- a/examples/vendor/juniper/get-configuration-matching.py
+++ b/examples/vendor/juniper/get-configuration-matching.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python3
import logging
import sys
diff --git a/examples/vendor/juniper/get-interface-status.py b/examples/vendor/juniper/get-interface-status.py
index ec59e75..242f4b2 100644
--- a/examples/vendor/juniper/get-interface-status.py
+++ b/examples/vendor/juniper/get-interface-status.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python3
# Python script to fetch interface name and their operation status
import sys
diff --git a/examples/vendor/juniper/get-inventory.py b/examples/vendor/juniper/get-inventory.py
index 5ca53cb..88f37bc 100644
--- a/examples/vendor/juniper/get-inventory.py
+++ b/examples/vendor/juniper/get-inventory.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python3
import logging
import sys
diff --git a/examples/vendor/juniper/get-session-params.py b/examples/vendor/juniper/get-session-params.py
index 2e47a87..0a93e96 100644
--- a/examples/vendor/juniper/get-session-params.py
+++ b/examples/vendor/juniper/get-session-params.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python3
import logging
import sys
diff --git a/examples/vendor/juniper/get-xnm-information.py b/examples/vendor/juniper/get-xnm-information.py
index 2bbdb49..fe4497e 100644
--- a/examples/vendor/juniper/get-xnm-information.py
+++ b/examples/vendor/juniper/get-xnm-information.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python3
import logging
import os
diff --git a/examples/vendor/juniper/get_l2vpns.py b/examples/vendor/juniper/get_l2vpns.py
index eb14ecf..b583b81 100644
--- a/examples/vendor/juniper/get_l2vpns.py
+++ b/examples/vendor/juniper/get_l2vpns.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python3
import logging
from ncclient import manager
diff --git a/examples/vendor/juniper/outbound-ssh-ncclient.py b/examples/vendor/juniper/outbound-ssh-ncclient.py
index 3883a71..5ad42ec 100644
--- a/examples/vendor/juniper/outbound-ssh-ncclient.py
+++ b/examples/vendor/juniper/outbound-ssh-ncclient.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python3
"""
Listen on TCP port 2200 for incoming SSH session from Junos devices with
diff --git a/examples/vendor/juniper/pubkey-auth.py b/examples/vendor/juniper/pubkey-auth.py
index e642469..1e77909 100644
--- a/examples/vendor/juniper/pubkey-auth.py
+++ b/examples/vendor/juniper/pubkey-auth.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python3
import logging
import sys
diff --git a/examples/vendor/juniper/request-reboot.py b/examples/vendor/juniper/request-reboot.py
index f53aa6d..19bb5ee 100644
--- a/examples/vendor/juniper/request-reboot.py
+++ b/examples/vendor/juniper/request-reboot.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python3
import logging
import sys
import time
diff --git a/examples/vendor/juniper/rollback.py b/examples/vendor/juniper/rollback.py
index 9aea644..9b0d701 100644
--- a/examples/vendor/juniper/rollback.py
+++ b/examples/vendor/juniper/rollback.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python3
import logging
import sys
diff --git a/examples/vendor/juniper/set-description.py b/examples/vendor/juniper/set-description.py
index dc72f4a..15c13b0 100644
--- a/examples/vendor/juniper/set-description.py
+++ b/examples/vendor/juniper/set-description.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python3
import logging
import sys
diff --git a/examples/vendor/juniper/unknown-rpc.py b/examples/vendor/juniper/unknown-rpc.py
index 80e4102..fcf871f 100644
--- a/examples/vendor/juniper/unknown-rpc.py
+++ b/examples/vendor/juniper/unknown-rpc.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python3
import logging
from ncclient import manager
diff --git a/examples/vendor/nokia/sros/get_config.py b/examples/vendor/nokia/sros/get_config.py
index c8ee3e0..8334238 100644
--- a/examples/vendor/nokia/sros/get_config.py
+++ b/examples/vendor/nokia/sros/get_config.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python3
#
import logging
diff --git a/examples/vendor/nokia/sros/md_cli_raw_command.py b/examples/vendor/nokia/sros/md_cli_raw_command.py
index d40215a..e5660eb 100644
--- a/examples/vendor/nokia/sros/md_cli_raw_command.py
+++ b/examples/vendor/nokia/sros/md_cli_raw_command.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python3
#
# For Nokia SR OS > 20.10, support for issuing a subset of CLI commands
# (e.g. 'show', 'admin', 'clear', 'ping', etc..) over NETCONF RPCs is
|