diff --git a/docgen.sh b/docgen.sh index 498893d9..27f78227 100755 --- a/docgen.sh +++ b/docgen.sh @@ -51,6 +51,7 @@ pydocmd simple jc.parsers.systemctl_lj+ > ../docs/parsers/systemctl_lj.md pydocmd simple jc.parsers.systemctl_ls+ > ../docs/parsers/systemctl_ls.md pydocmd simple jc.parsers.systemctl_luf+ > ../docs/parsers/systemctl_luf.md pydocmd simple jc.parsers.timedatectl+ > ../docs/parsers/timedatectl.md +pydocmd simple jc.parsers.tracepath+ > ../docs/parsers/tracepath.md pydocmd simple jc.parsers.traceroute+ > ../docs/parsers/traceroute.md pydocmd simple jc.parsers.uname+ > ../docs/parsers/uname.md pydocmd simple jc.parsers.uptime+ > ../docs/parsers/uptime.md diff --git a/docs/parsers/traceroute.md b/docs/parsers/traceroute.md index 4370a7e8..3975cce8 100644 --- a/docs/parsers/traceroute.md +++ b/docs/parsers/traceroute.md @@ -101,20 +101,6 @@ Abstraction of a traceroute result. Hop(self, idx) ``` -Abstraction of a hop in a traceroute. - -## Probe -```python -Probe(self, name=None, ip=None, asn=None, rtt=None, annotation=None) -``` - -Abstraction of a probe in a traceroute. - -## loads -```python -loads(data) -``` -Parser entry point. Parses the output of a traceroute execution ## process ```python process(proc_data) diff --git a/jc/parsers/traceroute.py b/jc/parsers/traceroute.py index cad5804f..bd6e091d 100644 --- a/jc/parsers/traceroute.py +++ b/jc/parsers/traceroute.py @@ -160,10 +160,6 @@ class Traceroute(object): class Hop(object): - """ - Abstraction of a hop in a traceroute. - """ - def __init__(self, idx): self.idx = idx # Hop count, starting at 1 (usually) self.probes = [] # Series of Probe instances @@ -191,10 +187,6 @@ class Hop(object): class Probe(object): - """ - Abstraction of a probe in a traceroute. - """ - def __init__(self, name=None, ip=None, asn=None, rtt=None, annotation=None): self.name = name self.ip = ip @@ -217,8 +209,6 @@ class Probe(object): def loads(data): - """Parser entry point. Parses the output of a traceroute execution""" - lines = data.splitlines() # Get headers