OLS-425 second commit with review comments incorporated.

This commit is contained in:
Binny
2024-11-12 19:40:43 +00:00
parent 5622b66bb8
commit e96efa25ae
8 changed files with 179 additions and 444 deletions

View File

@@ -152,14 +152,6 @@ properties:
max-vlans-per-mclag-group:
description: Indicates the maximum number of VLANs that can be supported within a single MC-LAG group.
type: integer
peer-link-bandwidth:
description: Defines the required minimum bandwidth for the peer link that connects two MC-LAG switches.
type: string
enum:
- 1G
- 10G
- 40G
- 100G
dual-active-detection:
description: Describes the dual-active detection mechanism to prevent both switches from becoming active simultaneously.
type: string
@@ -187,29 +179,26 @@ properties:
items:
type: string
enum:
- management-ip-address
- port-description
- system-capabilities
- system-description
- system-name
- proto-ident
- proto-vid
- pvid
- vlan-name
- link-agg
- mac-phy
- max-frame
- poe
- med-location
- med-inventory
- med-capabilities
- med-network-policy
lldp-med-support:
type: boolean
description: Specifies whether LLDP-MED support is available on the switch.
examples:
- true
- false
- lldp-basic-tlv-mgmt-ip-v4
- lldp-basic-tlv-mgmt-ip-v6
- lldp-basic-tlv-port-descr
- lldp-basic-tlv-sys-capab
- lldp-basic-tlv-sys-descr
- lldp-basic-tlv-sys-name
- lldp-dot1-tlv-proto-ident
- lldp-dot1-tlv-proto-vid
- lldp-dot1-tlv-pvid
- lldp-dot1-tlv-vlan-name
- lldp-dot3-tlv-link-agg
- lldp-dot3-tlv-mac-phy
- lldp-dot3-tlv-max-frame
- lldp-dot3-tlv-poe
- lldp-med-location-civic-addr
- lldp-med-tlv-ext-poe
- lldp-med-tlv-inventory
- lldp-med-tlv-location
- lldp-med-tlv-med-cap
- lldp-med-tlv-network-policy
max-neighbors:
type: integer
description: Maximum number of LLDP neighbors a switch can discover and maintain.
@@ -217,92 +206,6 @@ properties:
- 64
- 128
- 256
refresh-interval:
type: object
description: Time interval (in seconds) for sending LLDP advertisements.
properties:
min:
type: integer
examples:
- 2
- 5
max:
type: integer
examples:
- 60
- 120
holdtime-multiplier-range:
type: object
description: Range of holdtime multiplier values for LLDP TTL calculation.
properties:
min:
type: integer
examples:
- 2
- 4
max:
type: integer
examples:
- 10
- 20
reinit-delay:
type: object
description: Time delay (in seconds) before reinitializing LLDP after a port/link down event.
properties:
min:
type: integer
examples:
- 1
- 2
max:
type: integer
examples:
- 5
- 10
notification-interval:
type: object
description: Interval for sending SNMP notifications upon LLDP changes (in seconds).
properties:
min:
type: integer
examples:
- 10
- 30
max:
type: integer
examples:
- 300
- 600
mac-phy-support:
type: boolean
description: Specifies whether LLDP advertisements include MAC and physical layer specifications.
examples:
- true
- false
max-frame-size:
type: integer
description: Maximum frame size that the switch supports for LLDP advertisements.
examples:
- 1500
- 9000
link-aggregation-support:
type: boolean
description: Indicates if LLDP supports link aggregation reporting on the switch.
examples:
- true
- false
vlan-tlv-support:
type: boolean
description: Indicates if the switch supports advertising VLAN-related TLVs (e.g., PVID, VLAN name).
examples:
- true
- false
power-over-ethernet-support:
type: boolean
description: Specifies if the switch can advertise PoE capabilities through LLDP.
examples:
- true
- false
supported-features:
type: array
description:

