1
0
mirror of https://github.com/GNS3/gns3-server synced 2025-02-17 18:42:00 +00:00

Auto PEP8 cleanup

This commit is contained in:
Julien Duponchelle 2015-02-13 14:43:28 +01:00
parent a4669689e7
commit 68427eaddf
53 changed files with 66 additions and 18 deletions

View File

@ -17,6 +17,7 @@
class Adapter(object):
"""
Base class for adapters.

View File

@ -19,6 +19,7 @@ from .adapter import Adapter
class C1700_MB_1FE(Adapter):
"""
Integrated 1 port FastEthernet adapter for c1700 platform.
"""

View File

@ -19,6 +19,7 @@ from .adapter import Adapter
class C1700_MB_WIC1(Adapter):
"""
Fake module to provide a placeholder for slot 1 interfaces when WICs
are inserted into WIC slot 1.

View File

@ -19,6 +19,7 @@ from .adapter import Adapter
class C2600_MB_1E(Adapter):
"""
Integrated 1 port Ethernet adapter for the c2600 platform.
"""

View File

@ -19,6 +19,7 @@ from .adapter import Adapter
class C2600_MB_1FE(Adapter):
"""
Integrated 1 port FastEthernet adapter for the c2600 platform.
"""

View File

@ -19,6 +19,7 @@ from .adapter import Adapter
class C2600_MB_2E(Adapter):
"""
Integrated 2 port Ethernet adapter for the c2600 platform.
"""

View File

@ -19,6 +19,7 @@ from .adapter import Adapter
class C2600_MB_2FE(Adapter):
"""
Integrated 2 port FastEthernet adapter for the c2600 platform.
"""

View File

@ -19,6 +19,7 @@ from .adapter import Adapter
class C7200_IO_2FE(Adapter):
"""
C7200-IO-2FE FastEthernet Input/Ouput controller.
"""

View File

@ -19,6 +19,7 @@ from .adapter import Adapter
class C7200_IO_FE(Adapter):
"""
C7200-IO-FE FastEthernet Input/Ouput controller.
"""

View File

@ -19,6 +19,7 @@ from .adapter import Adapter
class C7200_IO_GE_E(Adapter):
"""
C7200-IO-GE-E GigabitEthernet Input/Ouput controller.
"""

View File

@ -19,6 +19,7 @@ from .adapter import Adapter
class Leopard_2FE(Adapter):
"""
Integrated 2 port FastEthernet adapter for c3660 router.
"""

View File

@ -19,6 +19,7 @@ from .adapter import Adapter
class NM_16ESW(Adapter):
"""
NM-16ESW FastEthernet network module.
"""

View File

@ -19,6 +19,7 @@ from .adapter import Adapter
class NM_1E(Adapter):
"""
NM-1E Ethernet network module.
"""

View File

@ -19,6 +19,7 @@ from .adapter import Adapter
class NM_1FE_TX(Adapter):
"""
NM-1FE-TX FastEthernet network module.
"""

View File

@ -19,6 +19,7 @@ from .adapter import Adapter
class NM_4E(Adapter):
"""
NM-4E Ethernet network module.
"""

View File

@ -19,6 +19,7 @@ from .adapter import Adapter
class NM_4T(Adapter):
"""
NM-4T Serial network module.
"""

View File

@ -19,6 +19,7 @@ from .adapter import Adapter
class PA_2FE_TX(Adapter):
"""
PA-2FE-TX FastEthernet port adapter.
"""

View File

@ -19,6 +19,7 @@ from .adapter import Adapter
class PA_4E(Adapter):
"""
PA-4E Ethernet port adapter.
"""

View File

@ -19,6 +19,7 @@ from .adapter import Adapter
class PA_4T(Adapter):
"""
PA-4T+ Serial port adapter.
"""

View File

@ -19,6 +19,7 @@ from .adapter import Adapter
class PA_8E(Adapter):
"""
PA-8E Ethernet port adapter.
"""

View File

@ -19,6 +19,7 @@ from .adapter import Adapter
class PA_8T(Adapter):
"""
PA-8T Serial port adapter.
"""

View File

@ -19,6 +19,7 @@ from .adapter import Adapter
class PA_A1(Adapter):
"""
PA-A1 ATM port adapter.
"""

View File

@ -19,6 +19,7 @@ from .adapter import Adapter
class PA_FE_TX(Adapter):
"""
PA-FE-TX FastEthernet port adapter.
"""

View File

@ -19,6 +19,7 @@ from .adapter import Adapter
class PA_GE(Adapter):
"""
PA-GE GigabitEthernet port adapter.
"""

View File

@ -19,6 +19,7 @@ from .adapter import Adapter
class PA_POS_OC3(Adapter):
"""
PA-POS-OC3 port adapter.
"""

View File

