diff --git a/.claude/skills/infix-dev/SKILL.md b/.claude/skills/infix-dev/SKILL.md index 1e22188e62..12b576382a 100644 --- a/.claude/skills/infix-dev/SKILL.md +++ b/.claude/skills/infix-dev/SKILL.md @@ -10,7 +10,8 @@ when_to_use: >- Building or flashing an Infix image; running `make test` / writing a test case; editing src/confd/yang or wiring a YANG model into a daemon; changing confd, netd, statd or yangerd; changing src/webui pages, handlers or templates; debugging the - QEMU dev build; writing a commit, doc page or ChangeLog entry. + QEMU dev build; writing a commit, doc page or ChangeLog entry; committing or + pushing changes. allowed-tools: Read, Grep, Glob, Bash(make *), Bash(go *), Bash(git submodule *), Bash(git status), Bash(git log:*), Bash(ls *) --- diff --git a/AGENTS.md b/AGENTS.md index 6e385e9caa..ea8828a5ee 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -5,7 +5,7 @@ over NETCONF, RESTCONF and a CLI from YANG models. The developer documentation is in `doc/`, starting with `doc/developers-guide.md`, and contribution rules are in `.github/CONTRIBUTING.md`. -Before building, testing or changing anything in this tree, invoke the -`infix-dev` skill in `.claude/skills/infix-dev/`. It names the document -to read for the task at hand and lists the rules reviewers enforce. -When the skill and the docs disagree, the docs win. +Before building, testing, changing, committing or pushing anything in +this tree, invoke the `infix-dev` skill in `.claude/skills/infix-dev/`. +It names the document to read for the task at hand and lists the rules +reviewers enforce. When the skill and the docs disagree, the docs win. diff --git a/src/yangerd/internal/zapiwatcher/zapiwatcher.go b/src/yangerd/internal/zapiwatcher/zapiwatcher.go index 171b87976c..1edd6919ad 100644 --- a/src/yangerd/internal/zapiwatcher/zapiwatcher.go +++ b/src/yangerd/internal/zapiwatcher/zapiwatcher.go @@ -321,7 +321,7 @@ func (w *ZAPIWatcher) collectRoutes(ctx context.Context, family string) ([]json. var protocolMap = map[string]string{ "kernel": "infix-routing:kernel", "connected": "ietf-routing:direct", - "local": "ietf-routing:direct", + "local": "infix-routing:kernel", "static": "ietf-routing:static", "ospf": "ietf-ospf:ospfv2", "ospf6": "ietf-ospf:ospfv3", diff --git a/src/yangerd/internal/zapiwatcher/zapiwatcher_test.go b/src/yangerd/internal/zapiwatcher/zapiwatcher_test.go index 35cc1defc2..87e83eefe7 100644 --- a/src/yangerd/internal/zapiwatcher/zapiwatcher_test.go +++ b/src/yangerd/internal/zapiwatcher/zapiwatcher_test.go @@ -66,7 +66,7 @@ func TestProtocolName(t *testing.T) { cases := map[string]string{ "kernel": "infix-routing:kernel", "connected": "ietf-routing:direct", - "local": "ietf-routing:direct", + "local": "infix-routing:kernel", // host route for own addr -> kernel "static": "ietf-routing:static", "ospf": "ietf-ospf:ospfv2", "rip": "ietf-rip:rip",