Skip to content

Commit 22961e4

Browse files
generatedunixname89002005307016meta-codesync[bot]
authored andcommitted
batch_167
Reviewed By: stroxler Differential Revision: D99618929 fbshipit-source-id: 4648398812a80ac9c29defd34dafa95486dc34ee
1 parent 2ea1dc8 commit 22961e4

1 file changed

Lines changed: 9 additions & 57 deletions

File tree

katran/lib/testing/python/fplane_testing.py

Lines changed: 9 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -20,26 +20,26 @@
2020
import time
2121
from multiprocessing import Process, Queue
2222

23-
# pyre-fixme[21]: Could not find name `ARP` in `scapy.all`.
24-
# pyre-fixme[21]: Could not find name `Ether` in `scapy.all`.
25-
# pyre-fixme[21]: Could not find name `ICMP` in `scapy.all`.
26-
# pyre-fixme[21]: Could not find name `ICMPv6EchoRequest` in `scapy.all`.
27-
# pyre-fixme[21]: Could not find name `ICMPv6PacketTooBig` in `scapy.all`.
28-
# pyre-fixme[21]: Could not find name `IP` in `scapy.all`.
29-
# pyre-fixme[21]: Could not find name `IPv6` in `scapy.all`.
30-
# pyre-fixme[21]: Could not find name `TCP` in `scapy.all`.
31-
# pyre-fixme[21]: Could not find name `UDP` in `scapy.all`.
3223
from scapy.all import (
24+
# pyrefly: ignore [missing-module-attribute]
3325
ARP,
26+
# pyrefly: ignore [missing-module-attribute]
3427
Ether,
28+
# pyrefly: ignore [missing-module-attribute]
3529
ICMP,
30+
# pyrefly: ignore [missing-module-attribute]
3631
ICMPv6EchoRequest,
32+
# pyrefly: ignore [missing-module-attribute]
3733
ICMPv6PacketTooBig,
34+
# pyrefly: ignore [missing-module-attribute]
3835
IP,
36+
# pyrefly: ignore [missing-module-attribute]
3937
IPv6,
4038
sendp,
4139
sniff,
40+
# pyrefly: ignore [missing-module-attribute]
4241
TCP,
42+
# pyrefly: ignore [missing-module-attribute]
4343
UDP,
4444
)
4545

@@ -50,128 +50,80 @@
5050

