Skip to content

Commit

Permalink
E231 missing whitespace after ':' (#276)
Browse files Browse the repository at this point in the history
python -m autopep8 --recursive --in-place --select E231 ./

Signed-off-by: Mircea Dan <mircea-dan.gheorghe@keysight.com>
  • Loading branch information
mgheorghe committed Apr 7, 2023
1 parent 0890028 commit 7761ee8
Show file tree
Hide file tree
Showing 31 changed files with 670 additions and 670 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ repos:
rev: 6.0.0
hooks:
- id: flake8
args: ["--max-line-length=201", "--extend-ignore=W605,F401,F402,F523,F524,F541,F601,F632,F811,F821,F841,E701,E722,E741,E203,E231"]
args: ["--max-line-length=201", "--extend-ignore=W605,F401,F402,F523,F524,F541,F601,F632,F811,F821,F841,E701,E722,E741,E203"]
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ def get_streams(srcMac, self_mac, prefix, dev_groups, tg_ports):
'dstMac': '00:00:BB:11:22:33',
'frameSize': 96,
'protocol': '0x6666',
'type' :'raw',
'type' : 'raw',
},
'BridgedLLDP': {
'ip_source': dev_groups[tg_ports[0]][0]['name'],
Expand All @@ -19,7 +19,7 @@ def get_streams(srcMac, self_mac, prefix, dev_groups, tg_ports):
'dstMac': '01:80:c2:00:00:0e',
'frameSize': 96,
'protocol': '0x88cc',
'type' :'raw'
'type' : 'raw'
},
'LACPDU': {
'ip_source': dev_groups[tg_ports[0]][0]['name'],
Expand All @@ -28,7 +28,7 @@ def get_streams(srcMac, self_mac, prefix, dev_groups, tg_ports):
'dstMac': '01:80:c2:00:00:02',
'frameSize': 130,
'protocol': '0x8809',
'type' :'raw'
'type' : 'raw'
},
'IPv4ToMe': {
'ip_source': dev_groups[tg_ports[0]][0]['name'],
Expand All @@ -39,7 +39,7 @@ def get_streams(srcMac, self_mac, prefix, dev_groups, tg_ports):
'dstMac': self_mac,
'frameSize': 96,
'protocol': '0x0800',
'type' :'raw'
'type' : 'raw'
},
'ARP_Request_BC': {
'ip_source': dev_groups[tg_ports[0]][0]['name'],
Expand All @@ -48,7 +48,7 @@ def get_streams(srcMac, self_mac, prefix, dev_groups, tg_ports):
'dstMac': 'FF:FF:FF:FF:FF:FF',
'frameSize': 96,
'protocol': '0x0806',
'type' :'raw'
'type' : 'raw'
},
'ARP_Reply': {
'ip_source': dev_groups[tg_ports[0]][0]['name'],
Expand All @@ -57,7 +57,7 @@ def get_streams(srcMac, self_mac, prefix, dev_groups, tg_ports):
'dstMac': self_mac,
'frameSize': 96,
'protocol': '0x0806',
'type' :'raw'
'type' : 'raw'
},
'IPv4_Broadcast': {
'ip_source': dev_groups[tg_ports[0]][0]['name'],
Expand All @@ -68,7 +68,7 @@ def get_streams(srcMac, self_mac, prefix, dev_groups, tg_ports):
'dstMac': 'FF:FF:FF:FF:FF:FF',
'frameSize': 96,
'protocol': '0x0800',
'type' :'raw'
'type' : 'raw'
},
'IPV4_SSH': {
'ip_source': dev_groups[tg_ports[0]][0]['name'],
Expand All @@ -82,7 +82,7 @@ def get_streams(srcMac, self_mac, prefix, dev_groups, tg_ports):
'dstPort': '22',
'frameSize': 96,
'protocol': '0x0800',
'type' :'raw'
'type' : 'raw'
},
'IPV4_Telnet': {
'ip_source': dev_groups[tg_ports[0]][0]['name'],
Expand All @@ -96,7 +96,7 @@ def get_streams(srcMac, self_mac, prefix, dev_groups, tg_ports):
'dstPort': '23',
'frameSize': 96,
'protocol': '0x0800',
'type' :'raw'
'type' : 'raw'
},
'Host_to_Host_IPv4': {
'ip_source': dev_groups[tg_ports[0]][0]['name'],
Expand All @@ -110,7 +110,7 @@ def get_streams(srcMac, self_mac, prefix, dev_groups, tg_ports):
'dstPort': '23',
'frameSize': 96,
'protocol': '0x0800',
'type' :'raw'
'type' : 'raw'
},
'IPv4_ICMP_Request': {
'ip_source': dev_groups[tg_ports[0]][0]['name'],
Expand All @@ -122,7 +122,7 @@ def get_streams(srcMac, self_mac, prefix, dev_groups, tg_ports):
'ipproto': 'icmpv1',
'frameSize': 96,
'protocol': '0x0800',
'type' :'raw'
'type' : 'raw'
},
'IPv4_DCHP_BC': {
'ip_source': dev_groups[tg_ports[0]][0]['name'],
Expand All @@ -137,7 +137,7 @@ def get_streams(srcMac, self_mac, prefix, dev_groups, tg_ports):
'dstPort': '68',
'frameSize': 346,
'protocol': '0x0800',
'type' :'raw'
'type' : 'raw'
},
'IPv4_Reserved_MC': {
'ip_source': dev_groups[tg_ports[0]][0]['name'],
Expand All @@ -148,7 +148,7 @@ def get_streams(srcMac, self_mac, prefix, dev_groups, tg_ports):
'dstMac': '01:00:5E:00:00:45',
'frameSize': 96,
'protocol': '0x0800',
'type' :'raw'
'type' : 'raw'
},
'IPv4_All_Systems_on_this_Subnet': {
'ip_source': dev_groups[tg_ports[0]][0]['name'],
Expand All @@ -159,7 +159,7 @@ def get_streams(srcMac, self_mac, prefix, dev_groups, tg_ports):
'dstMac': '01:00:5E:00:00:01',
'frameSize': 96,
'protocol': '0x0800',
'type' :'raw'
'type' : 'raw'
},
'IPv4_All_Routers_on_this_Subnet': {
'ip_source': dev_groups[tg_ports[0]][0]['name'],
Expand All @@ -170,7 +170,7 @@ def get_streams(srcMac, self_mac, prefix, dev_groups, tg_ports):
'dstMac': '01:00:5E:00:00:02',
'frameSize': 96,
'protocol': '0x0800',
'type' :'raw'
'type' : 'raw'
},
'IPv4_OSPFIGP': {
'ip_source': dev_groups[tg_ports[0]][0]['name'],
Expand All @@ -181,7 +181,7 @@ def get_streams(srcMac, self_mac, prefix, dev_groups, tg_ports):
'dstMac': '01:00:5E:00:00:05',
'frameSize': 96,
'protocol': '0x0800',
'type' :'raw'
'type' : 'raw'
},
'IPv4_RIP2_Routers': {
'ip_source': dev_groups[tg_ports[0]][0]['name'],
Expand All @@ -192,7 +192,7 @@ def get_streams(srcMac, self_mac, prefix, dev_groups, tg_ports):
'dstMac': '01:00:5E:00:00:09',
'frameSize': 96,
'protocol': '0x0800',
'type' :'raw'
'type' : 'raw'
},
'IPv4_EIGRP_Routers': {
'ip_source': dev_groups[tg_ports[0]][0]['name'],
Expand All @@ -203,7 +203,7 @@ def get_streams(srcMac, self_mac, prefix, dev_groups, tg_ports):
'dstMac': '01:00:5E:00:00:0A',
'frameSize': 96,
'protocol': '0x0800',
'type' :'raw'
'type' : 'raw'
},
'IPv4_DHCP_Server/Relay_Agent': {
'ip_source': dev_groups[tg_ports[0]][0]['name'],
Expand All @@ -217,7 +217,7 @@ def get_streams(srcMac, self_mac, prefix, dev_groups, tg_ports):
'dstPort': '67',
'frameSize': 96,
'protocol': '0x0800',
'type' :'raw'
'type' : 'raw'
},
'IPv4_VRRP': {
'ip_source': dev_groups[tg_ports[0]][0]['name'],
Expand All @@ -229,7 +229,7 @@ def get_streams(srcMac, self_mac, prefix, dev_groups, tg_ports):
# "packet.ipv4.protocol": 112,
'frameSize': 96,
'protocol': '0x0800',
'type' :'raw'
'type' : 'raw'
},
'IPv4_IGMP' : {
'ip_source': dev_groups[tg_ports[0]][0]['name'],
Expand All @@ -240,7 +240,7 @@ def get_streams(srcMac, self_mac, prefix, dev_groups, tg_ports):
'dstMac': '01:00:5E:00:00:16',
'frameSize': 96,
'protocol': '0x0800',
'type' :'raw'
'type' : 'raw'
},
'IPV4_BGP': {
'ip_source': dev_groups[tg_ports[0]][0]['name'],
Expand All @@ -254,6 +254,6 @@ def get_streams(srcMac, self_mac, prefix, dev_groups, tg_ports):
'dstMac': self_mac,
'frameSize': 96,
'protocol': '0x0800',
'type' :'raw'
'type' : 'raw'
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ async def test_bridging_bum_traffic_bridge_with_rif(testbed):
'Host_to_Host_IPv4': 100,
'IPv4_ICMP_Request': 100,
'IPv4_DCHP_BC': 0,
'IPv4_Reserved_MC' :0,
'IPv4_Reserved_MC' : 0,
'IPv4_All_Systems_on_this_Subnet': 0,
'IPv4_All_Routers_on_this_Subnet': 0,
'IPv4_OSPFIGP' : 0,
Expand Down Expand Up @@ -245,7 +245,7 @@ async def test_bridging_bum_traffic_bridge_without_rif(testbed):
'Host_to_Host_IPv4': 100,
'IPv4_ICMP_Request': 100,
'IPv4_DCHP_BC': 0,
'IPv4_Reserved_MC' :0,
'IPv4_Reserved_MC' : 0,
'IPv4_All_Systems_on_this_Subnet': 0,
'IPv4_All_Routers_on_this_Subnet': 0,
'IPv4_OSPFIGP' : 0,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ async def test_bridging_forward_block_different_packets(testbed):
'dstMac': 'FF:FF:FF:FF:FF:FF',
'frameSize': 96,
'protocol': '0x0800',
'type' :'raw'
'type' : 'raw'
},
'IPv4_Reserved_MC': {
'ip_source': dev_groups[tg_ports[0]][0]['name'],
Expand All @@ -101,7 +101,7 @@ async def test_bridging_forward_block_different_packets(testbed):
'dstMac': '01:00:5E:00:00:45',
'frameSize': 96,
'protocol': '0x0800',
'type' :'raw'
'type' : 'raw'
},
'IPv4_All_Systems_on_this_Subnet': {
'ip_source': dev_groups[tg_ports[0]][0]['name'],
Expand All @@ -112,7 +112,7 @@ async def test_bridging_forward_block_different_packets(testbed):
'dstMac': '01:00:5E:00:00:01',
'frameSize': 96,
'protocol': '0x0800',
'type' :'raw'
'type' : 'raw'
},
'IPv4_All_Routers_on_this_Subnet': {
'ip_source': dev_groups[tg_ports[0]][0]['name'],
Expand All @@ -123,7 +123,7 @@ async def test_bridging_forward_block_different_packets(testbed):
'dstMac': '01:00:5E:00:00:02',
'frameSize': 96,
'protocol': '0x0800',
'type' :'raw'
'type' : 'raw'
},
'IPv4_OSPFIGP': {
'ip_source': dev_groups[tg_ports[0]][0]['name'],
Expand All @@ -137,7 +137,7 @@ async def test_bridging_forward_block_different_packets(testbed):
'dstMac': '01:00:5E:00:00:05',
'frameSize': 96,
'protocol': '0x0800',
'type' :'raw'
'type' : 'raw'
},
'IPv4_RIP2_Routers': {
'ip_source': dev_groups[tg_ports[0]][0]['name'],
Expand All @@ -148,7 +148,7 @@ async def test_bridging_forward_block_different_packets(testbed):
'dstMac': '01:00:5E:00:00:09',
'frameSize': 96,
'protocol': '0x0800',
'type' :'raw'
'type' : 'raw'
},
'IPv4_EIGRP_Routers': {
'ip_source': dev_groups[tg_ports[0]][0]['name'],
Expand All @@ -159,7 +159,7 @@ async def test_bridging_forward_block_different_packets(testbed):
'dstMac': '01:00:5E:00:00:0A',
'frameSize': 96,
'protocol': '0x0800',
'type' :'raw'
'type' : 'raw'
},
'IPv4_DHCP_Server/Relay_Agent': {
'ip_source': dev_groups[tg_ports[0]][0]['name'],
Expand All @@ -173,7 +173,7 @@ async def test_bridging_forward_block_different_packets(testbed):
'dstPort': '67',
'frameSize': 96,
'protocol': '0x0800',
'type' :'raw'
'type' : 'raw'
},
'IPv4_VRRP': {
'ip_source': dev_groups[tg_ports[0]][0]['name'],
Expand All @@ -185,7 +185,7 @@ async def test_bridging_forward_block_different_packets(testbed):
# "packet.ipv4.protocol": 112,
'frameSize': 96,
'protocol': '0x0800',
'type' :'raw'
'type' : 'raw'
},
'IPv4_IGMP' : {
'ip_source': dev_groups[tg_ports[0]][0]['name'],
Expand All @@ -196,7 +196,7 @@ async def test_bridging_forward_block_different_packets(testbed):
'dstMac': '01:00:5E:00:00:16',
'frameSize': 96,
'protocol': '0x0800',
'type' :'raw'
'type' : 'raw'
},
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ async def test_bridging_robustness_macs(testbed):
for x in range(3):
streams = {
f'bridge_{x + 1}': {
'ip_source': dev_groups[tg_ports[random.randint(0,2)]][0]['name'],
'ip_source': dev_groups[tg_ports[random.randint(0, 2)]][0]['name'],
'ip_destination': dev_groups[tg_ports[3]][0]['name'],
'srcMac': {'type': 'increment',
'start': '00:00:00:00:00:35',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ async def test_switch_reload_all(testbed):
assert rc == 0, f'Could not run the {cmd}'
data = json.loads(out)
peers = data['ipv4Unicast']['peers']
for k,v in bgp_state[host]['ipv4Unicast']['peers'].items():
for k, v in bgp_state[host]['ipv4Unicast']['peers'].items():
if v['state'] in ['Connect', 'Active']:
# no need to check these out.
continue
Expand Down Expand Up @@ -286,7 +286,7 @@ async def _test_switch_reload_disr1_switch(testbed):
# if peers[ip]["state"] != "Established":
# assert 0, f"peer {i} has no BGP established"

for k,v in prev_bgp['ipv4Unicast']['peers'].items():
for k, v in prev_bgp['ipv4Unicast']['peers'].items():
if v['state'] in ['Connect', 'Active']:
# no need to check these out.
continue
Expand Down
2 changes: 1 addition & 1 deletion DentOS_Framework/DentOsTestbedDiscovery/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
version='1.0',
# declare your packages
packages=find_namespace_packages(where='src',
exclude=['test',],
exclude=['test', ],
include=['dent_os_testbed.*']),
package_dir={'': 'src'},
# include data files
Expand Down
Loading

0 comments on commit 7761ee8

Please sign in to comment.