Skip to content

Commit

Permalink
update setcontrolstate with lacp,isis for mixed configuration scenari…
Browse files Browse the repository at this point in the history
…o with bgp
  • Loading branch information
rudranil-das committed Nov 20, 2023
1 parent 45c5743 commit baf801f
Show file tree
Hide file tree
Showing 2 changed files with 77 additions and 1 deletion.
73 changes: 73 additions & 0 deletions control/protocol.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,15 @@ components:
x-enum:
admin:
x-field-uid: 1
member_ports:
x-field-uid: 2
x-field-uid: 1
admin:
$ref: '#/components/schemas/State.Protocol.Lacp.Admin'
x-field-uid: 2
member_ports:
$ref: '#/components/schemas/State.Protocol.Lacp.MemberPorts'
x-field-uid: 3
State.Protocol.Lacp.Admin:
description: >-
Sets admin state of LACP configured on LAG members
Expand Down Expand Up @@ -102,6 +107,32 @@ components:
x-field-uid: 1
down:
x-field-uid: 2
State.Protocol.Lacp.MemberPorts:
description: >-
Sets state of LACP member ports configured on LAG.
required:
- state
properties:
lag_member_names:
description: >-
The names of LAG members (ports) for which the state has to be applied.
An empty or null list will control all LAG members.
type: array
items:
type: string
x-constraint:
- '/components/schemas/Port/properties/name'
x-field-uid: 1
state:
description: >-
The desired LACP member port state.
type: string
x-field-uid: 2
x-enum:
up:
x-field-uid: 1
down:
x-field-uid: 2
State.Protocol.Bgp:
description: >-
Sets state of configured BGP peers.
Expand Down Expand Up @@ -140,6 +171,48 @@ components:
The desired state of BGP peer.
type: string
x-field-uid: 2
x-enum:
up:
x-field-uid: 1
down:
x-field-uid: 2
State.Protocol.Isis:
description: >-
Sets state of configured ISIS routers.
type: object
required:
- choice
properties:
choice:
type: string
x-enum:
routers:
x-field-uid: 1
x-field-uid: 1
routers:
$ref: '#/components/schemas/State.Protocol.Isis.Routers'
x-field-uid: 2
State.Protocol.Isis.Routers:
description: >-
Sets state of configured ISIS routers.
required:
- state
properties:
router_names:
description: >-
The names of ISIS routers for which the state has to be applied.
An empty or null list will control all ISIS routers.
type: array
items:
type: string
x-constraint:
- "/components/schemas/Device.IsisRouter/properties/name"
x-field-uid: 1
state:
description: >-
The desired state of ISIS router.
type: string
x-field-uid: 2
x-enum:
up:
x-field-uid: 1
Expand Down
5 changes: 4 additions & 1 deletion control/state.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -99,4 +99,7 @@ components:
x-field-uid: 4
bgp:
$ref: './protocol.yaml#/components/schemas/State.Protocol.Bgp'
x-field-uid: 5
x-field-uid: 5
isis:
$ref: './protocol.yaml#/components/schemas/State.Protocol.Isis'
x-field-uid: 6

0 comments on commit baf801f

Please sign in to comment.