Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FIx broken router info page prefixes query link. #20

Merged
merged 18 commits into from
Oct 9, 2023

Conversation

ximon18
Copy link
Member

@ximon18 ximon18 commented Sep 14, 2023

The /routers/<router_id> HTML pages will list announced prefixes by peer, if any, and for each prefix a hyperlink is provided to the prefix query API to make it easy to explore the loaded data.

Until now that hyperlink wrongly assumed that the prefix API HTTP relative URL is /prefixes/ but with the changes in #19 there is no prefix API at that relative URL and that assumption is no longer valid.

This PR updates the generated hyperlink to refer to the actual location of the prefix API (or APIs if there are multiple RIB units) and introduces tracking of which component type registered a HTTP handler for which base URL so that the correct set of base URLs can be enumerated when generating the links.

…, fix typos and make various improvements to the config file text and structure.
When run without --config the embedded copy of etc/rotonda.conf is used instead, and targets.proxy is removed if --proxy-destination is not supplied on the command line.

If --bgp-listen or --bmp-listen are supplied on the command line they override the BMP and BGP listen settings in the embedded config.

- Allow BGP peers to be missing.
  - Add missing semi-colon.
  - Filter out not in.
…age can link to the actual RIB query HTTP API rather than incorrectly assume a fixed path of /prefixes/.
Base automatically changed from add-default-mvp-config to blocks-wip October 9, 2023 13:01
@ximon18 ximon18 force-pushed the fix-broken-router-info-page-prefixes-query-link branch from 1060231 to 5096f6c Compare October 9, 2023 13:30
@ximon18 ximon18 merged commit cb8393d into blocks-wip Oct 9, 2023
2 checks passed
@ximon18 ximon18 deleted the fix-broken-router-info-page-prefixes-query-link branch October 9, 2023 14:21
density215 pushed a commit that referenced this pull request Dec 8, 2023
Store HTTP provider relative base URLs so that the router info page can link to the actual RIB query HTTP API rather than incorrectly assume a fixed path of /prefixes/.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant