ols-688-sprint12-stormcontrol-finalreview-p2

This commit is contained in:
Binny
2025-06-17 15:06:46 +00:00
parent 67f3f14fab
commit 0e43b3cb3a
6 changed files with 72 additions and 164 deletions

View File

@@ -500,39 +500,22 @@ properties:
minLength: 1 minLength: 1
maxLength: 32 maxLength: 32
storm-control: storm-control:
description: Storm Control configuration per storm type. Allows enabling or disabling description: Storm Control configuration per storm type. Allows enabling or disabling traffic storm control for broadcast, multicast, and unknown unicast packets,
traffic storm control for broadcast, multicast, and unknown unicast packets, with independent packet-per-second (pps) thresholds. A limit-pps value of 0 implies the control is disabled for that traffic type.
with independent packet-per-second thresholds.
type: object type: object
properties: properties:
broadcast: broadcast-pps:
type: object type: integer
properties: minimum: 0
enabled: default: 0
description: Enable or disable broadcast storm control. description: Maximum allowed broadcast packets per second. 0 disables broadcast storm control.
type: boolean multicast-pps:
limit-pps: type: integer
description: Maximum allowed broadcast packets per second. Traffic beyond this is dropped. minimum: 0
type: integer default: 0
minimum: 0 description: Maximum allowed multicast packets per second. 0 disables multicast storm control.
default: 500 unknown-unicast-pps:
multicast: type: integer
type: object minimum: 0
properties: default: 0
enabled: description: Maximum allowed unknown unicast packets per second. 0 disables unknown unicast storm control.
description: Enable or disable multicast storm control.
type: boolean
limit-pps:
description: Maximum allowed multicast packets per second. Traffic beyond this is dropped.
type: integer
minimum: 0
unknown-unicast:
type: object
properties:
enabled:
description: Enable or disable unknown unicast storm control.
type: boolean
limit-pps:
description: Maximum allowed unknown unicast packets per second. Traffic beyond this is dropped.
type: integer
minimum: 0

View File

@@ -263,7 +263,7 @@ properties:
- none - none
- block - block
- shutdown - shutdown
storm-control: storm-status:
description: Runtime status of Storm Control feature on the port for each storm type. description: Runtime status of Storm Control feature on the port for each storm type.
type: object type: object
properties: properties:

View File

@@ -755,52 +755,26 @@
} }
}, },
"storm-control": { "storm-control": {
"description": "Storm Control configuration per storm type. Allows enabling or disabling traffic storm control for broadcast, multicast, and unknown unicast packets, with independent packet-per-second thresholds.", "description": "Storm Control configuration per storm type. Allows enabling or disabling traffic storm control for broadcast, multicast, and unknown unicast packets, with independent packet-per-second (pps) thresholds. A limit-pps value of 0 implies the control is disabled for that traffic type.",
"type": "object", "type": "object",
"properties": { "properties": null,
"broadcast": { "broadcast-pps": {
"type": "object", "type": "integer",
"properties": { "minimum": 0,
"enabled": { "default": 0,
"description": "Enable or disable broadcast storm control.", "description": "Maximum allowed broadcast packets per second. 0 disables broadcast storm control."
"type": "boolean" },
}, "multicast-pps": {
"limit-pps": { "type": "integer",
"description": "Maximum allowed broadcast packets per second. Traffic beyond this is dropped.", "minimum": 0,
"type": "integer", "default": 0,
"minimum": 0, "description": "Maximum allowed multicast packets per second. 0 disables multicast storm control."
"default": 500 },
} "unknown-unicast-pps": {
} "type": "integer",
}, "minimum": 0,
"multicast": { "default": 0,
"type": "object", "description": "Maximum allowed unknown unicast packets per second. 0 disables unknown unicast storm control."
"properties": {
"enabled": {
"description": "Enable or disable multicast storm control.",
"type": "boolean"
},
"limit-pps": {
"description": "Maximum allowed multicast packets per second. Traffic beyond this is dropped.",
"type": "integer",
"minimum": 0
}
}
},
"unknown-unicast": {
"type": "object",
"properties": {
"enabled": {
"description": "Enable or disable unknown unicast storm control.",
"type": "boolean"
},
"limit-pps": {
"description": "Maximum allowed unknown unicast packets per second. Traffic beyond this is dropped.",
"type": "integer",
"minimum": 0
}
}
}
} }
} }
} }

