From 467a67c3d83503befc8ba38833a61c8bf07582ec Mon Sep 17 00:00:00 2001 From: Andrey Vertiprakhov Date: Mon, 15 Mar 2021 11:02:30 +0500 Subject: [PATCH] Add hwlimits model interface --- collections/inv.modelinterfaces/hwlimits.json | 36 +++++++++++++++++++ .../dev/reference/model-interface/hwlimits.md | 30 ++++++++++++++++ 2 files changed, 66 insertions(+) create mode 100644 collections/inv.modelinterfaces/hwlimits.json create mode 100644 docs/en/docs/dev/reference/model-interface/hwlimits.md diff --git a/collections/inv.modelinterfaces/hwlimits.json b/collections/inv.modelinterfaces/hwlimits.json new file mode 100644 index 0000000000..1f5f1e1d24 --- /dev/null +++ b/collections/inv.modelinterfaces/hwlimits.json @@ -0,0 +1,36 @@ +{ + "name": "hwlimits", + "$collection": "inv.modelinterfaces", + "uuid": "e1fea597-5f0e-45cf-bc3d-8770c58712c8", + "description": "Device nonconfigurable (hardware) limits", + "attrs": [ + { + "name": "macs", + "type": "int", + "description": "Limit for MAC addresses", + "required": false, + "is_const": true + }, + { + "name": "queues", + "type": "int", + "description": "Limit for QoS queues", + "required": false, + "is_const": true + }, + { + "name": "ipv4_prefixes", + "type": "int", + "description": "Limit for IPv4 prefixes", + "required": false, + "is_const": true + }, + { + "name": "ipv6_prefixes", + "type": "int", + "description": "Limit for IPv6 prefixes", + "required": false, + "is_const": true + } + ] +} diff --git a/docs/en/docs/dev/reference/model-interface/hwlimits.md b/docs/en/docs/dev/reference/model-interface/hwlimits.md new file mode 100644 index 0000000000..b8d794a62f --- /dev/null +++ b/docs/en/docs/dev/reference/model-interface/hwlimits.md @@ -0,0 +1,30 @@ +--- +e1fea597-5f0e-45cf-bc3d-8770c58712c8 +--- + +# hwlimits Model Interface + +Interface be able to describe the hardware limits of the devices in the inventory models. +Limits can be set both on the chassis and for individual modules. Since the combination of module limits for modular equipment depends on too many factors, it is proposed not to implement it and to limit the control of limits for each individual module. + +## Variables + +| Name | Type | Description | Required | Constant | Default | +| ------- | ------ | ------------------------- | ---------------- | ---------------- | --------| +|macs | Int | Limit for MAC addresses | {{ no }} | {{ yes }} | | +|queues | Int | Limit for QoS queues | {{ no }} | {{ yes }} | | +|ipv4_prefixes | Int | Limit for IPv4 prefixes on routing-table | {{ no }} | {{ yes }} | | +|ipv6_prefixes | Int | Limit for IPv6 prefixes on routing-table | {{ no }} | {{ yes }} | | + +## Examples + +```json +{ + "hwlimits": { + "macs": 8192, + "queues": 8, + "ipv4_prefixes": 4294967295, + "ipv6_prefixes": 4294967295 + } +} +``` -- GitLab