View File

@@ -242,35 +242,6 @@ properties:
- short
- long
default: long
voice-vlan-intf-config:
description: "Configure the Voice VLAN feature at the interface level, allowing for VoIP traffic to be prioritized on this specific port."
type: object
properties:
voice-vlan-intf-mode:
description: "Specify the mode of placing this port on the voice VLAN."
type: string
default: "auto"
enum:
- none
- manual
- auto
voice-vlan-intf-priority:
description: "Define the Class of Service (CoS) priority for VoIP traffic passing through this port, ensuring higher priority over other traffic types."
type: integer
default: 6
minimum: 0
maximum: 6
voice-vlan-intf-detect-voice:
description: "Select the detection method for identifying VoIP traffic on this port, such as OUI-based detection or traffic pattern recognition."
type: string
default: "oui"
enum:
- oui
- lldp
voice-vlan-intf-security:
description: "Enable or configure security filtering for VoIP traffic on the interface to protect against unauthorized devices."
type: boolean
default: false
lldp-interface-config:
type: object
description: Configurations of LLDP on a specified interface.
@@ -355,7 +326,7 @@ properties:
description: The type of device to which the location applies.
lldp-med-location-civic-ca:
description: The list of LLDP MED Location CA Types to advertise the physical location of the device, that is the city, street number, building and room information.
type: arrray
type: array
items:
type: object
properties:

View File

@@ -200,6 +200,35 @@ properties:
description: "Enables DHCP Snooping on a VLAN"
type: boolean
default: false
voice-vlan-intf-config:
description: "Configure the Voice VLAN feature at the interface level, allowing for VoIP traffic to be prioritized on this specific port."
type: object
properties:
voice-vlan-intf-mode:
description: "Specify the mode of placing this port on the voice VLAN."
type: string
default: "auto"
enum:
- none
- manual
- auto
voice-vlan-intf-priority:
description: "Define the Class of Service (CoS) priority for VoIP traffic passing through this port, ensuring higher priority over other traffic types."
type: integer
default: 6
minimum: 0
maximum: 6
voice-vlan-intf-detect-voice:
description: "Select the detection method for identifying VoIP traffic on this port, such as OUI-based detection or traffic pattern recognition."
type: string
default: "oui"
enum:
- oui
- lldp
voice-vlan-intf-security:
description: "Enable or configure security filtering for VoIP traffic on the interface to protect against unauthorized devices."
type: boolean
default: false
dhcp:
$ref: "https://ucentral.io/schema/v1/interface/ipv4/dhcp/"
dhcp-leases:

View File

@@ -360,13 +360,6 @@ properties:
minimum: 0
maximum: 7
# IP-ACL (IPv4/IPv6) Parameters
acl-ip-type:
description: Filters traffic based on the IP protocol type (IPv4, IPv6)
type: string
enum:
- none
- ipv4
- ipv6
acl-ipv4-source-address:
description: The IPv4 address of the source to filter on
type: string

View File

