Skip to content

Commit

Permalink
Latest updates
Browse files Browse the repository at this point in the history
updated with count, increment, http methods . control states
  • Loading branch information
waseembaig committed Jun 26, 2024
1 parent 216371b commit 2ebb7cf
Show file tree
Hide file tree
Showing 4 changed files with 293 additions and 17 deletions.
38 changes: 36 additions & 2 deletions device/ethernet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ components:
description: >-
Maximum Transmission Unit.
type: integer
format: uint32
minimum: 0
maximum: 65535
default: 1500
x-field-uid: 2
Expand All @@ -30,11 +30,39 @@ components:
name:
x-include: ../common/common.yaml#/components/schemas/Named.Object/properties/name
x-field-uid: 4
count:
description: >-
The total number of addresses in the range.
type: integer
default: 1
minimum: 1
x-field-uid: 5
step:
description: >-
Increments the MAC address. The value is incremented according to the MAC
count and Step.
type: string
format: mac
default: "00:00:00:00:00:01"
x-field-uid: 6
Device.Ethernet:
description: >-
An Ethernet interface with IPv4 and IPv6 addresses.
type: object
properties:
port_name:
description: |-
The unique name of a Port or a LAG that will emulate this interface.
port_name is deprecated and will be removed in future release.port_name and connection can't be used together, use either port_name or connection.
x-status:
status: deprecated
information: |-
This property is deprecated in favor of property connection.port_name
type: string
x-constraint:
- '/components/schemas/Port/properties/name'
- '/components/schemas/Lag/properties/name'
x-field-uid: 1
connection:
description: |-
Device connection to physical, LAG or another device.
Expand Down Expand Up @@ -67,6 +95,12 @@ components:
name:
x-include: '#/components/schemas/Device.EthernetBase/properties/name'
x-field-uid: 8
count:
x-include: '#/components/schemas/Device.EthernetBase/properties/count'
x-field-uid: 9
step:
x-include: '#/components/schemas/Device.EthernetBase/properties/step'
x-field-uid: 10
required: [mac, name]
Ethernet.Connection:
description: Ethernet interface connection to a port, LAG or VXLAN tunnel.
Expand Down Expand Up @@ -103,4 +137,4 @@ components:
x-constraint:
- '#/components/schemas/Vxlan.V4Tunnel/properties/name'
- '#/components/schemas/Vxlan.V6Tunnel/properties/name'
x-field-uid: 4
x-field-uid: 4
248 changes: 235 additions & 13 deletions device/http/method.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,45 @@ components:
Http.Method:
type: object
properties:
choice:
type: string
default: get
x-field-uid: 1
x-enum:
get:
x-field-uid: 1
post:
x-field-uid: 2
# choice:
# type: string
# x-field-uid: 1
# x-enum:
# get:
# x-field-uid: 1
# post:
# x-field-uid: 2
get:
x-field-uid: 2
$ref: '#/components/schemas/Method.Get'
x-field-uid: 1
type: array
items:
$ref: '#/components/schemas/Method.Get'
post:
x-field-uid: 2
type: array
items:
$ref: '#/components/schemas/Method.Post'
put:
x-field-uid: 3
$ref: '#/components/schemas/Method.Post'
type: array
items:
$ref: '#/components/schemas/Method.Put'
delete:
x-field-uid: 4
type: array
items:
$ref: '#/components/schemas/Method.Delete'
header:
x-field-uid: 5
type: array
items:
$ref: '#/components/schemas/Method.Header'
# think:
# x-field-uid: 6
# type: array
# items:
# $ref: '#/components/schemas/Method.Think'


Method.Get:
#x-include: ../common/common.yaml#/components/schemas/Named.Object/properties/name
Expand All @@ -36,6 +60,31 @@ components:
The page name to perform get opertaion.
type: string
x-field-uid: 2
abort:
description: >-
The abort allows to perform an operation at one of two places-before request or after request
type: string
x-field-uid: 3
profile:
description: >-
When a HTTP Client Profile is created there is an associated ID, created for each profile.
Default =-1
type: number
x-field-uid: 4
default: -1
name_value_args:
description: >-
It specify parameter names and values,they can occur in any order.
type: string
x-field-uid: 5
default : None
enable_direct_server_return:
description: >-
It enables the Direct Server Run,the responses are sent directly from the servers to the clients
type: boolean
x-field-uid: 6
default: false

