File tree Expand file tree Collapse file tree
netjsonconfig/backends/airos Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -13,10 +13,8 @@ class AirOs(BaseBackend):
1313 """
1414 AirOS backend
1515 """
16-
1716 # backend schema validator
1817 schema = schema
19-
2018 # converters from configuration
2119 # dictionary to intermediate representation
2220 converters = [
@@ -45,13 +43,11 @@ class AirOs(BaseBackend):
4543 Users ,
4644 Vlan ,
4745 Wireless ,
48- Wpasupplicant
46+ Wpasupplicant ,
4947 ]
50-
5148 # the environment where airos
5249 # templates lives
5350 env_path = 'netjsonconfig.backends.airos'
54-
5551 renderer = AirOsRenderer
5652
5753 def to_intermediate (self ):
@@ -89,7 +85,7 @@ def intermediate_to_list(configuration):
8985 ])
9086 >>>
9187 [{
92- 'spam.eggs' : 'spam and eggs'
88+ 'spam.eggs' : 'spam and eggs'
9389 ]}
9490
9591 >>> intermediate_to_list([
@@ -109,15 +105,15 @@ def intermediate_to_list(configuration):
109105 ])
110106 >>>
111107 [
112- {
113- 'spam.eggs' : 'spam and eggs'
114- },
115- {
116- '1.henry' : 'the first'
117- },
118- {
119- '2.jacob' : 'the second'
120- }
108+ {
109+ 'spam.eggs' : 'spam and eggs'
110+ },
111+ {
112+ '1.henry' : 'the first'
113+ },
114+ {
115+ '2.jacob' : 'the second'
116+ }
121117 ]
122118 """
123119
You can’t perform that action at this time.
0 commit comments