@ -17,6 +17,7 @@
class WIC_1ENET(object):
"""
WIC-1ENET Ethernet
"""

View File

@ -17,6 +17,7 @@
class WIC_1T(object):
"""
WIC-1T Serial
"""

View File

@ -17,6 +17,7 @@
class WIC_2T(object):
"""
WIC-2T Serial
"""

View File

@ -32,6 +32,7 @@ log = logging.getLogger(__name__)
class DynamipsHypervisor:
"""
Creates a new connection to a Dynamips server (also called hypervisor)

View File

@ -38,6 +38,7 @@ PLATFORMS = {'c1700': C1700,
class DynamipsVM:
"""
Factory to create an Router object based on the correct platform.
"""

View File

@ -32,6 +32,7 @@ log = logging.getLogger(__name__)
class Hypervisor(DynamipsHypervisor):
"""
Hypervisor.

View File

@ -28,6 +28,7 @@ log = logging.getLogger(__name__)
class NIO:
"""
Base NIO class

View File

@ -27,6 +27,7 @@ log = logging.getLogger(__name__)
class NIOFIFO(NIO):
"""
Dynamips FIFO NIO.

View File

@ -27,6 +27,7 @@ log = logging.getLogger(__name__)
class NIOGenericEthernet(NIO):
"""
Dynamips generic Ethernet NIO.
@ -46,8 +47,6 @@ class NIOGenericEthernet(NIO):
self._name = 'nio_gen_eth' + str(self._id)
self._ethernet_device = ethernet_device
@classmethod
def reset(cls):
"""

View File

@ -27,6 +27,7 @@ log = logging.getLogger(__name__)
class NIOLinuxEthernet(NIO):
"""
Dynamips Linux Ethernet NIO.

View File

@ -27,6 +27,7 @@ log = logging.getLogger(__name__)
class NIOMcast(NIO):
"""
Dynamips Linux Ethernet NIO.

View File

@ -27,6 +27,7 @@ log = logging.getLogger(__name__)
class NIONull(NIO):
"""
Dynamips NULL NIO.

View File

@ -27,6 +27,7 @@ log = logging.getLogger(__name__)
class NIOTAP(NIO):
"""
Dynamips TAP NIO.

View File

@ -27,6 +27,7 @@ log = logging.getLogger(__name__)
class NIOUDP(NIO):
"""
Dynamips UDP NIO.

View File

@ -27,6 +27,7 @@ log = logging.getLogger(__name__)
class NIOUDPAuto(NIO):
"""
Dynamips auto UDP NIO.

View File

@ -27,6 +27,7 @@ log = logging.getLogger(__name__)
class NIOUNIX(NIO):
"""
Dynamips UNIX NIO.

View File

@ -26,6 +26,7 @@ log = logging.getLogger(__name__)
class NIOVDE(NIO):
"""
Dynamips VDE NIO.

View File

@ -30,6 +30,7 @@ log = logging.getLogger(__name__)
class C1700(Router):
"""
Dynamips c1700 router.

View File

@ -32,6 +32,7 @@ log = logging.getLogger(__name__)
class C2600(Router):
"""
Dynamips c2600 router.

View File

@ -29,6 +29,7 @@ log = logging.getLogger(__name__)
class C2691(Router):
"""
Dynamips c2691 router.

View File

@ -29,6 +29,7 @@ log = logging.getLogger(__name__)
class C3600(Router):
"""
Dynamips c3600 router.

View File

@ -29,6 +29,7 @@ log = logging.getLogger(__name__)
class C3725(Router):
"""
Dynamips c3725 router.

View File

@ -29,6 +29,7 @@ log = logging.getLogger(__name__)
class C3745(Router):
"""
Dynamips c3745 router.

View File

@ -32,6 +32,7 @@ log = logging.getLogger(__name__)
class C7200(Router):
"""
Dynamips c7200 router (model is 7206).

View File

@ -1253,6 +1253,7 @@ class Router(BaseVM):
id=self._id,
slot_id=slot_id,
port_id=port_id))
@asyncio.coroutine
def slot_disable_nio(self, slot_id, port_id):
"""
@ -1301,7 +1302,6 @@ class Router(BaseVM):
raise DynamipsError("Port {port_id} has already a filter applied on {adapter}".format(adapter=adapter,
port_id=port_id))
# FIXME: capture
# try:
# os.makedirs(os.path.dirname(output_file), exist_ok=True)
@ -1316,6 +1316,7 @@ class Router(BaseVM):
nio_name=nio.name,
slot_id=slot_id,
port_id=port_id))
@asyncio.coroutine
def stop_capture(self, slot_id, port_id):
"""

View File

@ -6,7 +6,7 @@ commands = python setup.py test
deps = -rdev-requirements.txt
[pep8]
ignore = E501
ignore = E501,E402
[pytest]
norecursedirs = old_tests .tox