1
0
mirror of https://github.com/checktheroads/hyperglass synced 2024-05-11 05:55:08 +00:00

clean up frontend data model [skip ci]

This commit is contained in:
checktheroads
2020-12-13 01:47:52 -07:00
parent 0c1399d766
commit add0a1af48

View File

@@ -358,7 +358,12 @@ def _build_networks():
"display_name": device.display_name,
"network": device.network.display_name,
"vrfs": [
{"id": vrf.name, "display_name": vrf.display_name}
{
"id": vrf.name,
"display_name": vrf.display_name,
"ipv4": True if vrf.ipv4 else False, # noqa: IF100
"ipv6": True if vrf.ipv6 else False, # noqa: IF100
}
for vrf in device.vrfs
],
}