5151
TEST_PCKTS = [
5252
# pkt 1; reply expected
53-
# pyre-fixme[16]: Module `all` has no attribute `Ether`.
5453
Ether(src="0x002", dst="0x2")
55-
# pyre-fixme[16]: Module `all` has no attribute `IP`.
5654
/ IP(src="192.168.1.1", dst="10.200.1.1")
57-
# pyre-fixme[16]: Module `all` has no attribute `UDP`.
5855
/ UDP(sport=31337, dport=80)
5956
/ "katran test pckt 01",
6057
# pkt 2; reply expected
61-
# pyre-fixme[16]: Module `all` has no attribute `Ether`.
6258
Ether(src="0x002", dst="0x2")
63-
# pyre-fixme[16]: Module `all` has no attribute `IP`.
6459
/ IP(src="192.168.1.1", dst="10.200.1.1")
65-
# pyre-fixme[16]: Module `all` has no attribute `TCP`.
6660
/ TCP(sport=31337, dport=80, flags="A")
6761
/ "katran test pckt 02",
6862
# pkt 3; reply expected
69-
# pyre-fixme[16]: Module `all` has no attribute `Ether`.
7063
Ether(src="0x002", dst="0x2")
71-
# pyre-fixme[16]: Module `all` has no attribute `IP`.
7264
/ IP(src="192.168.1.1", dst="10.200.1.2")
73-
# pyre-fixme[16]: Module `all` has no attribute `TCP`.
7465
/ TCP(sport=31337, dport=42, flags="A")
7566
/ "katran test pckt 03",
7667
# pkt 4; reply expected
77-
# pyre-fixme[16]: Module `all` has no attribute `Ether`.
7868
Ether(src="0x002", dst="0x2")
79-
# pyre-fixme[16]: Module `all` has no attribute `IP`.
8069
/ IP(src="192.168.1.1", dst="10.200.1.3")
81-
# pyre-fixme[16]: Module `all` has no attribute `TCP`.
8270
/ TCP(sport=31337, dport=80, flags="A")
8371
/ "katran test pckt 04",
8472
# pkt 5; reply expected
85-
# pyre-fixme[16]: Module `all` has no attribute `Ether`.
8673
Ether(src="0x002", dst="0x2")
87-
# pyre-fixme[16]: Module `all` has no attribute `IPv6`.
8874
/ IPv6(src="fc00:2::1", dst="fc00:1::1")
89-
# pyre-fixme[16]: Module `all` has no attribute `TCP`.
9075
/ TCP(sport=31337, dport=80, flags="A")
9176
/ "katran test pckt 05",
9277
# pkt 6; reply expected
93-
# pyre-fixme[16]: Module `all` has no attribute `Ether`.
9478
Ether(src="0x002", dst="0x2")
95-
# pyre-fixme[16]: Module `all` has no attribute `IP`.
9679
/ IP(src="192.168.1.1", dst="10.200.1.3")
97-
# pyre-fixme[16]: Module `all` has no attribute `ICMP`.
9880
/ ICMP(type="echo-request")
9981
/ "katran test pckt 06",
10082
# pkt 7; reply expected
101-
# pyre-fixme[16]: Module `all` has no attribute `Ether`.
10283
Ether(src="0x002", dst="0x2")
103-
# pyre-fixme[16]: Module `all` has no attribute `IPv6`.
10484
/ IPv6(src="fc00:2::1", dst="fc00:1::1")
105-
# pyre-fixme[16]: Module `all` has no attribute `ICMPv6EchoRequest`.
10685
/ ICMPv6EchoRequest()
10786
/ "katran test pckt 07",
10887
# pkt 8; reply expected
109-
# pyre-fixme[16]: Module `all` has no attribute `Ether`.
11088
Ether(src="0x002", dst="0x2")
111-
# pyre-fixme[16]: Module `all` has no attribute `IP`.
11289
/ IP(src="192.168.100.1", dst="10.200.1.1")
113-
# pyre-fixme[16]: Module `all` has no attribute `ICMP`.
11490
/ ICMP(type="dest-unreach", code="fragmentation-needed")
115-
# pyre-fixme[16]: Module `all` has no attribute `IP`.
11691
/ IP(src="10.200.1.1", dst="192.168.1.1")
117-
# pyre-fixme[16]: Module `all` has no attribute `TCP`.
11892
/ TCP(sport=80, dport=31337)
11993
/ "katran test pckt 08",
12094
# pkt 9; reply expected
121-
# pyre-fixme[16]: Module `all` has no attribute `Ether`.
12295
Ether(src="0x002", dst="0x2")
123-
# pyre-fixme[16]: Module `all` has no attribute `IPv6`.
12496
/ IPv6(src="fc00:200::1", dst="fc00:1::1")
125-
# pyre-fixme[16]: Module `all` has no attribute `ICMPv6PacketTooBig`.
12697
/ ICMPv6PacketTooBig()
127-
# pyre-fixme[16]: Module `all` has no attribute `IPv6`.
12898
/ IPv6(src="fc00:1::1", dst="fc00:2::1")
129-
# pyre-fixme[16]: Module `all` has no attribute `TCP`.
13099
/ TCP(sport=80, dport=31337)
131100
/ "katran test pckt 09",
132101
# pkt 10; will be droped on katran side
133-
# pyre-fixme[16]: Module `all` has no attribute `Ether`.
134102
Ether(src="0x002", dst="0x2")
135-
# pyre-fixme[16]: Module `all` has no attribute `IP`.
136103
/ IP(src="192.168.1.1", dst="10.200.1.1", ihl=6)
137-
# pyre-fixme[16]: Module `all` has no attribute `TCP`.
138104
/ TCP(sport=31337, dport=80, flags="A")
139105
/ "katran test pckt 10",
140106
# pkt 11; will be droped on katran side
141-
# pyre-fixme[16]: Module `all` has no attribute `Ether`.
142107
Ether(src="0x002", dst="0x2")
143-
# pyre-fixme[16]: Module `all` has no attribute `IP`.
144108
/ IP(src="192.168.1.1", dst="10.200.1.1", ihl=5, flags="MF")
145-
# pyre-fixme[16]: Module `all` has no attribute `TCP`.
146109
/ TCP(sport=31337, dport=80, flags="A")
147110
/ "katran test pckt 11",
148111
# pkt 12; will be droped on katran side
149-
# pyre-fixme[16]: Module `all` has no attribute `Ether`.
150112
Ether(src="0x002", dst="0x2")
151-
# pyre-fixme[16]: Module `all` has no attribute `IPv6`.
152113
/ IPv6(src="fc00:2::1", dst="fc00:1::1", nh=44)
153-
# pyre-fixme[16]: Module `all` has no attribute `TCP`.
154114
/ TCP(sport=31337, dport=80, flags="A")
155115
/ "katran test pckt 12",
156116
# pkt 13; will be passed to katran's tcp stack; no reply expected
157-
# pyre-fixme[16]: Module `all` has no attribute `Ether`.
158117
Ether(src="0x002", dst="0x2")
159-
# pyre-fixme[16]: Module `all` has no attribute `IP`.
160118
/ IP(src="192.168.1.1", dst="10.200.1.1", ihl=5)
161-
# pyre-fixme[16]: Module `all` has no attribute `TCP`.
162119
/ TCP(sport=31337, dport=82, flags="A")
163120
/ "katran test pckt 13",
164121
# pkt 14; will be passed to katran's tcp stack; no reply expected
165-
# pyre-fixme[16]: Module `all` has no attribute `Ether`.
166122
Ether(src="0x002", dst="0x2")
167-
# pyre-fixme[16]: Module `all` has no attribute `IPv6`.
168123
/ IPv6(src="fc00:2::1", dst="fc00:1::1")
169-
# pyre-fixme[16]: Module `all` has no attribute `TCP`.
170124
/ TCP(sport=31337, dport=82, flags="A")
171125
/ "katran test pckt 14",
172126
# pkt 15; will be passed to katran's tcp stack; no reply expected
173-
# pyre-fixme[16]: Module `all` has no attribute `Ether`.
174-
# pyre-fixme[16]: Module `all` has no attribute `ARP`.
175127
Ether(src="0x002", dst="0x2") / ARP(),
176128
]
177129

0 commit comments

Comments
 (0)