Method.Post:
#x-include: ../common/common.yaml#/components/schemas/Named.Object/properties/name
description: >-
Expand All @@ -52,4 +101,177 @@ components:
description: >-
The page name to perform post opertaion.
type: string
x-field-uid: 2
x-field-uid: 2
abort:
description: >-
The abort allows to perform an operation at one of two places-before request or after request
type: string
x-field-uid: 3
default: None
profile:
description: >-
When a HTTP Client Profile is created there is an associated ID, created for each profile.
Default =-1
type: number
x-field-uid: 4
default : -1
name_value_args:
description: >-
It specify parameter names and values,they can occur in any order.
type: string
x-field-uid: 5
default : ""
arguments:
description: >-
The name and path of the file to be posted on the server.
type: string
x-field-uid: 6
default : ""
send_md5_check_sum_header:
description: >-
An MD5 check sum header is included with the requests sent to the server.Default = 0
type: number
x-field-uid: 7
default : 0
chunk_size:
description: >-
It enables chunked-transfer encoding if set to a numeric value. Default = "None".
type: string
x-field-uid: 8
default : None

Method.Put:
description: >-
A PUT operation of HTTP
type: object
required: [destination, page]
properties:
destination:
description: >-
The Server name/IP address
type: string
x-field-uid: 1
page:
description: >-
The page name to perform put opertaion.
type: string
x-field-uid: 2
abort:
description: >-
The abort allows to perform an operation at one of two places-before request or after request
type: string
x-field-uid: 3
default: None
profile:
description: >-
When a HTTP Client Profile is created there is an associated ID, created for each profile.
Default =-1
type: number
x-field-uid: 4
default : -1
name_value_args:
description: >-
It specify parameter names and values,they can occur in any order.
type: string
x-field-uid: 5
default : ""
arguments:
description: >-
The name and path of the file to be posted on the server.
type: string
x-field-uid: 6
default : ""
send_md5_check_sum_header:
description: >-
An MD5 check sum header is included with the requests sent to the server.Default = 0
type: number
x-field-uid: 7
default : 0
chunk_size:
description: >-
It enables chunked-transfer encoding if set to a numeric value. Default = "None".
type: string
x-field-uid: 8
default : None

Method.Delete:
description: >-
A Delete operation of HTTP
type: object
required: [destination, page]
properties:
destination:
description: >-
The Server name/IP address
type: string
x-field-uid: 1
page:
description: >-
The page name to perform delete opertaion.
type: string
x-field-uid: 2
abort:
description: >-
The abort allows to perform an operation at one of two places-before request or after request
type: string
x-field-uid: 3
default: None
profile:
description: >-
When a HTTP Client Profile is created there is an associated ID, created for each profile.
Default =-1
type: number
x-field-uid: 4
default : -1

Method.Header:
description: >-
A header operation of HTTP
type: object
required: [destination, page]
properties:
destination:
description: >-
The Server name/IP address
type: string
x-field-uid: 1
page:
description: >-
The page name to perform header opertaion.
type: string
x-field-uid: 2
abort:
description: >-
The abort allows to perform an operation at one of two places-before request or after request
type: string
x-field-uid: 3
default: None
profile:
description: >-
When a HTTP Client Profile is created there is an associated ID, created for each profile.
Default =-1
type: number
x-field-uid: 4
default : -1
name_value_args:
description: >-
It specify parameter names and values,they can occur in any order.
type: string
x-field-uid: 5
default : ""

# Method.Think:
# description: >-
# A Think operation of HTTP
# type: object
# properties:
# minimum_interval:
# description: >-
# The duration in milliseconds.
# type: int
# x-field-uid: 1
# maximum_interval:
# description: >-
# The duration in milliseconds.
# type: int
# x-field-uid: 2
22 changes: 21 additions & 1 deletion device/ipv4.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,28 @@ components:
description: >-
The prefix of the IPv4 address.
type: integer
format: uint32
minimum: 1
maximum: 32
default: 24
x-field-uid: 2
name:
x-include: ../common/common.yaml#/components/schemas/Named.Object/properties/name
x-field-uid: 3
count:
description: >-
The total number of addresses in the range.
type: integer
default: 1
minimum: 1
x-field-uid: 4
step:
description: >-
Increments the MAC address. The value is incremented according to the MAC
count and Step.
type: string
format: ipv4
default: "0.0.0.1"
x-field-uid: 5
Device.Ipv4:
description: >-
An IPv4 interface with gateway
Expand All @@ -48,6 +62,12 @@ components:
name:
x-include: '#/components/schemas/Device.Ipv4Base/properties/name'
x-field-uid: 5
count:
x-include: '#/components/schemas/Device.Ipv4Base/properties/count'
x-field-uid: 6
step:
x-include: '#/components/schemas/Device.Ipv4Base/properties/step'
x-field-uid: 7
Device.Ipv4Loopback:
description: >-
An IPv4 Loopback interface.
Expand Down
2 changes: 1 addition & 1 deletion trafficprofile/trafficprofile.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
components:
schemas:
TrafficProfile:
Trafficprofile:
description: >-
A container for L47 traffic configurations.
type: object
Expand Down

0 comments on commit 2ebb7cf

Please sign in to comment.