Repository navigation
Install from Topolograph: configure.sh, client.py --answers, boot service - #8
Conversation
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 0e578ed6dc
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
Addressed in 11b2651. Same changes in ospfwatcher#32, which shares this code.
|
|
@codex review |
|
Codex Review: Something went wrong. Try again later by commenting “@codex review”. ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
|
README: installing from Topolograph's Watchers page is now the main method. The manual |
|
@codex review |
|
Codex Review: Didn't find any major issues. Hooray! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 11f3a8b3ec
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: bc4e18e862
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: e9ef3005e6
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 0b5f87421a
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
@codex review |
|
Codex Review: Didn't find any major issues. Bravo. Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 07b9d75a6f
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
@codex review |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
Status of the last review round (reviewed Already fixed on the head
Declined
@codex review |
|
@codex review |
|
Codex Review: Didn't find any major issues. 🚀 Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
|
The same firewall-rule ownership change as ospfwatcher#32 (P2 raised there): GRE rules carry |
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 2a8f8de900
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| # Kept until the rebuild succeeds, so a failed one leaves the working watcher in place | ||
| backup_path = os.path.join(self.watcher_root_folder_path, f".{existing_folder}.previous") | ||
| shutil.rmtree(backup_path, ignore_errors=True) | ||
| os.rename(os.path.join(self.watcher_root_folder_path, existing_folder), backup_path) |
There was a problem hiding this comment.
Recover backups left by an interrupted rebuild
When Docker is restarted or the host shuts down after this rename but before _build_from_answers() finishes writing the replacement config, the Python process can be terminated without entering the except BaseException restoration path. The only valid config then remains under .watcher...previous, while onboarding/start.sh only scans watcher/watcher[0-9]*/config.yml, so the watcher remains undeployed after Docker or the host returns. Build in a staging directory and swap atomically, or recover leftover .previous directories before deployment.
Useful? React with 👍 / 👎.
| "router_examples": [ | ||
| { | ||
| "vendor": "Cisco", | ||
| "config": "interface Tunnel{gre_tunnel_number}\n ip address {gre_tunnel_ip_w_mask_network_device}\n tunnel mode gre ip\n tunnel source {gre_tunnel_network_device_ip}\n tunnel destination {host_interface_device_ip}\n ip router isis <name>\n isis network point-to-point" |
There was a problem hiding this comment.
Render a Cisco-compatible interface mask
For every GRE answer, gre_tunnel_ip_w_mask_network_device is an ip_interface value such as 10.0.0.1/30—the interactive client likewise asks for x.x.x.x/yy—but this template emits it verbatim after ip address. Cisco IOS XE requires ip address ip-address mask and shows a dotted-decimal mask in its example (Cisco IOS XE configuration guide), so pasting the generated configuration is rejected and GRE onboarding cannot complete. Convert the prefix length to a dotted-decimal mask before rendering this Cisco example.
Useful? React with 👍 / 👎.
| "env": "REGISTRY_PREFIX", | ||
| "source": "default", | ||
| "default": "", | ||
| "pattern": "^([A-Za-z0-9.-]+(:[0-9]+)?(/[A-Za-z0-9._-]+)*/)?$", |
There was a problem hiding this comment.
Reject invalid uppercase mirror namespaces
When a user enters a prefix such as mirror.example.com/Team/, this pattern accepts it, but configure.sh then constructs image names such as mirror.example.com/Team/vadims06/isis-watcher:... and Docker rejects the pull. Docker Registry repository path components must match [a-z0-9]+(?:[._-][a-z0-9]+)* (Docker Registry API documentation), so restrict namespace components to that lowercase grammar while still allowing a registry hostname and port.
Useful? React with 👍 / 👎.
|
Round on
Declined: backup left by a host crash during a rebuild (P2). It needs the process to die inside the rename-to-write window, and a watcher folder is rebuilt from its registration on the Watchers page by running the command again. |
|
@codex review |
A PSNP with no TLVs is exactly 17 bytes, so the unconditional 19-byte read dropped a valid one.
router2 advertised TE Router ID 10.10.10.1, colliding with router1's own address, instead of its own loopback 10.10.10.2.
Announcement filter: tc-BPF on the tunnel egress instead of XDP
isis01 lab: FRR 10.8 stable, TE on the router4 LAN
Fluent Bit: temetric fields when the link has no SRLG
…3.4.0 notes, ELK note moved to exporters
Docs: filter diagrams, v3.4.0 notes, ELK note in exporters
Diagram: sniff label above its arrow
…f client.py Remove client.py, its interactive dialog and tests, and the contract check script; add per-mode templates under watcher/watcher-template; replace the Elastic index step with curl on pinned index-template JSON files.
…mented create.py service
Install with the watcher image's render instead of client.py
onboarding/diagnostic.sh passes the host's iptables-save -c to the Rust diagnostic subcommand, which has no iptables binary of its own. The Python diagnostic.py (409 lines) is removed.
VERSION, .env.template and the release notes move to v4.0.0. The notes lead with the Rust watcher, the built-in diagnostic and the one restart every watcher makes on the upgrade.
Troubleshoot with onboarding/diagnostic.sh instead of diagnostic.py
Version v4.0.0: the Rust watcher
The Rust watcher reads the LSDB from FRR's JSON, which FRR 8.5.4 lays out differently, so the published topology came out empty. FRR 10.8 runs IS-IS over GRE; no hostname dynamic keeps LSP ids as system ids.
IS-IS watcher router: FRR 10.8 and no hostname dynamic
Release notes v4.0.0, short
Summary
Install IS-IS Watcher from Topolograph's Watchers page (https://github.com/Vadims06/flask-visual/pull/69) in GRE or BGP-LS mode.
configure.sh: checks dependencies (iptables and conntrack for GRE), fetches each watcher's answers with its own token, rebuilds every watcher of the checkout throughclient.py --action add_watcher --answers, then (re)startstopolograph-isiswatcher.service. Siblings are matched bywatcher_id, so a rotated token does not stop it; a watcher deleted in Topolograph stops it with the exact removal command.topolograph-isiswatcher.service+onboarding/start.sh: redeploy the containerlab topologies at boot (veth, netns and GRE do not survive a reboot) and start Fluent Bit.client.py --answers: the same files as the interactive dialog for the same answers (checked), plus pinned images, the watcher id label and Topolograph address/token in the node env. The dialog is unchanged.fluentbit/onboarding.yamlincludes onewatchers/<watcher>.yamlper watcher with its own token as Bearer;fluent-bitno longer joinstopolograph_backendand restarts unless stopped.VERSION,WATCHER_VERSION,REGISTRY_PREFIX; manifest; contract CI; README quick start.feat/watcher-onboarding(Bearer upload). GRE pinsvadims06/frr:v8.5.4, which still has to be published fromquay.io/frrouting/frr:8.5.4.Test plan