Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

On the fly bgp peer add/remove: through UpdateConfig devices/bgp #338

Draft
wants to merge 5 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions artifacts/openapi.html

Large diffs are not rendered by default.

63 changes: 63 additions & 0 deletions artifacts/openapi.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

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

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

33 changes: 33 additions & 0 deletions config/device.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
openapi: 3.0.3
info:
title: Control protocol models for devices update
description: >-
All control protocol schemas for devices update
version: ^0.0.0
components:
schemas:
Update.Device.Bgp:
description: >-
Updates properties of configured BGP
type: object
required:
- property_names
- bgp
properties:
property_names:
description: >-
BGP properties to be updated.
type: array
items:
type: string
x-enum:
peer_enabled:
x-field-uid: 1
x-field-uid: 1
bgp:
description: >-
The list of configured BGP peers for which given property will be updated.
type: array
items:
$ref: '#/components/schemas/Device.BgpRouter'
x-field-uid: 2
23 changes: 23 additions & 0 deletions config/update.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,23 @@ components:
description: >-
Request for updating specific attributes of resources in traffic generator
type: object
required:
- choice
properties:
choice:
type: string
x-enum:
flows:
x-field-uid: 1
devices:
x-field-uid: 2
x-field-uid: 1
flows:
$ref: '#/components/schemas/Flows.Update'
x-field-uid: 2
devices:
$ref: '#/components/schemas/Devices.Update'
x-field-uid: 3
Flows.Update:
description: >-
A container of flows with associated properties to be updated without
Expand Down Expand Up @@ -41,4 +48,20 @@ components:
type: array
items:
$ref: '#/components/schemas/Flow'
x-field-uid: 2
Devices.Update:
description: >-
Devices for which update properties would be initiated.
type: object
required:
- choice
properties:
choice:
type: string
x-enum:
bgp:
x-field-uid: 1
x-field-uid: 1
bgp:
$ref: './device.yaml#/components/schemas/Update.Device.Bgp'
x-field-uid: 2
6 changes: 6 additions & 0 deletions device/bgp/bgpv4.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,12 @@ components:
graceful_restart:
x-include: './bgp.yaml#/components/schemas/Device.Bgp/properties/graceful_restart'
x-field-uid: 14
peer_enabled:
description: |-
Specifies whether the peer is enabled or not.
type: boolean
default: true
x-field-uid: 15
Bgp.V4Interface:
description: >-
Configuration for emulated BGPv4 peers and routes on a single IPv4 interface.
Expand Down
6 changes: 6 additions & 0 deletions device/bgp/bgpv6.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,12 @@ components:
graceful_restart:
x-include: './bgp.yaml#/components/schemas/Device.Bgp/properties/graceful_restart'
x-field-uid: 15
peer_enabled:
description: |-
Specifies whether the peer is enabled or not.
type: boolean
default: true
x-field-uid: 16
Bgp.V6Interface:
description: >-
Configuration for emulated BGPv6 peers and routes on a single IPv6 interface.
Expand Down
Loading