1
0
mirror of https://github.com/kellyjonbrazil/jc.git synced 2025-06-17 00:07:37 +02:00

add dhcp6 options to docs

This commit is contained in:
Kelly Brazil
2022-03-02 10:57:09 -08:00
parent 8c8afc1a92
commit 4a1ee151b3
2 changed files with 9 additions and 11 deletions

View File

@ -50,6 +50,10 @@ Schema:
"name": string,
"value": string/integer/float,
},
"dhcp6_option_x": {
"name": string,
"value": string/integer/float,
},
"ip4_route_x": {
"dst": string,
"nh": string,

View File

@ -45,6 +45,10 @@ Schema:
"name": string,
"value": string/integer/float,
},
"dhcp6_option_x": {
"name": string,
"value": string/integer/float,
},
"ip4_route_x": {
"dst": string,
"nh": string,
@ -185,17 +189,7 @@ def _process(proc_data: List[Dict]) -> List[Dict]:
except Exception:
pass
if '_option_' in key and key[-1].isdigit():
for k in entry[key]:
try:
if '.' in entry[key][k]:
entry[key][k] = float(entry[key][k])
else:
entry[key][k] = int(entry[key][k])
except Exception:
pass
if '_route_' in key and key[-1].isdigit():
if ('_option_' in key or '_route_' in key) and key[-1].isdigit():
for k in entry[key]:
try:
if '.' in entry[key][k]: