fix(mcp): учитывать отключённую статику и имя сессии при чтении RIB
Docker images / prepare-release (push) Successful in 13s
Docker images / backend-test (push) Failing after 3m28s
Docker images / backend-image (push) Skipped
Docker images / frontend-image (push) Successful in 4m54s
Docker images / updater-image (push) Successful in 2m8s
Docker images / netflow-agent-image (push) Successful in 33s
Docker images / publish-release (push) Skipped
Docker images / notify-webhook (push) Skipped
Docker images / prepare-release (push) Successful in 13s
Docker images / backend-test (push) Failing after 3m28s
Docker images / backend-image (push) Skipped
Docker images / frontend-image (push) Successful in 4m54s
Docker images / updater-image (push) Successful in 2m8s
Docker images / netflow-agent-image (push) Successful in 33s
Docker images / publish-release (push) Skipped
Docker images / notify-webhook (push) Skipped
This commit is contained in:
1 parent
731c19a14d
commit
187a0cd45e
3 files changed
+67
-17
No files matched your search
@@ -19,8 +19,8 @@ async function access(context: ActionContext) {
|
||||
if (fingerprint(current.policy) !== fingerprint(context.connection.policy)) throw new McpError("RESET_REQUIRED", "Область чтения BGP изменилась", 409)
|
||||
}
|
||||
export function registerBgpPrefixActions(register: typeof add) {
|
||||
const observation = bgpRibSelection.extend({ serverId: z.number().int().positive().safe() })
|
||||
register("routing.bgp.rib.read", "mm_bgp_rib_get", "Нативная IPv4 BGP RIB по таблице: count-only или страницы всех путей, включая filtered. В следующих страницах передавайте expectedFingerprint первой страницы", "bgp", permissions, "read", "servers", observation, { read: async (input, context) => {
|
||||
const observation = bgpRibSelection.safeExtend({ serverId: z.number().int().positive().safe() })
|
||||
register("routing.bgp.rib.read", "mm_bgp_rib_get", "Количество или страницы всех путей IPv4 BGP RIB, включая filtered. Для выборки по соседу укажите sessionName из bgp.session или peerCacheId. В следующих страницах передавайте expectedFingerprint первой страницы", "bgp", permissions, "read", "servers", observation, { read: async (input, context) => {
|
||||
const { serverId, ...selection } = observation.parse(input)
|
||||
await access(context)
|
||||
const source = await createRoutingSourceContext(await readRoutingEndpoints([serverId]))
|
||||
|
||||
Reference in new issue
Block a user