From 1eff69c187ca410ffaec7909bc2532553be1d80c Mon Sep 17 00:00:00 2001 From: Kelly Brazil Date: Wed, 30 Oct 2019 13:21:05 -0700 Subject: [PATCH] add documentation --- changelog.txt | 1 + jc/parsers/arp.py | 17 ++++++++++++++++- 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/changelog.txt b/changelog.txt index 7b17884b..5d23eec9 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,6 +1,7 @@ jc changelog 2019xxxx v1.1.1 +- Add arp parser - Add dig parser - Add nslookup parser - Add unit tests diff --git a/jc/parsers/arp.py b/jc/parsers/arp.py index 8fc7fc94..bf9d3a3e 100644 --- a/jc/parsers/arp.py +++ b/jc/parsers/arp.py @@ -6,7 +6,22 @@ Usage: Example: $ arp | jc --arp -p - +[ + { + "address": "gateway", + "hwtype": "ether", + "hwaddress": "00:50:56:f7:4a:fc", + "flags_mask": "C", + "iface": "ens33" + }, + { + "address": "192.168.71.254", + "hwtype": "ether", + "hwaddress": "00:50:56:fe:7a:b4", + "flags_mask": "C", + "iface": "ens33" + } +] """