Skip to content

Commit

Permalink
Support of OSPFv2 OTG Model (#384)
Browse files Browse the repository at this point in the history
* Support of OSPFv2 OTG Model - first draft

* Update auto generated content

* moved osfv2 to one level up and added traffic endpoints for osfv2 route ranges

* Update auto generated content

* Update auto generated content

* Incorporation initial review comments

* Update auto generated content

* Update auto generated content

* review comments

* Update auto generated content

* Update auto generated content

* fixed some typos

* Update auto generated content

* Update auto generated content

* Update auto generated content

* few more review comments

* Update auto generated content

* Review comments incorporation

* Update auto generated content

* md5lists to md5s

* Update auto generated content

* incorporated some more review comments

* Update auto generated content

* changed Ospfv2 --> Ospfv2Router in top level

* Update auto generated content

* Update auto generated content

* minor fixes

* trigger build

* revert dummy doc change

* update actions/upload-artifact to v4

* Update auto generated content

* updates: stats, ipv4_name=required

* Update auto generated content

* Close latest review comments

* Update auto generated content

* Close review comments

* Update auto generated content

* minor fix for less redirection

* Update auto generated content

* added status=under-review for Device.Ospfv2Router

* Update auto generated content

* Fix correct x-status/status

* Update auto generated content

---------

Co-authored-by: Github Actions Bot <[email protected]>
Co-authored-by: Rudranil <[email protected]>
  • Loading branch information
3 people authored Oct 22, 2024
1 parent f147d77 commit 33e7463
Show file tree
Hide file tree
Showing 17 changed files with 4,041 additions and 840 deletions.
22 changes: 12 additions & 10 deletions artifacts/openapi.html

Large diffs are not rendered by default.

1,737 changes: 1,612 additions & 125 deletions artifacts/openapi.yaml

Large diffs are not rendered by default.

956 changes: 956 additions & 0 deletions artifacts/otg.proto

Large diffs are not rendered by default.

45 changes: 45 additions & 0 deletions control/protocol.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ components:
- '/components/schemas/Bgp.V6RouteRange/properties/name'
- '/components/schemas/Isis.V4RouteRange/properties/name'
- '/components/schemas/Isis.V6RouteRange/properties/name'
- '/components/schemas/Ospfv2.V4RouteRange/properties/name'
x-field-uid: 1
state:
description: >-
Expand Down Expand Up @@ -217,6 +218,50 @@ components:
If the desired state is 'down', would bring down ISIS session(s) with respective peer(s).
type: string
x-field-uid: 2
x-enum:
up:
x-field-uid: 1
down:
x-field-uid: 2
State.Protocol.Ospfv2:
description: >-
Sets state of configured OSPFv2 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.Ospfv2.Routers'
x-field-uid: 2
State.Protocol.Ospfv2.Routers:
description: >-
Sets state of configured OSPFv2 routers.
required:
- state
properties:
router_names:
description: >-
The names of OSPFv2 routers for which the state has to be applied.
An empty or null list will control all OSPFv2 routers.
type: array
items:
type: string
x-constraint:
- "/components/schemas/Device.Ospfv2/properties/name"
x-field-uid: 1
state:
description: >-
The desired state of OSPFv2 router.
If the desired state is 'up', would attempt to bring up the OSPFv2 session(s) with respective peer(s) and advertise route(s), if configured.
If the desired state is 'down', would bring down OSPFv2 session(s) with respective peer(s).
type: string
x-field-uid: 2
x-enum:
up:
x-field-uid: 1
Expand Down
7 changes: 6 additions & 1 deletion control/state.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,8 @@ components:
x-field-uid: 4
isis:
x-field-uid: 5
ospfv2:
x-field-uid: 6
x-field-uid: 1
all:
$ref: './protocol.yaml#/components/schemas/State.Protocol.All'
Expand All @@ -104,4 +106,7 @@ components:
x-field-uid: 5
isis:
$ref: './protocol.yaml#/components/schemas/State.Protocol.Isis'
x-field-uid: 6
x-field-uid: 6
ospfv2:
$ref: './protocol.yaml#/components/schemas/State.Protocol.Ospfv2'
x-field-uid: 7
5 changes: 5 additions & 0 deletions device/device.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,11 @@ components:
The properties of DHCP Server and its children, such as DHCPv4, DHCPv6 servers.
$ref: './dhcp/servers/dhcpserver.yaml#/components/schemas/Device.DhcpServer'
x-field-uid: 9
ospfv2:
description: >-
Configuration for OSPFv2 router.
$ref: './ospfv2/router.yaml#/components/schemas/Device.Ospfv2Router'
x-field-uid: 10
required: [name]
Protocol.Options:
description: >-
Expand Down
Loading

0 comments on commit 33e7463

Please sign in to comment.