1
0
Fork 1
mirror of https://github.com/thatmattlove/hyperglass.git synced 2026-02-01 23:09:30 +00:00
thatmattlove-hyperglass/example_community_names_config.yaml
Wilhelm Schonfeldt eabd98b606 feat: Add BGP community friendly names and enhance RPKI configuration
- Add new 'name' mode for BGP communities to append friendly names
  - New configuration option `structured.communities.mode: name`
  - Community mappings via `structured.communities.names` dictionary
  - Communities display as "65000:1000 - Upstream Any" in UI
  - Backward compatible with existing permit/deny modes

- Enhance RPKI configuration documentation
  - Document both Cloudflare and Routinator backend options
  - Add `structured.rpki.backend` and `structured.rpki.rpki_server_url` parameters
  - Clarify Routinator web API endpoint usage vs RTR port
  - Add comprehensive configuration examples

- Update structured output platform support
  - Document all supported platforms: Arista EOS, FRRouting, Huawei VRP, Juniper Junos, Mikrotik RouterOS/SwitchOS

- Frontend enhancements
  - Parse comma-separated community format in UI components
  - Display friendly names alongside community codes
  - Maintain existing functionality for communities without names

- Add validation and examples
  - Validate that 'name' mode has community mappings configured
  - Include example configuration and test cases
  - Generic examples using ASN 65000 instead of specific networks
2025-09-26 11:32:29 +02:00

21 lines
No EOL
882 B
YAML

# Example configuration using the new 'name' mode for BGP communities
# This would typically go in your main config.yaml file
structured:
communities:
mode: name
names:
"65000:1000:0": "Upstream Any"
"65000:1001:0": "Upstream A (all locations)"
"65000:1101:0": "Upstream A Location 1"
"65000:1201:0": "Upstream A Location 2"
"65000:1002:0": "Upstream B (all locations)"
"65000:1102:0": "Upstream B Location 1"
"65000:2000:0": "IXP Any"
# With this configuration:
# - BGP communities that appear in the output and match the keys in 'names'
# will be displayed with friendly names appended
# - For example: "65000:1000:0" becomes "65000:1000:0,Upstream Any"
# - Communities without mappings remain unchanged
# - The frontend will display them as "65000:1000:0 - Upstream Any"