mirror of
https://github.com/Telecominfraproject/ols-ucentral-schema.git
synced 2025-10-29 09:12:20 +00:00
OLS-655 draft changes
This commit is contained in:
@@ -191,3 +191,75 @@ properties:
|
|||||||
description:
|
description:
|
||||||
Max power (in Watts) module can drain.
|
Max power (in Watts) module can drain.
|
||||||
type: number
|
type: number
|
||||||
|
loop-detect-protocol:
|
||||||
|
description: Status and protocol information for loop detection or prevention mechanisms
|
||||||
|
active on this interface. Includes STP/xSTP/MSTP, Loopback Detection (LBD), etc.
|
||||||
|
type: object
|
||||||
|
properties:
|
||||||
|
stp:
|
||||||
|
description: Spanning Tree Protocol (IEEE 802.1D/RSTP/MSTP) state on the port.
|
||||||
|
type: object
|
||||||
|
properties:
|
||||||
|
protocol:
|
||||||
|
type: string
|
||||||
|
description: Variant of STP running (e.g., STP, RSTP, MSTP, RPVST+).
|
||||||
|
examples:
|
||||||
|
- RSTP
|
||||||
|
- MSTP
|
||||||
|
state:
|
||||||
|
type: string
|
||||||
|
description: STP state of the port.
|
||||||
|
enum:
|
||||||
|
- DISABLED
|
||||||
|
- BLOCKING
|
||||||
|
- LISTENING
|
||||||
|
- LEARNING
|
||||||
|
- FORWARDING
|
||||||
|
role:
|
||||||
|
type: string
|
||||||
|
description: Role of the port in STP topology.
|
||||||
|
enum:
|
||||||
|
- ROOT
|
||||||
|
- DESIGNATED
|
||||||
|
- ALTERNATE
|
||||||
|
- BACKUP
|
||||||
|
- DISABLED
|
||||||
|
bridge-id:
|
||||||
|
type: string
|
||||||
|
description: STP Bridge ID
|
||||||
|
root-bridge-id:
|
||||||
|
type: string
|
||||||
|
description: STP Root Bridge ID for the instance.
|
||||||
|
oper-edge-port:
|
||||||
|
type: boolean
|
||||||
|
description: Whether the port is operating as an edge port (no BPDU expected).
|
||||||
|
cost:
|
||||||
|
type: integer
|
||||||
|
description: Operational path cost of the port.
|
||||||
|
designated-cost:
|
||||||
|
type: integer
|
||||||
|
description: Cost advertised by the designated port.
|
||||||
|
transitions:
|
||||||
|
type: integer
|
||||||
|
description: Number of STP state transitions (forwarding/discarding) on this port.
|
||||||
|
lbd:
|
||||||
|
description: Loopback Detection (LBD) status on this port.
|
||||||
|
type: object
|
||||||
|
properties:
|
||||||
|
enabled:
|
||||||
|
type: boolean
|
||||||
|
description: Whether LBD is enabled on this port.
|
||||||
|
state:
|
||||||
|
type: string
|
||||||
|
description: Current loop detection status.
|
||||||
|
enum:
|
||||||
|
- NO_LOOP
|
||||||
|
- LOOP_DETECTED
|
||||||
|
- DISABLED
|
||||||
|
action:
|
||||||
|
type: string
|
||||||
|
description: Action taken when loop is detected (e.g., block, shutdown).
|
||||||
|
enum:
|
||||||
|
- NONE
|
||||||
|
- BLOCK
|
||||||
|
- SHUTDOWN
|
||||||
@@ -114,3 +114,78 @@ properties:
|
|||||||
blocked-interface:
|
blocked-interface:
|
||||||
type: string
|
type: string
|
||||||
description: The interface (e.g., port) where the blocked entry was detected.
|
description: The interface (e.g., port) where the blocked entry was detected.
|
||||||
|
stp:
|
||||||
|
description: Global status and configuration of the Spanning Tree Protocol (STP) across the switch.
|
||||||
|
Supports variants like STP, RSTP, MSTP. Includes bridge-wide parameters and protocol behavior.
|
||||||
|
type: object
|
||||||
|
properties:
|
||||||
|
enabled:
|
||||||
|
type: boolean
|
||||||
|
description: Whether STP is enabled globally on the switch.
|
||||||
|
mode:
|
||||||
|
type: string
|
||||||
|
description: Operational STP mode used across the switch.
|
||||||
|
enum:
|
||||||
|
- STP
|
||||||
|
- RSTP
|
||||||
|
- MSTP
|
||||||
|
- PVST
|
||||||
|
- RPVSTP
|
||||||
|
transmission-limit:
|
||||||
|
type: integer
|
||||||
|
description: Maximum number of BPDUs that can be transmitted per hello time.
|
||||||
|
path-cost-method:
|
||||||
|
type: string
|
||||||
|
description: Indicates whether "Short" or "Long" path cost method is in use.
|
||||||
|
enum:
|
||||||
|
- Short
|
||||||
|
- Long
|
||||||
|
max-hops:
|
||||||
|
type: integer
|
||||||
|
description: Maximum hop count used in MSTP.
|
||||||
|
instances:
|
||||||
|
type: array
|
||||||
|
description: List of STP instances (e.g., MSTP instances).
|
||||||
|
items:
|
||||||
|
type: object
|
||||||
|
properties:
|
||||||
|
instance-id:
|
||||||
|
type: integer
|
||||||
|
description: Instance number (for MSTP or multiple-instance support).
|
||||||
|
vlans:
|
||||||
|
type: string
|
||||||
|
description: VLAN ranges associated with the STP instance.
|
||||||
|
example: "1-4094"
|
||||||
|
bridge-priority:
|
||||||
|
type: integer
|
||||||
|
description: Bridge priority value for STP election.
|
||||||
|
bridge-hello-time:
|
||||||
|
type: integer
|
||||||
|
description: Hello Time interval (in seconds) configured on the bridge.
|
||||||
|
bridge-max-age:
|
||||||
|
type: integer
|
||||||
|
description: Max Age value (in seconds) used for aging STP information.
|
||||||
|
bridge-forward-delay:
|
||||||
|
type: integer
|
||||||
|
description: Delay (in seconds) before transitioning port to forwarding state.
|
||||||
|
remaining-hops:
|
||||||
|
type: integer
|
||||||
|
description: Remaining hop count from the Root Bridge to this bridge.
|
||||||
|
root-bridge-id:
|
||||||
|
type: string
|
||||||
|
description: Bridge ID of the current Root Bridge.
|
||||||
|
root-port:
|
||||||
|
type: string
|
||||||
|
description: Local interface acting as Root Port.
|
||||||
|
example:
|
||||||
|
- Ëthernet1
|
||||||
|
root-cost:
|
||||||
|
type: integer
|
||||||
|
description: Cumulative cost to reach the Root Bridge.
|
||||||
|
topology-changes:
|
||||||
|
type: integer
|
||||||
|
description: Total number of topology changes detected.
|
||||||
|
last-topology-change-seconds:
|
||||||
|
type: integer
|
||||||
|
description: Time (in seconds) since the last topology change.
|
||||||
|
|
||||||
@@ -158,6 +158,103 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"stp": {
|
||||||
|
"description": "Global status and configuration of the Spanning Tree Protocol (STP) across the switch. Supports variants like STP, RSTP, MSTP. Includes bridge-wide parameters and protocol behavior.",
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"enabled": {
|
||||||
|
"type": "boolean",
|
||||||
|
"description": "Whether STP is enabled globally on the switch."
|
||||||
|
},
|
||||||
|
"mode": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "Operational STP mode used across the switch.",
|
||||||
|
"enum": [
|
||||||
|
"STP",
|
||||||
|
"RSTP",
|
||||||
|
"MSTP",
|
||||||
|
"PVST",
|
||||||
|
"RPVSTP"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"transmission-limit": {
|
||||||
|
"type": "integer",
|
||||||
|
"description": "Maximum number of BPDUs that can be transmitted per hello time."
|
||||||
|
},
|
||||||
|
"path-cost-method": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "Indicates whether \"Short\" or \"Long\" path cost method is in use.",
|
||||||
|
"enum": [
|
||||||
|
"Short",
|
||||||
|
"Long"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"max-hops": {
|
||||||
|
"type": "integer",
|
||||||
|
"description": "Maximum hop count used in MSTP."
|
||||||
|
},
|
||||||
|
"instances": null,
|
||||||
|
"type": "array",
|
||||||
|
"description": "List of STP instances (e.g., MSTP instances).",
|
||||||
|
"items": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"instance-id": {
|
||||||
|
"type": "integer",
|
||||||
|
"description": "Instance number (for MSTP or multiple-instance support)."
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"vlans": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "VLAN ranges associated with the STP instance.",
|
||||||
|
"example": "1-4094"
|
||||||
|
},
|
||||||
|
"bridge-priority": {
|
||||||
|
"type": "integer",
|
||||||
|
"description": "Bridge priority value for STP election."
|
||||||
|
},
|
||||||
|
"bridge-hello-time": {
|
||||||
|
"type": "integer",
|
||||||
|
"description": "Hello Time interval (in seconds) configured on the bridge."
|
||||||
|
},
|
||||||
|
"bridge-max-age": {
|
||||||
|
"type": "integer",
|
||||||
|
"description": "Max Age value (in seconds) used for aging STP information."
|
||||||
|
},
|
||||||
|
"bridge-forward-delay": {
|
||||||
|
"type": "integer",
|
||||||
|
"description": "Delay (in seconds) before transitioning port to forwarding state."
|
||||||
|
},
|
||||||
|
"remaining-hops": {
|
||||||
|
"type": "integer",
|
||||||
|
"description": "Remaining hop count from the Root Bridge to this bridge."
|
||||||
|
},
|
||||||
|
"root-bridge-id": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "Bridge ID of the current Root Bridge."
|
||||||
|
},
|
||||||
|
"root-port": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "Local interface acting as Root Port.",
|
||||||
|
"example": [
|
||||||
|
"\u00cbthernet1"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"root-cost": {
|
||||||
|
"type": "integer",
|
||||||
|
"description": "Cumulative cost to reach the Root Bridge."
|
||||||
|
},
|
||||||
|
"topology-changes": {
|
||||||
|
"type": "integer",
|
||||||
|
"description": "Total number of topology changes detected."
|
||||||
|
},
|
||||||
|
"last-topology-change-seconds": {
|
||||||
|
"type": "integer",
|
||||||
|
"description": "Time (in seconds) since the last topology change."
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"$defs": {
|
"$defs": {
|
||||||
@@ -1154,6 +1251,100 @@
|
|||||||
"type": "number"
|
"type": "number"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"loop-detect-protocol": {
|
||||||
|
"description": "Status and protocol information for loop detection or prevention mechanisms active on this interface. Includes STP/xSTP/MSTP, Loopback Detection (LBD), etc.",
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"stp": {
|
||||||
|
"description": "Spanning Tree Protocol (IEEE 802.1D/RSTP/MSTP) state on the port.",
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"protocol": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "Variant of STP running (e.g., STP, RSTP, MSTP, RPVST+).",
|
||||||
|
"examples": [
|
||||||
|
"RSTP",
|
||||||
|
"MSTP"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"state": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "STP state of the port.",
|
||||||
|
"enum": [
|
||||||
|
"DISABLED",
|
||||||
|
"BLOCKING",
|
||||||
|
"LISTENING",
|
||||||
|
"LEARNING",
|
||||||
|
"FORWARDING"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"role": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "Role of the port in STP topology.",
|
||||||
|
"enum": [
|
||||||
|
"ROOT",
|
||||||
|
"DESIGNATED",
|
||||||
|
"ALTERNATE",
|
||||||
|
"BACKUP",
|
||||||
|
"DISABLED"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"bridge-id": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "STP Bridge ID"
|
||||||
|
},
|
||||||
|
"root-bridge-id": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "STP Root Bridge ID for the instance."
|
||||||
|
},
|
||||||
|
"oper-edge-port": {
|
||||||
|
"type": "boolean",
|
||||||
|
"description": "Whether the port is operating as an edge port (no BPDU expected)."
|
||||||
|
},
|
||||||
|
"cost": {
|
||||||
|
"type": "integer",
|
||||||
|
"description": "Operational path cost of the port."
|
||||||
|
},
|
||||||
|
"designated-cost": {
|
||||||
|
"type": "integer",
|
||||||
|
"description": "Cost advertised by the designated port."
|
||||||
|
},
|
||||||
|
"transitions": {
|
||||||
|
"type": "integer",
|
||||||
|
"description": "Number of STP state transitions (forwarding/discarding) on this port."
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"lbd": {
|
||||||
|
"description": "Loopback Detection (LBD) status on this port.",
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"enabled": {
|
||||||
|
"type": "boolean",
|
||||||
|
"description": "Whether LBD is enabled on this port."
|
||||||
|
},
|
||||||
|
"state": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "Current loop detection status.",
|
||||||
|
"enum": [
|
||||||
|
"NO_LOOP",
|
||||||
|
"LOOP_DETECTED",
|
||||||
|
"DISABLED"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"action": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "Action taken when loop is detected (e.g., block, shutdown).",
|
||||||
|
"enum": [
|
||||||
|
"NONE",
|
||||||
|
"BLOCK",
|
||||||
|
"SHUTDOWN"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user