Browse Source

Fix pep8 errors E117 over-indented

This commit fixes pep8 erros "E117 over-indented".

Change-Id: I619cae3f6e87bd6b7177ca2af59ca38334cf3693
Masayuki Igawa 2 months ago
parent
commit
5e55bc78b2
No account linked to committer's email address

+ 18
- 18
networking_generic_switch/devices/netmiko_devices/arista.py View File

@@ -16,24 +16,24 @@ from networking_generic_switch.devices import netmiko_devices
16 16
 
17 17
 
18 18
 class AristaEos(netmiko_devices.NetmikoSwitch):
19
-        ADD_NETWORK = (
20
-            'vlan {segmentation_id}',
21
-            'name {network_id}',
22
-        )
19
+    ADD_NETWORK = (
20
+        'vlan {segmentation_id}',
21
+        'name {network_id}',
22
+    )
23 23
 
24
-        DELETE_NETWORK = (
25
-            'no vlan {segmentation_id}',
26
-        )
24
+    DELETE_NETWORK = (
25
+        'no vlan {segmentation_id}',
26
+    )
27 27
 
28
-        PLUG_PORT_TO_NETWORK = (
29
-            'interface {port}',
30
-            'switchport mode access',
31
-            'switchport access vlan {segmentation_id}',
32
-        )
28
+    PLUG_PORT_TO_NETWORK = (
29
+        'interface {port}',
30
+        'switchport mode access',
31
+        'switchport access vlan {segmentation_id}',
32
+    )
33 33
 
34
-        DELETE_PORT = (
35
-            'interface {port}',
36
-            'no switchport access vlan {segmentation_id}',
37
-            'no switchport mode trunk',
38
-            'switchport trunk allowed vlan none'
39
-        )
34
+    DELETE_PORT = (
35
+        'interface {port}',
36
+        'no switchport access vlan {segmentation_id}',
37
+        'no switchport mode trunk',
38
+        'switchport trunk allowed vlan none'
39
+    )

+ 18
- 18
networking_generic_switch/devices/netmiko_devices/cisco.py View File

@@ -16,24 +16,24 @@ from networking_generic_switch.devices import netmiko_devices
16 16
 
17 17
 
18 18
 class CiscoIos(netmiko_devices.NetmikoSwitch):
19
-        ADD_NETWORK = (
20
-            'vlan {segmentation_id}',
21
-            'name {network_id}',
22
-        )
19
+    ADD_NETWORK = (
20
+        'vlan {segmentation_id}',
21
+        'name {network_id}',
22
+    )
23 23
 
24
-        DELETE_NETWORK = (
25
-            'no vlan {segmentation_id}',
26
-        )
24
+    DELETE_NETWORK = (
25
+        'no vlan {segmentation_id}',
26
+    )
27 27
 
28
-        PLUG_PORT_TO_NETWORK = (
29
-            'interface {port}',
30
-            'switchport mode access',
31
-            'switchport access vlan {segmentation_id}',
32
-        )
28
+    PLUG_PORT_TO_NETWORK = (
29
+        'interface {port}',
30
+        'switchport mode access',
31
+        'switchport access vlan {segmentation_id}',
32
+    )
33 33
 
34
-        DELETE_PORT = (
35
-            'interface {port}',
36
-            'no switchport access vlan {segmentation_id}',
37
-            'no switchport mode trunk',
38
-            'switchport trunk allowed vlan none'
39
-        )
34
+    DELETE_PORT = (
35
+        'interface {port}',
36
+        'no switchport access vlan {segmentation_id}',
37
+        'no switchport mode trunk',
38
+        'switchport trunk allowed vlan none'
39
+    )

+ 16
- 16
networking_generic_switch/devices/netmiko_devices/cisco300.py View File

@@ -21,22 +21,22 @@ from networking_generic_switch.devices import netmiko_devices
21 21
 
22 22
 
23 23
 class Cisco300(netmiko_devices.NetmikoSwitch):
24
-        ADD_NETWORK = (
25
-            'vlan {segmentation_id}',
26
-        )
24
+    ADD_NETWORK = (
25
+        'vlan {segmentation_id}',
26
+    )
27 27
 
28
-        DELETE_NETWORK = (
29
-            'no vlan {segmentation_id}',
30
-        )
28
+    DELETE_NETWORK = (
29
+        'no vlan {segmentation_id}',
30
+    )
31 31
 
32
-        PLUG_PORT_TO_NETWORK = (
33
-            'interface {port}',
34
-            'switchport mode access',
35
-            'switchport access vlan {segmentation_id}',
36
-        )
32
+    PLUG_PORT_TO_NETWORK = (
33
+        'interface {port}',
34
+        'switchport mode access',
35
+        'switchport access vlan {segmentation_id}',
36
+    )
37 37
 
38
-        DELETE_PORT = (
39
-            'interface {port}',
40
-            'no switchport access vlan',
41
-            'switchport trunk allowed vlan remove all',
42
-        )
38
+    DELETE_PORT = (
39
+        'interface {port}',
40
+        'no switchport access vlan',
41
+        'switchport trunk allowed vlan remove all',
42
+    )

+ 9
- 9
networking_generic_switch/devices/netmiko_devices/ovs.py View File

@@ -17,13 +17,13 @@ from networking_generic_switch.devices import netmiko_devices
17 17
 
18 18
 class OvsLinux(netmiko_devices.NetmikoSwitch):
19 19
 
20
-        PLUG_PORT_TO_NETWORK = (
21
-            'ovs-vsctl set port {port} vlan_mode=access',
22
-            'ovs-vsctl set port {port} tag={segmentation_id}',
23
-        )
20
+    PLUG_PORT_TO_NETWORK = (
21
+        'ovs-vsctl set port {port} vlan_mode=access',
22
+        'ovs-vsctl set port {port} tag={segmentation_id}',
23
+    )
24 24
 
25
-        DELETE_PORT = (
26
-            'ovs-vsctl clear port {port} tag',
27
-            'ovs-vsctl clear port {port} trunks',
28
-            'ovs-vsctl clear port {port} vlan_mode'
29
-        )
25
+    DELETE_PORT = (
26
+        'ovs-vsctl clear port {port} tag',
27
+        'ovs-vsctl clear port {port} trunks',
28
+        'ovs-vsctl clear port {port} vlan_mode'
29
+    )

Loading…
Cancel
Save