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: max-vlans-per-mclag-group:
description: Indicates the maximum number of VLANs that can be supported within a single MC-LAG group. description: Indicates the maximum number of VLANs that can be supported within a single MC-LAG group.
type: integer 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: dual-active-detection:
description: Describes the dual-active detection mechanism to prevent both switches from becoming active simultaneously. description: Describes the dual-active detection mechanism to prevent both switches from becoming active simultaneously.
type: string type: string
@@ -187,29 +179,26 @@ properties:
items: items:
type: string type: string
enum: enum:
- management-ip-address - lldp-basic-tlv-mgmt-ip-v4
- port-description - lldp-basic-tlv-mgmt-ip-v6
- system-capabilities - lldp-basic-tlv-port-descr
- system-description - lldp-basic-tlv-sys-capab
- system-name - lldp-basic-tlv-sys-descr
- proto-ident - lldp-basic-tlv-sys-name
- proto-vid - lldp-dot1-tlv-proto-ident
- pvid - lldp-dot1-tlv-proto-vid
- vlan-name - lldp-dot1-tlv-pvid
- link-agg - lldp-dot1-tlv-vlan-name
- mac-phy - lldp-dot3-tlv-link-agg
- max-frame - lldp-dot3-tlv-mac-phy
- poe - lldp-dot3-tlv-max-frame
- med-location - lldp-dot3-tlv-poe
- med-inventory - lldp-med-location-civic-addr
- med-capabilities - lldp-med-tlv-ext-poe
- med-network-policy - lldp-med-tlv-inventory
lldp-med-support: - lldp-med-tlv-location
type: boolean - lldp-med-tlv-med-cap
description: Specifies whether LLDP-MED support is available on the switch. - lldp-med-tlv-network-policy
examples:
- true
- false
max-neighbors: max-neighbors:
type: integer type: integer
description: Maximum number of LLDP neighbors a switch can discover and maintain. description: Maximum number of LLDP neighbors a switch can discover and maintain.
@@ -217,92 +206,6 @@ properties:
- 64 - 64
- 128 - 128
- 256 - 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: supported-features:
type: array type: array
description: description:

View File

@@ -242,35 +242,6 @@ properties:
- short - short
- long - long
default: 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: lldp-interface-config:
type: object type: object
description: Configurations of LLDP on a specified interface. description: Configurations of LLDP on a specified interface.
@@ -355,7 +326,7 @@ properties:
description: The type of device to which the location applies. description: The type of device to which the location applies.
lldp-med-location-civic-ca: 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. 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: items:
type: object type: object
properties: properties:

View File

@@ -200,6 +200,35 @@ properties:
description: "Enables DHCP Snooping on a VLAN" description: "Enables DHCP Snooping on a VLAN"
type: boolean type: boolean
default: false 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: dhcp:
$ref: "https://ucentral.io/schema/v1/interface/ipv4/dhcp/" $ref: "https://ucentral.io/schema/v1/interface/ipv4/dhcp/"
dhcp-leases: dhcp-leases:

View File

