File tree Expand file tree Collapse file tree 2 files changed +2
-21
lines changed Expand file tree Collapse file tree 2 files changed +2
-21
lines changed Original file line number Diff line number Diff line change 47
47
import traceback
48
48
import subprocess
49
49
50
- from ipaddress import ip_network
51
50
from swsscommon import swsscommon
52
51
from utilities_common import chassis
53
52
@@ -146,7 +145,7 @@ def add_prefix(ip):
146
145
ip = ip + PREFIX_SEPARATOR + "32"
147
146
else :
148
147
ip = ip + PREFIX_SEPARATOR + "128"
149
- return str ( ip_network ( ip ))
148
+ return ip
150
149
151
150
152
151
def add_prefix_ifnot (ip ):
@@ -155,7 +154,7 @@ def add_prefix_ifnot(ip):
155
154
:param ip: IP to add prefix as string.
156
155
:return ip with prefix
157
156
"""
158
- return str ( ip_network ( ip )) if ip .find (PREFIX_SEPARATOR ) != - 1 else add_prefix (ip )
157
+ return ip if ip .find (PREFIX_SEPARATOR ) != - 1 else add_prefix (ip )
159
158
160
159
161
160
def is_local (ip ):
Original file line number Diff line number Diff line change 462
462
},
463
463
RET : - 1 ,
464
464
},
465
- "10" : {
466
- DESCR : "basic good one with IPv6 address" ,
467
- ARGS : "route_check -m INFO -i 1000" ,
468
- PRE : {
469
- APPL_DB : {
470
- ROUTE_TABLE : {
471
- },
472
- INTF_TABLE : {
473
- "PortChannel1013:2000:31:0:0::1/64" : {},
474
- }
475
- },
476
- ASIC_DB : {
477
- RT_ENTRY_TABLE : {
478
- RT_ENTRY_KEY_PREFIX + "2000:31::1/128" + RT_ENTRY_KEY_SUFFIX : {},
479
- }
480
- }
481
- }
482
- },
483
465
}
You can’t perform that action at this time.
0 commit comments