summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMasayuki Igawa <masayuki@igawa.io>2019-02-05 12:32:13 +0900
committerMasayuki Igawa <masayuki@igawa.io>2019-02-05 12:32:13 +0900
commit5e55bc78b2d3950b415a193adaee428e5870a6c5 (patch)
treee83fe5a1fd51d6227d287252146e1a86221ceab6
parent59be4054c55c334c622e69bcfdd717192fadffeb (diff)
Fix pep8 errors E117 over-indentedHEADmaster
This commit fixes pep8 erros "E117 over-indented". Change-Id: I619cae3f6e87bd6b7177ca2af59ca38334cf3693
Notes
Notes (review): Code-Review+1: Dhanuka Warusadura <csx@tuta.io> Code-Review+2: Mark Goddard <mark@stackhpc.com> Code-Review+2: Kaifeng Wang <kaifeng.w@gmail.com> Workflow+1: Kaifeng Wang <kaifeng.w@gmail.com> Verified+2: Zuul Submitted-by: Zuul Submitted-at: Tue, 05 Feb 2019 16:54:11 +0000 Reviewed-on: https://review.openstack.org/634849 Project: openstack/networking-generic-switch Branch: refs/heads/master
-rw-r--r--networking_generic_switch/devices/netmiko_devices/arista.py36
-rw-r--r--networking_generic_switch/devices/netmiko_devices/cisco.py36
-rw-r--r--networking_generic_switch/devices/netmiko_devices/cisco300.py32
-rw-r--r--networking_generic_switch/devices/netmiko_devices/ovs.py18
4 files changed, 61 insertions, 61 deletions
diff --git a/networking_generic_switch/devices/netmiko_devices/arista.py b/networking_generic_switch/devices/netmiko_devices/arista.py
index 36a644e..0d0a427 100644
--- a/networking_generic_switch/devices/netmiko_devices/arista.py
+++ b/networking_generic_switch/devices/netmiko_devices/arista.py
@@ -16,24 +16,24 @@ from networking_generic_switch.devices import netmiko_devices
16 16
17 17
18class AristaEos(netmiko_devices.NetmikoSwitch): 18class AristaEos(netmiko_devices.NetmikoSwitch):
19 ADD_NETWORK = ( 19 ADD_NETWORK = (
20 'vlan {segmentation_id}', 20 'vlan {segmentation_id}',
21 'name {network_id}', 21 'name {network_id}',
22 ) 22 )
23 23
24 DELETE_NETWORK = ( 24 DELETE_NETWORK = (
25 'no vlan {segmentation_id}', 25 'no vlan {segmentation_id}',
26 ) 26 )
27 27
28 PLUG_PORT_TO_NETWORK = ( 28 PLUG_PORT_TO_NETWORK = (
29 'interface {port}', 29 'interface {port}',
30 'switchport mode access', 30 'switchport mode access',
31 'switchport access vlan {segmentation_id}', 31 'switchport access vlan {segmentation_id}',
32 ) 32 )
33 33
34 DELETE_PORT = ( 34 DELETE_PORT = (
35 'interface {port}', 35 'interface {port}',
36 'no switchport access vlan {segmentation_id}', 36 'no switchport access vlan {segmentation_id}',
37 'no switchport mode trunk', 37 'no switchport mode trunk',
38 'switchport trunk allowed vlan none' 38 'switchport trunk allowed vlan none'
39 ) 39 )
diff --git a/networking_generic_switch/devices/netmiko_devices/cisco.py b/networking_generic_switch/devices/netmiko_devices/cisco.py
index 0b45d5c..d5c3dea 100644
--- a/networking_generic_switch/devices/netmiko_devices/cisco.py
+++ b/networking_generic_switch/devices/netmiko_devices/cisco.py
@@ -16,24 +16,24 @@ from networking_generic_switch.devices import netmiko_devices
16 16
17 17
18class CiscoIos(netmiko_devices.NetmikoSwitch): 18class CiscoIos(netmiko_devices.NetmikoSwitch):
19 ADD_NETWORK = ( 19 ADD_NETWORK = (
20 'vlan {segmentation_id}', 20 'vlan {segmentation_id}',
21 'name {network_id}', 21 'name {network_id}',
22 ) 22 )
23 23
24 DELETE_NETWORK = ( 24 DELETE_NETWORK = (
25 'no vlan {segmentation_id}', 25 'no vlan {segmentation_id}',
26 ) 26 )
27 27
28 PLUG_PORT_TO_NETWORK = ( 28 PLUG_PORT_TO_NETWORK = (
29 'interface {port}', 29 'interface {port}',
30 'switchport mode access', 30 'switchport mode access',
31 'switchport access vlan {segmentation_id}', 31 'switchport access vlan {segmentation_id}',
32 ) 32 )
33 33
34 DELETE_PORT = ( 34 DELETE_PORT = (
35 'interface {port}', 35 'interface {port}',
36 'no switchport access vlan {segmentation_id}', 36 'no switchport access vlan {segmentation_id}',
37 'no switchport mode trunk', 37 'no switchport mode trunk',
38 'switchport trunk allowed vlan none' 38 'switchport trunk allowed vlan none'
39 ) 39 )
diff --git a/networking_generic_switch/devices/netmiko_devices/cisco300.py b/networking_generic_switch/devices/netmiko_devices/cisco300.py
index a4b1d22..62080a3 100644
--- a/networking_generic_switch/devices/netmiko_devices/cisco300.py
+++ b/networking_generic_switch/devices/netmiko_devices/cisco300.py
@@ -21,22 +21,22 @@ from networking_generic_switch.devices import netmiko_devices
21 21
22 22
23class Cisco300(netmiko_devices.NetmikoSwitch): 23class Cisco300(netmiko_devices.NetmikoSwitch):
24 ADD_NETWORK = ( 24 ADD_NETWORK = (
25 'vlan {segmentation_id}', 25 'vlan {segmentation_id}',
26 ) 26 )
27 27
28 DELETE_NETWORK = ( 28 DELETE_NETWORK = (
29 'no vlan {segmentation_id}', 29 'no vlan {segmentation_id}',
30 ) 30 )
31 31
32 PLUG_PORT_TO_NETWORK = ( 32 PLUG_PORT_TO_NETWORK = (
33 'interface {port}', 33 'interface {port}',
34 'switchport mode access', 34 'switchport mode access',
35 'switchport access vlan {segmentation_id}', 35 'switchport access vlan {segmentation_id}',
36 ) 36 )
37 37
38 DELETE_PORT = ( 38 DELETE_PORT = (
39 'interface {port}', 39 'interface {port}',
40 'no switchport access vlan', 40 'no switchport access vlan',
41 'switchport trunk allowed vlan remove all', 41 'switchport trunk allowed vlan remove all',
42 ) 42 )
diff --git a/networking_generic_switch/devices/netmiko_devices/ovs.py b/networking_generic_switch/devices/netmiko_devices/ovs.py
index 5c2d560..7409b3a 100644
--- a/networking_generic_switch/devices/netmiko_devices/ovs.py
+++ b/networking_generic_switch/devices/netmiko_devices/ovs.py
@@ -17,13 +17,13 @@ from networking_generic_switch.devices import netmiko_devices
17 17
18class OvsLinux(netmiko_devices.NetmikoSwitch): 18class OvsLinux(netmiko_devices.NetmikoSwitch):
19 19
20 PLUG_PORT_TO_NETWORK = ( 20 PLUG_PORT_TO_NETWORK = (
21 'ovs-vsctl set port {port} vlan_mode=access', 21 'ovs-vsctl set port {port} vlan_mode=access',
22 'ovs-vsctl set port {port} tag={segmentation_id}', 22 'ovs-vsctl set port {port} tag={segmentation_id}',
23 ) 23 )
24 24
25 DELETE_PORT = ( 25 DELETE_PORT = (
26 'ovs-vsctl clear port {port} tag', 26 'ovs-vsctl clear port {port} tag',
27 'ovs-vsctl clear port {port} trunks', 27 'ovs-vsctl clear port {port} trunks',
28 'ovs-vsctl clear port {port} vlan_mode' 28 'ovs-vsctl clear port {port} vlan_mode'
29 ) 29 )