View File

@@ -671,44 +671,21 @@
}, },
"storm-control": { "storm-control": {
"type": "object", "type": "object",
"properties": { "properties": null,
"broadcast": { "broadcast-pps": {
"type": "object", "type": "integer",
"properties": { "minimum": 0,
"enabled": { "default": 0
"type": "boolean" },
}, "multicast-pps": {
"limit-pps": { "type": "integer",
"type": "integer", "minimum": 0,
"minimum": 0, "default": 0
"default": 500 },
} "unknown-unicast-pps": {
} "type": "integer",
}, "minimum": 0,
"multicast": { "default": 0
"type": "object",
"properties": {
"enabled": {
"type": "boolean"
},
"limit-pps": {
"type": "integer",
"minimum": 0
}
}
},
"unknown-unicast": {
"type": "object",
"properties": {
"enabled": {
"type": "boolean"
},
"limit-pps": {
"type": "integer",
"minimum": 0
}
}
}
} }
} }
} }

View File

@@ -789,52 +789,26 @@
} }
}, },
"storm-control": { "storm-control": {
"description": "Storm Control configuration per storm type. Allows enabling or disabling traffic storm control for broadcast, multicast, and unknown unicast packets, with independent packet-per-second thresholds.", "description": "Storm Control configuration per storm type. Allows enabling or disabling traffic storm control for broadcast, multicast, and unknown unicast packets, with independent packet-per-second (pps) thresholds. A limit-pps value of 0 implies the control is disabled for that traffic type.",
"type": "object", "type": "object",
"properties": { "properties": null,
"broadcast": { "broadcast-pps": {
"type": "object", "type": "integer",
"properties": { "minimum": 0,
"enabled": { "default": 0,
"description": "Enable or disable broadcast storm control.", "description": "Maximum allowed broadcast packets per second. 0 disables broadcast storm control."
"type": "boolean" },
}, "multicast-pps": {
"limit-pps": { "type": "integer",
"description": "Maximum allowed broadcast packets per second. Traffic beyond this is dropped.", "minimum": 0,
"type": "integer", "default": 0,
"minimum": 0, "description": "Maximum allowed multicast packets per second. 0 disables multicast storm control."
"default": 500 },
} "unknown-unicast-pps": {
} "type": "integer",
}, "minimum": 0,
"multicast": { "default": 0,
"type": "object", "description": "Maximum allowed unknown unicast packets per second. 0 disables unknown unicast storm control."
"properties": {
"enabled": {
"description": "Enable or disable multicast storm control.",
"type": "boolean"
},
"limit-pps": {
"description": "Maximum allowed multicast packets per second. Traffic beyond this is dropped.",
"type": "integer",
"minimum": 0
}
}
},
"unknown-unicast": {
"type": "object",
"properties": {
"enabled": {
"description": "Enable or disable unknown unicast storm control.",
"type": "boolean"
},
"limit-pps": {
"description": "Maximum allowed unknown unicast packets per second. Traffic beyond this is dropped.",
"type": "integer",
"minimum": 0
}
}
}
} }
} }
} }

View File

@@ -1352,7 +1352,7 @@
} }
} }
}, },
"storm-control": { "storm-status": {
"description": "Runtime status of Storm Control feature on the port for each storm type.", "description": "Runtime status of Storm Control feature on the port for each storm type.",
"type": "object", "type": "object",
"properties": { "properties": {