diff --git a/hyperglass/constants.py b/hyperglass/constants.py index bfaf89b..e0ba92f 100644 --- a/hyperglass/constants.py +++ b/hyperglass/constants.py @@ -159,6 +159,15 @@ For information about how to interpret traceroute results, [click here]\ (https://hyperglass.readthedocs.io/en/latest/assets/traceroute_nanog.pdf). """ +SUPPORTED_QUERY_FIELDS = ("query_location", "query_type", "query_target", "query_vrf") +SUPPORTED_QUERY_TYPES = ( + "bgp_route", + "bgp_community", + "bgp_aspath", + "ping", + "traceroute", +) + class Supported: """Define items supported by hyperglass. diff --git a/ui/components/Layout.js b/ui/components/Layout.js index 93bc601..6eb6231 100644 --- a/ui/components/Layout.js +++ b/ui/components/Layout.js @@ -91,7 +91,7 @@ const Layout = () => { credit={config.branding.credit} extLink={config.branding.external_link} /> - {config.general.debug && } + {config.general.developer_mode && } ); diff --git a/ui/components/QueryVrf.js b/ui/components/QueryVrf.js index b848bb3..8df1421 100644 --- a/ui/components/QueryVrf.js +++ b/ui/components/QueryVrf.js @@ -5,7 +5,6 @@ export default ({ vrfs, onChange }) => { return ( onChange({ field: "query_vrf", value: e.value })} name="query_vrf" options={vrfs}