forked from pool/python-napalm
- version update to 3.4.0
Junos
Junos discard_config on error fix #1448
Junos LLDP improvements #1470
Junos pass self.ignore_warning to diff call in compare_config() #1480
NX-OS
Improve NX-API error messages #1461
NX-OS disable SSL InsecureRequestWarning if ssl_verify is False #1510
NX-OS unknown interface MTU and unknown speed as -1 #1511
NX-OS improve JSON handling in newer NX-OS versions #1490
IOS
IOS allow BGP configuration with no explicit AFI #1477
Escape vlan_name on IOS before building regex string #1546
Handle get_network_instances for IOS devices that do not support show vrf detail #1547
EOS
EOS fix get_bgp_config mismatch between neighbors and peer-group #1503
IOS-XR
Pass IOS-XR NETCONF optional_args to ncclient connect #1535
General
Bandwidth parameter returned as a float
Pin Netmiko to require Netmiko version 3.3.X or 3.4.X
- added patches
fix https://github.com/napalm-automation/napalm/issues/1594
+ python-napalm-no-mock.patch
OBS-URL: https://build.opensuse.org/request/show/964663
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-napalm?expand=0&rev=20
37 lines
1.3 KiB
Diff
37 lines
1.3 KiB
Diff
Index: napalm-3.4.0/test/nxos/test_getters.py
|
|
===================================================================
|
|
--- napalm-3.4.0.orig/test/nxos/test_getters.py 2022-02-12 19:54:06.000000000 +0100
|
|
+++ napalm-3.4.0/test/nxos/test_getters.py 2022-03-24 13:25:06.984241556 +0100
|
|
@@ -5,7 +5,7 @@ from napalm.base.test import helpers
|
|
from napalm.base.test import models
|
|
|
|
import pytest
|
|
-from mock import patch
|
|
+from unittest.mock import patch
|
|
|
|
|
|
def mock_time():
|
|
Index: napalm-3.4.0/test/nxos_ssh/test_getters.py
|
|
===================================================================
|
|
--- napalm-3.4.0.orig/test/nxos_ssh/test_getters.py 2022-02-12 19:54:06.000000000 +0100
|
|
+++ napalm-3.4.0/test/nxos_ssh/test_getters.py 2022-03-24 13:24:34.132045526 +0100
|
|
@@ -5,7 +5,7 @@ from napalm.base.test import helpers
|
|
from napalm.base.test import models
|
|
|
|
import pytest
|
|
-from mock import patch
|
|
+from unittest.mock import patch
|
|
|
|
|
|
def mock_time():
|
|
Index: napalm-3.4.0/test/eos/test_heredoc.py
|
|
===================================================================
|
|
--- napalm-3.4.0.orig/test/eos/test_heredoc.py 2022-02-12 19:54:06.000000000 +0100
|
|
+++ napalm-3.4.0/test/eos/test_heredoc.py 2022-03-24 13:27:07.968963492 +0100
|
|
@@ -1,4 +1,4 @@
|
|
-import mock
|
|
+import unittest.mock as mock
|
|
import pytest
|
|
from textwrap import dedent
|
|
|