Skip to content

Commit 1e1a7cd

Browse files
committed
Deprecate ROUTES
1 parent d3848e4 commit 1e1a7cd

5 files changed

Lines changed: 13 additions & 18 deletions

File tree

openvpn_client_connect/client_connect.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -126,11 +126,6 @@ def __init__(self, conf_file):
126126
self.routes_4 = []
127127
if _config.has_section('static-mapping'):
128128
try:
129-
try:
130-
self.routes_4 = ast.literal_eval(
131-
_config.get('static-mapping', 'ROUTES'))
132-
except configparser.NoOptionError:
133-
pass
134129
self.routes_4 = ast.literal_eval(
135130
_config.get('static-mapping', 'ROUTES_4'))
136131
except configparser.NoOptionError:

test_configs/doubleup.conf

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ COMPREHENSIVE_OFFICE_ROUTES = [ '10.192.0.0/10' ]
4949
[static-mapping]
5050

5151
# This is the list of preconfigured static routes
52-
ROUTES = [
53-
'10.20.75.120 255.255.255.255',
54-
'63.6.7.8 255.255.255.255 net_gateway',
55-
]
52+
ROUTES_4 = [
53+
'10.20.75.120 255.255.255.255',
54+
'63.6.7.8 255.255.255.255 net_gateway',
55+
]

test_configs/tcp4_static.conf

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ GLOBAL_SEARCH_DOMAINS = [
2323
[static-mapping]
2424

2525
# This is the list of preconfigured static routes
26-
ROUTES = [
27-
'10.20.75.120 255.255.255.255',
28-
'63.6.7.8 255.255.255.255 net_gateway',
29-
]
26+
ROUTES_4 = [
27+
'10.20.75.120 255.255.255.255',
28+
'63.6.7.8 255.255.255.255 net_gateway',
29+
]

test_configs/udp4_static.conf

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ GLOBAL_SEARCH_DOMAINS = [
2323
[static-mapping]
2424

2525
# This is the list of preconfigured static routes
26-
ROUTES = [
27-
'10.20.75.120 255.255.255.255',
28-
'63.6.7.8 255.255.255.255 net_gateway',
29-
]
26+
ROUTES_4 = [
27+
'10.20.75.120 255.255.255.255',
28+
'63.6.7.8 255.255.255.255 net_gateway',
29+
]

test_configs/wrongvals.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,4 @@ COMPREHENSIVE_OFFICE_ROUTES = '10.192.0.0/10'
3535
[static-mapping]
3636

3737
# This is the list of preconfigured static routes
38-
ROUTES = '10.20.75.120 255.255.255.255'
38+
ROUTES_4 = '10.20.75.120 255.255.255.255'

0 commit comments

Comments
 (0)