Optimize IPv4 to integer conversion

6 jobs for noc-ipv4-opt in 1 minute and 37 seconds (queued for 2 seconds)
Status Job ID Name Coverage
  Lint
passed #37445
docker
flake8

00:00:12

passed #37449
docker
futurize

00:00:19

passed #37448
docker
pylint

00:00:19

failed #37447
docker allowed to fail
radon

00:00:16

failed #37446
docker allowed to fail
yapf

00:00:18

 
  Test
failed #37450
docker allowed to fail
test_noc

00:01:16

36.0%
 
Name Stage Failure
failed
test_noc Test
Coverage            : 36%
Coverage Statements : 25719
Coverage Missing : 16384
Coverage Excluded : 1
Uploading artifacts...
./var/coverage: found 461 matching files
./var/report: found 2 matching files

Uploading artifacts to coordinator... ok
id=37450 responseStatus=201 Created token=V-PsQiA9
ERROR: Job failed: exit code 2
failed
yapf Lint
@@ -970,6 +981,7 @@
if nc.key is None:
for f in walk_tree(nc, bits):
yield f
+
root_bits = list(root.iter_bits())
afi = root.afi
max_bits = 32 if afi == "4" else 128
ERROR: Job failed: exit code 1
failed
radon Lint
++ echo '$ if [ ! -z "$FLIST" ]; then for i in "${FLIST}" ; do (xenon --max-absolute B --max-modules B --max-average B "$i"; let x+=$?); done; fi'
++ '[' '!' -z core/ip.py ']'
++ for i in "${FLIST}"
++ xenon --max-absolute B --max-modules B --max-average B core/ip.py
ERROR:xenon:block "core/ip.py:179 area_spot" has a rank of D
ERROR:xenon:block "core/ip.py:627 _to_prefix" has a rank of C
ERROR:xenon:block "core/ip.py:110 iter_address" has a rank of C
ERROR:xenon:block "core/ip.py:569 __split_parts" has a rank of C
ERROR: Job failed: exit code 1