From 69d7ec9d97570323fe5f2859557acba785e37c48 Mon Sep 17 00:00:00 2001 From: checktheroads Date: Tue, 11 Jun 2019 21:43:45 -0700 Subject: [PATCH] refreshed example files with new structure --- .../configuration/configuration.toml.example | 125 +++++++++++++++--- hyperglass/configuration/devices.toml.example | 42 ++---- 2 files changed, 116 insertions(+), 51 deletions(-) diff --git a/hyperglass/configuration/configuration.toml.example b/hyperglass/configuration/configuration.toml.example index cff95ff..ede90c3 100644 --- a/hyperglass/configuration/configuration.toml.example +++ b/hyperglass/configuration/configuration.toml.example @@ -1,33 +1,122 @@ # Non-dictionary parameters +debug = true requires_ipv6_cidr = [ "cisco_ios", "cisco_nxos" ] - +# IP Blacklist +blacklist = [ +"198.18.0.0/15", +"100.64.0.0/10", +"2001:db8::/32", +"10.0.0.0/8", +"192.168.0.0/16", +"172.16.0.0/12" +] # General site-wide parameters [general] # primary_asn = "" # org_name = "" # google_analytics = "" -# enable_bgp_route = "" -# enable_bgp_community = "" -# enable_bgp_aspath = "" -# enable_ping = "" -# enable_traceroute = "" -# enable_max_prefix = "" -# max_prefix_length_ipv4 = "" -# max_prefix_length_ipv6 = "" -[general.bgp_aspath] -# mode = "asplain" -[general.bgp_aspath.asplain] -[general.bgp_aspath.asdot] + +# Feature customization +[features] +[features.rate_limit.query] +# rate = 5 +# title = "" +# message = "" +# button = "" +[features.rate_limit.site] +# rate = 120 +# title = "" +# subtitle = "" +[features.cache] +# timeout = 120 +# directory = "" +# show_text = true +# text = "" +[features.bgp_route] +# enable = true +[features.bgp_community] +# enable = true +[features.bgp_community.regex] +# decimal = "" +# extended_as = "" +# large = "" +[features.bgp_aspath] +# enable = true +[features.bgp_aspath.regex] +# mode = "" +# asplain = "" +# asdot = "" +[features.ping] +# enable = true +[features.traceroute] +# enable = true +[features.max_prefix] +# enable = false +# ipv4 = 24 +# ipv6 = 64 +# message = "" + +# User messages +[messages] +# no_query_type = "" +# no_location = "" +# no_input = "" +# not_allowed = "" +# requires_ipv6_cidr = "" +# invalid_ip = "" +# invalid_dual = "" +# general = "" +# directed_cidr = "" # Branding/Visual Customization Parameters [branding] -# site_title = "" +# site_name = "" +[branding.footer] +# enable = true +[branding.credit] +# enable = true +[branding.peering_db] +# enable = true +[branding.text] +# title_mode = "text_only" # title = "" # subtitle = "" -# title_mode = "" -# logo_path = "" -# logo_width = "" -# favicon_dir = "" +# query_type = "" +# results = "" +# location = "" +# query_placeholder = "" +# bgp_route = "" +# bgp_community = "" +# bgp_aspath = "" +# ping = "" +# traceroute = "" +[branding.text.404] +# title = "" +# subtitle = "" +[branding.text.500] +# title = "" +# subtitle = "" +# button = "" +[branding.logo] +# path = "" +# width = "" +# favicons = "" +[branding.color] +# background = "" +# button_submit = "" +# danger = "" +# progress_bar = "" +[branding.color.tag] +# type = "" +# location = "" +# location_title = "" +# type_title = "" +[branding.font.primary] +# name = "" +# url = "" +[branding.font.mono] +# name = "" +# url = "" diff --git a/hyperglass/configuration/devices.toml.example b/hyperglass/configuration/devices.toml.example index 5b4e000..5be3373 100644 --- a/hyperglass/configuration/devices.toml.example +++ b/hyperglass/configuration/devices.toml.example @@ -1,40 +1,16 @@ # Routers -[[router]] -address = "10.0.0.1" +[router.'router1'] +address = "192.0.2.1" asn = "65000" src_addr_ipv4 = "192.0.2.1" src_addr_ipv6 = "2001:db8::1" credential = "default" -location = "pop01" -name = "router01" -port = "22" -type = "cisco_xr" -proxy = "" - -[[router]] -address = "10.0.0.2" -asn = "65000" -src_addr_ipv4 = "192.0.2.2" -src_addr_ipv6 = "2001:db8::2" -credential = "default" -location = "pop02" -name = "router02" -port = "22" +location = "pop1" +name = "router1.pop1" +display_name = "Router" +port = "222" type = "cisco_ios" -proxy = "server01" - -[[router]] -address = "10.0.0.3" -asn = "65000" -src_addr_ipv4 = "192.0.2.3" -src_addr_ipv6 = "2001:db8::3" -credential = "other" -location = "pop03" -name = "router03" -port = "22" -type = "juniper" -proxy = "" - +proxy = "proxy1" # Router Credentials [credential.'default'] @@ -42,11 +18,11 @@ username = "username" password = "password" [credential.'other'] -username = "otheruser" +username = "otheradmin" password = "otherpass" # SSH Proxy Servers -[proxy.'server01'] +[proxy.'proxy1'] address = "10.0.1.1" username = "username" password = "password"