@@ -198,16 +198,6 @@
"description": "Indicates the maximum number of VLANs that can be supported within a single MC-LAG group.",
"type": "integer"
},
"peer-link-bandwidth": {
"description": "Defines the required minimum bandwidth for the peer link that connects two MC-LAG switches.",
"type": "string",
"enum": [
"1G",
"10G",
"40G",
"100G"
]
},
"dual-active-detection": {
"description": "Describes the dual-active detection mechanism to prevent both switches from becoming active simultaneously.",
"type": "string",
@@ -241,34 +231,29 @@
"items": {
"type": "string",
"enum": [
"management-ip-address",
"port-description",
"system-capabilities",
"system-description",
"system-name",
"proto-ident",
"proto-vid",
"pvid",
"vlan-name",
"link-agg",
"mac-phy",
"max-frame",
"poe",
"med-location",
"med-inventory",
"med-capabilities",
"med-network-policy"
"lldp-basic-tlv-mgmt-ip-v4",
"lldp-basic-tlv-mgmt-ip-v6",
"lldp-basic-tlv-port-descr",
"lldp-basic-tlv-sys-capab",
"lldp-basic-tlv-sys-descr",
"lldp-basic-tlv-sys-name",
"lldp-dot1-tlv-proto-ident",
"lldp-dot1-tlv-proto-vid",
"lldp-dot1-tlv-pvid",
"lldp-dot1-tlv-vlan-name",
"lldp-dot3-tlv-link-agg",
"lldp-dot3-tlv-mac-phy",
"lldp-dot3-tlv-max-frame",
"lldp-dot3-tlv-poe",
"lldp-med-location-civic-addr",
"lldp-med-tlv-ext-poe",
"lldp-med-tlv-inventory",
"lldp-med-tlv-location",
"lldp-med-tlv-med-cap",
"lldp-med-tlv-network-policy"
]
}
},
"lldp-med-support": {
"type": "boolean",
"description": "Specifies whether LLDP-MED support is available on the switch.",
"examples": [
true,
false
]
},
"max-neighbors": {
"type": "integer",
"description": "Maximum number of LLDP neighbors a switch can discover and maintain.",
@@ -277,126 +262,6 @@
128,
256
]
},
"refresh-interval": {
"type": "object",
"description": "Time interval (in seconds) for sending LLDP advertisements.",
"properties": {
"min": {
"type": "integer",
"examples": [
2,
5
]
},
"max": {
"type": "integer",
"examples": [
60,
120
]
}
}
},
"holdtime-multiplier-range": {
"type": "object",
"description": "Range of holdtime multiplier values for LLDP TTL calculation.",
"properties": {
"min": {
"type": "integer",
"examples": [
2,
4
]
},
"max": {
"type": "integer",
"examples": [
10,
20
]
}
}
},
"reinit-delay": {
"type": "object",
"description": "Time delay (in seconds) before reinitializing LLDP after a port/link down event.",
"properties": {
"min": {
"type": "integer",
"examples": [
1,
2
]
},
"max": {
"type": "integer",
"examples": [
5,
10
]
}
}
},
"notification-interval": {
"type": "object",
"description": "Interval for sending SNMP notifications upon LLDP changes (in seconds).",
"properties": {
"min": {
"type": "integer",
"examples": [
10,
30
]
},
"max": {
"type": "integer",
"examples": [
300,
600
]
}
}
},
"mac-phy-support": {
"type": "boolean",
"description": "Specifies whether LLDP advertisements include MAC and physical layer specifications.",
"examples": [
true,
false
]
},
"max-frame-size": {
"type": "integer",
"description": "Maximum frame size that the switch supports for LLDP advertisements.",
"examples": [
1500,
9000
]
},
"link-aggregation-support": {
"type": "boolean",
"description": "Indicates if LLDP supports link aggregation reporting on the switch.",
"examples": [
true,
false
]
},
"vlan-tlv-support": {
"type": "boolean",
"description": "Indicates if the switch supports advertising VLAN-related TLVs (e.g., PVID, VLAN name).",
"examples": [
true,
false
]
},
"power-over-ethernet-support": {
"type": "boolean",
"description": "Specifies if the switch can advertise PoE capabilities through LLDP.",
"examples": [
true,
false
]
}
}
},

View File

