Skip to content

Commit da2b7d3

Browse files
committed
[airos] fixed indentation issues for dictionaries
1 parent a9b65c2 commit da2b7d3

1 file changed

Lines changed: 55 additions & 55 deletions

File tree

netjsonconfig/backends/airos/converters.py

Lines changed: 55 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -147,9 +147,9 @@ def to_intermediate(self):
147147
# 'servicename': 'dyndns.org',
148148
# },
149149
# ],
150-
{
151-
'status': 'disabled',
152-
},
150+
{
151+
'status': 'disabled',
152+
},
153153
]
154154
return (('dyndns', result),)
155155

@@ -159,15 +159,15 @@ class Ebtables(AirOsConverter):
159159

160160
def to_intermediate(self):
161161
result = [
162-
{
163-
'sys': {
164-
'fw': {
165-
'status': 'disabled',
166-
},
167-
'status': 'enabled',
162+
{
163+
'sys': {
164+
'fw': {
165+
'status': 'disabled',
168166
},
169167
'status': 'enabled',
170168
},
169+
'status': 'enabled',
170+
},
171171
]
172172

173173
return (('ebtables', result),)
@@ -178,16 +178,16 @@ class Gui(AirOsConverter):
178178

179179
def to_intermediate(self):
180180
result = [
181-
{
182-
'language': 'en_US',
183-
},
184-
{
185-
'network': {
186-
'advanced': {
187-
'status': 'enabled',
188-
}
181+
{
182+
'language': 'en_US',
183+
},
184+
{
185+
'network': {
186+
'advanced': {
187+
'status': 'enabled',
189188
}
190189
}
190+
}
191191
]
192192
return (('gui', result),)
193193

@@ -197,19 +197,19 @@ class Httpd(AirOsConverter):
197197

198198
def to_intermediate(self):
199199
result = [
200-
{
201-
'https': {
202-
'port': 443,
203-
'status': 'enabled',
204-
},
205-
},
206-
{
207-
'port': 80,
208-
'session': {
209-
'timeout': 900,
210-
},
200+
{
201+
'https': {
202+
'port': 443,
211203
'status': 'enabled',
212204
},
205+
},
206+
{
207+
'port': 80,
208+
'session': {
209+
'timeout': 900,
210+
},
211+
'status': 'enabled',
212+
},
213213
]
214214

215215
return (('httpd', result),)
@@ -220,9 +220,9 @@ class Igmpproxy(AirOsConverter):
220220

221221
def to_intermediate(self):
222222
result = [
223-
{
224-
'status': 'disabled',
225-
},
223+
{
224+
'status': 'disabled',
225+
},
226226
]
227227

228228
return (('igmpproxy', result),)
@@ -233,15 +233,15 @@ class Iptables(AirOsConverter):
233233

234234
def to_intermediate(self):
235235
result = [
236-
{
237-
'sys': {
238-
'portfw': {
239-
'status': 'disabled',
240-
},
241-
'status': 'enabled',
242-
},
243-
'status': 'disabled',
244-
},
236+
{
237+
'sys': {
238+
'portfw': {
239+
'status': 'disabled',
240+
},
241+
'status': 'enabled',
242+
},
243+
'status': 'disabled',
244+
},
245245
]
246246

247247
return (('iptables', result),)
@@ -274,13 +274,13 @@ def to_intermediate(self):
274274
if interface['type'] == 'ethernet' and '.' not in interface['name']:
275275
base['autoneg'] = 'enabled'
276276
base['flowcontrol'] = {
277-
'rx': {
278-
'status': 'enabled',
279-
},
280-
'tx': {
281-
'status': 'enabled',
282-
},
283-
}
277+
'rx': {
278+
'status': 'enabled',
279+
},
280+
'tx': {
281+
'status': 'enabled',
282+
},
283+
}
284284

285285
if interface['type'] == 'wireless':
286286
base['devname'] = interface['wireless']['radio']
@@ -311,8 +311,8 @@ def to_intermediate(self):
311311
# an interface without address
312312
# is still valid with these defaults values
313313
base['autoip'] = {
314-
'status': 'disabled',
315-
}
314+
'status': 'disabled',
315+
}
316316
interfaces.append(base)
317317

318318
result.append(interfaces)
@@ -476,12 +476,12 @@ class Snmp(AirOsConverter):
476476

477477
def to_intermediate(self):
478478
result = [
479-
{
480-
'community': 'public',
481-
'contact': '',
482-
'location': '',
483-
'status': 'enabled',
484-
},
479+
{
480+
'community': 'public',
481+
'contact': '',
482+
'location': '',
483+
'status': 'enabled',
484+
},
485485
]
486486

487487
return (('snmp', result),)

0 commit comments

Comments
 (0)