make test-doc: Clean up import errors.

Mock additional 3rd party modules and replace wildcard imports that
were confusing sphinx.

Change-Id: Ia9e599901a2a3fad854d3631dd0991183ae6d715
Signed-off-by: Paul Vinciguerra <pvinci@vinciconsulting.com>
This commit is contained in:
Paul Vinciguerra
2019-02-13 07:44:52 -08:00
committed by Damjan Marion
parent 8a140616a5
commit 2cc29a5264
2 changed files with 8 additions and 1 deletions

View File

@ -33,7 +33,12 @@ extensions = [
'sphinx.ext.autodoc',
]
autodoc_mock_imports = ['objgraph',
'parameterized',
'pexpect',
'psutil',
'pympler',
'scapy',
'syslog_rfc5424_parser',
'vpp_papi']
# Add any paths that contain templates here, relative to this directory.

View File

@ -1,7 +1,9 @@
#!/usr/bin/env python
# IPFIX support for Scapy (RFC7011)
from scapy.all import *
from scapy.all import bind_layers, FieldLenField, IntField, Packet, \
PacketListField, ShortEnumField, ShortField, StrLenField
from scapy.layers.inet import UDP
# IPFIX Information Elements http://www.iana.org/assignments/ipfix/ipfix.xhtml