@@ -774,43 +774,6 @@
}
}
},
"voice-vlan-intf-config": {
"description": "Configure the Voice VLAN feature at the interface level, allowing for VoIP traffic to be prioritized on this specific port.",
"type": "object",
"properties": {
"voice-vlan-intf-mode": {
"description": "Specify the mode of placing this port on the voice VLAN.",
"type": "string",
"default": "auto",
"enum": [
"none",
"manual",
"auto"
]
},
"voice-vlan-intf-priority": {
"description": "Define the Class of Service (CoS) priority for VoIP traffic passing through this port, ensuring higher priority over other traffic types.",
"type": "integer",
"default": 6,
"minimum": 0,
"maximum": 6
},
"voice-vlan-intf-detect-voice": {
"description": "Select the detection method for identifying VoIP traffic on this port, such as OUI-based detection or traffic pattern recognition.",
"type": "string",
"default": "oui",
"enum": [
"oui",
"lldp"
]
},
"voice-vlan-intf-security": {
"description": "Enable or configure security filtering for VoIP traffic on the interface to protect against unauthorized devices.",
"type": "boolean",
"default": false
}
}
},
"lldp-interface-config": {
"type": "object",
"description": "Configurations of LLDP on a specified interface.",
@@ -914,7 +877,7 @@
},
"lldp-med-location-civic-ca": {
"description": "The list of LLDP MED Location CA Types to advertise the physical location of the device, that is the city, street number, building and room information.",
"type": "arrray",
"type": "array",
"items": {
"type": "object",
"properties": {
@@ -1377,15 +1340,6 @@
"minimum": 0,
"maximum": 7
},
"acl-ip-type": {
"description": "Filters traffic based on the IP protocol type (IPv4, IPv6)",
"type": "string",
"enum": [
"none",
"ipv4",
"ipv6"
]
},
"acl-ipv4-source-address": {
"description": "The IPv4 address of the source to filter on",
"type": "string",
@@ -2454,6 +2408,43 @@
"type": "boolean",
"default": false
},
"voice-vlan-intf-config": {
"description": "Configure the Voice VLAN feature at the interface level, allowing for VoIP traffic to be prioritized on this specific port.",
"type": "object",
"properties": {
"voice-vlan-intf-mode": {
"description": "Specify the mode of placing this port on the voice VLAN.",
"type": "string",
"default": "auto",
"enum": [
"none",
"manual",
"auto"
]
},
"voice-vlan-intf-priority": {
"description": "Define the Class of Service (CoS) priority for VoIP traffic passing through this port, ensuring higher priority over other traffic types.",
"type": "integer",
"default": 6,
"minimum": 0,
"maximum": 6
},
"voice-vlan-intf-detect-voice": {
"description": "Select the detection method for identifying VoIP traffic on this port, such as OUI-based detection or traffic pattern recognition.",
"type": "string",
"default": "oui",
"enum": [
"oui",
"lldp"
]
},
"voice-vlan-intf-security": {
"description": "Enable or configure security filtering for VoIP traffic on the interface to protect against unauthorized devices.",
"type": "boolean",
"default": false
}
}
},
"dhcp": {
"description": "This section describes the DHCP server configuration",
"type": "object",

View File

@@ -553,38 +553,6 @@
}
}
},
"voice-vlan-intf-config": {
"type": "object",
"properties": {
"voice-vlan-intf-mode": {
"type": "string",
"default": "auto",
"enum": [
"none",
"manual",
"auto"
]
},
"voice-vlan-intf-priority": {
"type": "integer",
"default": 6,
"minimum": 0,
"maximum": 6
},
"voice-vlan-intf-detect-voice": {
"type": "string",
"default": "oui",
"enum": [
"oui",
"lldp"
]
},
"voice-vlan-intf-security": {
"type": "boolean",
"default": false
}
}
},
"lldp-interface-config": {
"type": "object",
"properties": {
@@ -667,7 +635,7 @@
"type": "integer"
},
"lldp-med-location-civic-ca": {
"type": "arrray",
"type": "array",
"items": {
"type": "object",
"properties": {
@@ -1057,14 +1025,6 @@
"minimum": 0,
"maximum": 7
},
"acl-ip-type": {
"type": "string",
"enum": [
"none",
"ipv4",
"ipv6"
]
},
"acl-ipv4-source-address": {
"type": "string",
"format": "ipv4"
@@ -2038,6 +1998,38 @@
"type": "boolean",
"default": false
},
"voice-vlan-intf-config": {
"type": "object",
"properties": {
"voice-vlan-intf-mode": {
"type": "string",
"default": "auto",
"enum": [
"none",
"manual",
"auto"
]
},
"voice-vlan-intf-priority": {
"type": "integer",
"default": 6,
"minimum": 0,
"maximum": 6
},
"voice-vlan-intf-detect-voice": {
"type": "string",
"default": "oui",
"enum": [
"oui",
"lldp"
]
},
"voice-vlan-intf-security": {
"type": "boolean",
"default": false
}
}
},
"dhcp": {
"$ref": "#/$defs/interface.ipv4.dhcp"
},

View File

@@ -626,43 +626,6 @@
}
}
},
"voice-vlan-intf-config": {
"description": "Configure the Voice VLAN feature at the interface level, allowing for VoIP traffic to be prioritized on this specific port.",
"type": "object",
"properties": {
"voice-vlan-intf-mode": {
"description": "Specify the mode of placing this port on the voice VLAN.",
"type": "string",
"default": "auto",
"enum": [
"none",
"manual",
"auto"
]
},
"voice-vlan-intf-priority": {
"description": "Define the Class of Service (CoS) priority for VoIP traffic passing through this port, ensuring higher priority over other traffic types.",
"type": "integer",
"default": 6,
"minimum": 0,
"maximum": 6
},
"voice-vlan-intf-detect-voice": {
"description": "Select the detection method for identifying VoIP traffic on this port, such as OUI-based detection or traffic pattern recognition.",
"type": "string",
"default": "oui",
"enum": [
"oui",
"lldp"
]
},
"voice-vlan-intf-security": {
"description": "Enable or configure security filtering for VoIP traffic on the interface to protect against unauthorized devices.",
"type": "boolean",
"default": false
}
}
},
"lldp-interface-config": {
"type": "object",
"description": "Configurations of LLDP on a specified interface.",
@@ -766,7 +729,7 @@
},
"lldp-med-location-civic-ca": {
"description": "The list of LLDP MED Location CA Types to advertise the physical location of the device, that is the city, street number, building and room information.",
"type": "arrray",
"type": "array",
"items": {
"type": "object",
"properties": {
@@ -1228,15 +1191,6 @@
"minimum": 0,
"maximum": 7
},
"acl-ip-type": {
"description": "Filters traffic based on the IP protocol type (IPv4, IPv6)",
"type": "string",
"enum": [
"none",
"ipv4",
"ipv6"
]
},
"acl-ipv4-source-address": {
"description": "The IPv4 address of the source to filter on",
"type": "string",
@@ -2362,6 +2316,43 @@
"type": "boolean",
"default": false
},
"voice-vlan-intf-config": {
"description": "Configure the Voice VLAN feature at the interface level, allowing for VoIP traffic to be prioritized on this specific port.",
"type": "object",
"properties": {
"voice-vlan-intf-mode": {
"description": "Specify the mode of placing this port on the voice VLAN.",
"type": "string",
"default": "auto",
"enum": [
"none",
"manual",
"auto"
]
},
"voice-vlan-intf-priority": {
"description": "Define the Class of Service (CoS) priority for VoIP traffic passing through this port, ensuring higher priority over other traffic types.",
"type": "integer",
"default": 6,
"minimum": 0,
"maximum": 6
},
"voice-vlan-intf-detect-voice": {
"description": "Select the detection method for identifying VoIP traffic on this port, such as OUI-based detection or traffic pattern recognition.",
"type": "string",
"default": "oui",
"enum": [
"oui",
"lldp"
]
},
"voice-vlan-intf-security": {
"description": "Enable or configure security filtering for VoIP traffic on the interface to protect against unauthorized devices.",
"type": "boolean",
"default": false
}
}
},
"dhcp": {
"$ref": "#/$defs/interface.ipv4.dhcp"
},