@@ -360,13 +360,6 @@ properties:
minimum: 0 minimum: 0
maximum: 7 maximum: 7
# IP-ACL (IPv4/IPv6) Parameters # 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: acl-ipv4-source-address:
description: The IPv4 address of the source to filter on description: The IPv4 address of the source to filter on
type: string 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.", "description": "Indicates the maximum number of VLANs that can be supported within a single MC-LAG group.",
"type": "integer" "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": { "dual-active-detection": {
"description": "Describes the dual-active detection mechanism to prevent both switches from becoming active simultaneously.", "description": "Describes the dual-active detection mechanism to prevent both switches from becoming active simultaneously.",
"type": "string", "type": "string",
@@ -241,34 +231,29 @@
"items": { "items": {
"type": "string", "type": "string",
"enum": [ "enum": [
"management-ip-address", "lldp-basic-tlv-mgmt-ip-v4",
"port-description", "lldp-basic-tlv-mgmt-ip-v6",
"system-capabilities", "lldp-basic-tlv-port-descr",
"system-description", "lldp-basic-tlv-sys-capab",
"system-name", "lldp-basic-tlv-sys-descr",
"proto-ident", "lldp-basic-tlv-sys-name",
"proto-vid", "lldp-dot1-tlv-proto-ident",
"pvid", "lldp-dot1-tlv-proto-vid",
"vlan-name", "lldp-dot1-tlv-pvid",
"link-agg", "lldp-dot1-tlv-vlan-name",
"mac-phy", "lldp-dot3-tlv-link-agg",
"max-frame", "lldp-dot3-tlv-mac-phy",
"poe", "lldp-dot3-tlv-max-frame",
"med-location", "lldp-dot3-tlv-poe",
"med-inventory", "lldp-med-location-civic-addr",
"med-capabilities", "lldp-med-tlv-ext-poe",
"med-network-policy" "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": { "max-neighbors": {
"type": "integer", "type": "integer",
"description": "Maximum number of LLDP neighbors a switch can discover and maintain.", "description": "Maximum number of LLDP neighbors a switch can discover and maintain.",
@@ -277,126 +262,6 @@
128, 128,
256 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": { "lldp-interface-config": {
"type": "object", "type": "object",
"description": "Configurations of LLDP on a specified interface.", "description": "Configurations of LLDP on a specified interface.",
@@ -914,7 +877,7 @@
}, },
"lldp-med-location-civic-ca": { "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.", "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": { "items": {
"type": "object", "type": "object",
"properties": { "properties": {
@@ -1377,15 +1340,6 @@
"minimum": 0, "minimum": 0,
"maximum": 7 "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": { "acl-ipv4-source-address": {
"description": "The IPv4 address of the source to filter on", "description": "The IPv4 address of the source to filter on",
"type": "string", "type": "string",
@@ -2454,6 +2408,43 @@
"type": "boolean", "type": "boolean",
"default": false "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": { "dhcp": {
"description": "This section describes the DHCP server configuration", "description": "This section describes the DHCP server configuration",
"type": "object", "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": { "lldp-interface-config": {
"type": "object", "type": "object",
"properties": { "properties": {
@@ -667,7 +635,7 @@
"type": "integer" "type": "integer"
}, },
"lldp-med-location-civic-ca": { "lldp-med-location-civic-ca": {
"type": "arrray", "type": "array",
"items": { "items": {
"type": "object", "type": "object",
"properties": { "properties": {
@@ -1057,14 +1025,6 @@
"minimum": 0, "minimum": 0,
"maximum": 7 "maximum": 7
}, },
"acl-ip-type": {
"type": "string",
"enum": [
"none",
"ipv4",
"ipv6"
]
},
"acl-ipv4-source-address": { "acl-ipv4-source-address": {
"type": "string", "type": "string",
"format": "ipv4" "format": "ipv4"
@@ -2038,6 +1998,38 @@
"type": "boolean", "type": "boolean",
"default": false "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": { "dhcp": {
"$ref": "#/$defs/interface.ipv4.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": { "lldp-interface-config": {
"type": "object", "type": "object",
"description": "Configurations of LLDP on a specified interface.", "description": "Configurations of LLDP on a specified interface.",
@@ -766,7 +729,7 @@
}, },
"lldp-med-location-civic-ca": { "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.", "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": { "items": {
"type": "object", "type": "object",
"properties": { "properties": {
@@ -1228,15 +1191,6 @@
"minimum": 0, "minimum": 0,
"maximum": 7 "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": { "acl-ipv4-source-address": {
"description": "The IPv4 address of the source to filter on", "description": "The IPv4 address of the source to filter on",
"type": "string", "type": "string",
@@ -2362,6 +2316,43 @@
"type": "boolean", "type": "boolean",
"default": false "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": { "dhcp": {
"$ref": "#/$defs/interface.ipv4.dhcp" "$ref": "#/$defs/interface.ipv4.dhcp"
}, },