ols-688-sprint-12-bpdu-guard-draft

This commit is contained in:
Binny
2025-06-08 18:16:46 +00:00
parent d8d4380977
commit adf3514ae9
6 changed files with 95 additions and 0 deletions

View File

@@ -499,3 +499,20 @@ properties:
type: string
minLength: 1
maxLength: 32
bpdu-guard:
description: BPDU Guard configuration block. Enables protection against unexpected BPDUs
on edge ports to prevent loops and rogue switch connections.
type: object
properties:
enabled:
description: When true, the port will be placed into an error-disabled state if any BPDU is received.
type: boolean
auto-recovery-intvl-secs:
description: Time in 'seconds' after which a port that was err-disabled due to BPDU Guard
violation will be automatically re-enabled. Set to 0 to also imply a disable of auto recovery.
type: integer
edge-port:
description: When true, the port behaves as an STP Edge Port. When false, the port
participates fully in STP and is treated as a normal switch port.
type: boolean
default: false

View File

@@ -242,6 +242,21 @@ properties:
transitions:
type: integer
description: Number of STP state transitions (forwarding/discarding) on this port.
oper-edge-port:
type: boolean
description: Whether the port is operating as an edge port (no BPDU expected).
bpdu-guard-status:
type: string
description: Runtime status of BPDU Guard on the port.
- `enabled`- Actively monitoring for BPDUs.
- `errdisabled`- Port is shutdown due to BPDU violation.
- `recovering`- Temporarily disabled and in auto-recovery interval.
- `disabled`- BPDU Guard feature not applied.
enum:
- enabled
- errdisabled
- recovering
- disabled
lbd:
description: Loopback Detection (LBD) status on this port.
type: object

View File

@@ -753,6 +753,25 @@
"maxLength": 32
}
}
},
"bpdu-guard": {
"description": "BPDU Guard configuration block. Enables protection against unexpected BPDUs on edge ports to prevent loops and rogue switch connections.",
"type": "object",
"properties": {
"enabled": {
"description": "When true, the port will be placed into an error-disabled state if any BPDU is received.",
"type": "boolean"
},
"auto-recovery-intvl-secs": {
"description": "Time in 'seconds' after which a port that was err-disabled due to BPDU Guard violation will be automatically re-enabled. Set to 0 to also imply a disable of auto recovery.",
"type": "integer"
}
}
},
"edge-port": {
"description": "When true, the port behaves as an STP Edge Port. When false, the port participates fully in STP and is treated as a normal switch port.",
"type": "boolean",
"default": false
}
}
}

View File

@@ -668,6 +668,21 @@
"maxLength": 32
}
}
},
"bpdu-guard": {
"type": "object",
"properties": {
"enabled": {
"type": "boolean"
},
"auto-recovery-intvl-secs": {
"type": "integer"
}
}
},
"edge-port": {
"type": "boolean",
"default": false
}
}
},

View File

@@ -787,6 +787,25 @@
"maxLength": 32
}
}
},
"bpdu-guard": {
"description": "BPDU Guard configuration block. Enables protection against unexpected BPDUs on edge ports to prevent loops and rogue switch connections.",
"type": "object",
"properties": {
"enabled": {
"description": "When true, the port will be placed into an error-disabled state if any BPDU is received.",
"type": "boolean"
},
"auto-recovery-intvl-secs": {
"description": "Time in 'seconds' after which a port that was err-disabled due to BPDU Guard violation will be automatically re-enabled. Set to 0 to also imply a disable of auto recovery.",
"type": "integer"
}
}
},
"edge-port": {
"description": "When true, the port behaves as an STP Edge Port. When false, the port participates fully in STP and is treated as a normal switch port.",
"type": "boolean",
"default": false
}
}
},

View File

@@ -1319,6 +1319,16 @@
"transitions": {
"type": "integer",
"description": "Number of STP state transitions (forwarding/discarding) on this port."
},
"bpdu-guard-status": {
"type": "string",
"description": "Runtime status of BPDU Guard on the port. - `enabled`- Actively monitoring for BPDUs. - `errdisabled`- Port is shutdown due to BPDU violation. - `recovering`- Temporarily disabled and in auto-recovery interval. - `disabled`- BPDU Guard feature not applied.",
"enum": [
"enabled",
"errdisabled",
"recovering",
"disabled"
]
}
}
},