Skip to content

Commit 2ebb7cf

Browse files
committed
Latest updates
updated with count, increment, http methods . control states
1 parent 216371b commit 2ebb7cf

File tree

4 files changed

+293
-17
lines changed

4 files changed

+293
-17
lines changed

device/ethernet.yaml

Lines changed: 36 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ components:
1616
description: >-
1717
Maximum Transmission Unit.
1818
type: integer
19-
format: uint32
19+
minimum: 0
2020
maximum: 65535
2121
default: 1500
2222
x-field-uid: 2
@@ -30,11 +30,39 @@ components:
3030
name:
3131
x-include: ../common/common.yaml#/components/schemas/Named.Object/properties/name
3232
x-field-uid: 4
33+
count:
34+
description: >-
35+
The total number of addresses in the range.
36+
type: integer
37+
default: 1
38+
minimum: 1
39+
x-field-uid: 5
40+
step:
41+
description: >-
42+
Increments the MAC address. The value is incremented according to the MAC
43+
count and Step.
44+
type: string
45+
format: mac
46+
default: "00:00:00:00:00:01"
47+
x-field-uid: 6
3348
Device.Ethernet:
3449
description: >-
3550
An Ethernet interface with IPv4 and IPv6 addresses.
3651
type: object
3752
properties:
53+
port_name:
54+
description: |-
55+
The unique name of a Port or a LAG that will emulate this interface.
56+
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.
57+
x-status:
58+
status: deprecated
59+
information: |-
60+
This property is deprecated in favor of property connection.port_name
61+
type: string
62+
x-constraint:
63+
- '/components/schemas/Port/properties/name'
64+
- '/components/schemas/Lag/properties/name'
65+
x-field-uid: 1
3866
connection:
3967
description: |-
4068
Device connection to physical, LAG or another device.
@@ -67,6 +95,12 @@ components:
6795
name:
6896
x-include: '#/components/schemas/Device.EthernetBase/properties/name'
6997
x-field-uid: 8
98+
count:
99+
x-include: '#/components/schemas/Device.EthernetBase/properties/count'
100+
x-field-uid: 9
101+
step:
102+
x-include: '#/components/schemas/Device.EthernetBase/properties/step'
103+
x-field-uid: 10
70104
required: [mac, name]
71105
Ethernet.Connection:
72106
description: Ethernet interface connection to a port, LAG or VXLAN tunnel.
@@ -103,4 +137,4 @@ components:
103137
x-constraint:
104138
- '#/components/schemas/Vxlan.V4Tunnel/properties/name'
105139
- '#/components/schemas/Vxlan.V6Tunnel/properties/name'
106-
x-field-uid: 4
140+
x-field-uid: 4

device/http/method.yaml

Lines changed: 235 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,45 @@ components:
33
Http.Method:
44
type: object
55
properties:
6-
choice:
7-
type: string
8-
default: get
9-
x-field-uid: 1
10-
x-enum:
11-
get:
12-
x-field-uid: 1
13-
post:
14-
x-field-uid: 2
6+
# choice:
7+
# type: string
8+
# x-field-uid: 1
9+
# x-enum:
10+
# get:
11+
# x-field-uid: 1
12+
# post:
13+
# x-field-uid: 2
1514
get:
16-
x-field-uid: 2
17-
$ref: '#/components/schemas/Method.Get'
15+
x-field-uid: 1
16+
type: array
17+
items:
18+
$ref: '#/components/schemas/Method.Get'
1819
post:
20+
x-field-uid: 2
21+
type: array
22+
items:
23+
$ref: '#/components/schemas/Method.Post'
24+
put:
1925
x-field-uid: 3
20-
$ref: '#/components/schemas/Method.Post'
26+
type: array
27+
items:
28+
$ref: '#/components/schemas/Method.Put'
29+
delete:
30+
x-field-uid: 4
31+
type: array
32+
items:
33+
$ref: '#/components/schemas/Method.Delete'
34+
header:
35+
x-field-uid: 5
36+
type: array
37+
items:
38+
$ref: '#/components/schemas/Method.Header'
39+
# think:
40+
# x-field-uid: 6
41+
# type: array
42+
# items:
43+
# $ref: '#/components/schemas/Method.Think'
44+
2145

2246
Method.Get:
2347
#x-include: ../common/common.yaml#/components/schemas/Named.Object/properties/name
@@ -36,6 +60,31 @@ components:
3660
The page name to perform get opertaion.
3761
type: string
3862
x-field-uid: 2
63+
abort:
64+
description: >-
65+
The abort allows to perform an operation at one of two places-before request or after request
66+
type: string
67+
x-field-uid: 3
68+
profile:
69+
description: >-
70+
When a HTTP Client Profile is created there is an associated ID, created for each profile.
71+
Default =-1
72+
type: number
73+
x-field-uid: 4
74+
default: -1
75+
name_value_args:
76+
description: >-
77+
It specify parameter names and values,they can occur in any order.
78+
type: string
79+
x-field-uid: 5
80+
default : None
81+
enable_direct_server_return:
82+
description: >-
83+
It enables the Direct Server Run,the responses are sent directly from the servers to the clients
84+
type: boolean
85+
x-field-uid: 6
86+
default: false
87+
3988
Method.Post:
4089
#x-include: ../common/common.yaml#/components/schemas/Named.Object/properties/name
4190
description: >-
@@ -52,4 +101,177 @@ components:
52101
description: >-
53102
The page name to perform post opertaion.
54103
type: string
55-
x-field-uid: 2
104+
x-field-uid: 2
105+
abort:
106+
description: >-
107+
The abort allows to perform an operation at one of two places-before request or after request
108+
type: string
109+
x-field-uid: 3
110+
default: None
111+
profile:
112+
description: >-
113+
When a HTTP Client Profile is created there is an associated ID, created for each profile.
114+
Default =-1
115+
type: number
116+
x-field-uid: 4
117+
default : -1
118+
name_value_args:
119+
description: >-
120+
It specify parameter names and values,they can occur in any order.
121+
type: string
122+
x-field-uid: 5
123+
default : ""
124+
arguments:
125+
description: >-
126+
The name and path of the file to be posted on the server.
127+
type: string
128+
x-field-uid: 6
129+
default : ""
130+
send_md5_check_sum_header:
131+
description: >-
132+
An MD5 check sum header is included with the requests sent to the server.Default = 0
133+
type: number
134+
x-field-uid: 7
135+
default : 0
136+
chunk_size:
137+
description: >-
138+
It enables chunked-transfer encoding if set to a numeric value. Default = "None".
139+
type: string
140+
x-field-uid: 8
141+
default : None
142+
143+
Method.Put:
144+
description: >-
145+
A PUT operation of HTTP
146+
type: object
147+
required: [destination, page]
148+
properties:
149+
destination:
150+
description: >-
151+
The Server name/IP address
152+
type: string
153+
x-field-uid: 1
154+
page:
155+
description: >-
156+
The page name to perform put opertaion.
157+
type: string
158+
x-field-uid: 2
159+
abort:
160+
description: >-
161+
The abort allows to perform an operation at one of two places-before request or after request
162+
type: string
163+
x-field-uid: 3
164+
default: None
165+
profile:
166+
description: >-
167+
When a HTTP Client Profile is created there is an associated ID, created for each profile.
168+
Default =-1
169+
type: number
170+
x-field-uid: 4
171+
default : -1
172+
name_value_args:
173+
description: >-
174+
It specify parameter names and values,they can occur in any order.
175+
type: string
176+
x-field-uid: 5
177+
default : ""
178+
arguments:
179+
description: >-
180+
The name and path of the file to be posted on the server.
181+
type: string
182+
x-field-uid: 6
183+
default : ""
184+
send_md5_check_sum_header:
185+
description: >-
186+
An MD5 check sum header is included with the requests sent to the server.Default = 0
187+
type: number
188+
x-field-uid: 7
189+
default : 0
190+
chunk_size:
191+
description: >-
192+
It enables chunked-transfer encoding if set to a numeric value. Default = "None".
193+
type: string
194+
x-field-uid: 8
195+
default : None
196+
197+
Method.Delete:
198+
description: >-
199+
A Delete operation of HTTP
200+
type: object
201+
required: [destination, page]
202+
properties:
203+
destination:
204+
description: >-
205+
The Server name/IP address
206+
type: string
207+
x-field-uid: 1
208+
page:
209+
description: >-
210+
The page name to perform delete opertaion.
211+
type: string
212+
x-field-uid: 2
213+
abort:
214+
description: >-
215+
The abort allows to perform an operation at one of two places-before request or after request
216+
type: string
217+
x-field-uid: 3
218+
default: None
219+
profile:
220+
description: >-
221+
When a HTTP Client Profile is created there is an associated ID, created for each profile.
222+
Default =-1
223+
type: number
224+
x-field-uid: 4
225+
default : -1
226+
227+
Method.Header:
228+
description: >-
229+
A header operation of HTTP
230+
type: object
231+
required: [destination, page]
232+
properties:
233+
destination:
234+
description: >-
235+
The Server name/IP address
236+
type: string
237+
x-field-uid: 1
238+
page:
239+
description: >-
240+
The page name to perform header opertaion.
241+
type: string
242+
x-field-uid: 2
243+
abort:
244+
description: >-
245+
The abort allows to perform an operation at one of two places-before request or after request
246+
type: string
247+
x-field-uid: 3
248+
default: None
249+
profile:
250+
description: >-
251+
When a HTTP Client Profile is created there is an associated ID, created for each profile.
252+
Default =-1
253+
type: number
254+
x-field-uid: 4
255+
default : -1
256+
name_value_args:
257+
description: >-
258+
It specify parameter names and values,they can occur in any order.
259+
type: string
260+
x-field-uid: 5
261+
default : ""
262+
263+
# Method.Think:
264+
# description: >-
265+
# A Think operation of HTTP
266+
# type: object
267+
# properties:
268+
# minimum_interval:
269+
# description: >-
270+
# The duration in milliseconds.
271+
# type: int
272+
# x-field-uid: 1
273+
# maximum_interval:
274+
# description: >-
275+
# The duration in milliseconds.
276+
# type: int
277+
# x-field-uid: 2

device/ipv4.yaml

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,28 @@ components:
1616
description: >-
1717
The prefix of the IPv4 address.
1818
type: integer
19-
format: uint32
2019
minimum: 1
2120
maximum: 32
2221
default: 24
2322
x-field-uid: 2
2423
name:
2524
x-include: ../common/common.yaml#/components/schemas/Named.Object/properties/name
2625
x-field-uid: 3
26+
count:
27+
description: >-
28+
The total number of addresses in the range.
29+
type: integer
30+
default: 1
31+
minimum: 1
32+
x-field-uid: 4
33+
step:
34+
description: >-
35+
Increments the MAC address. The value is incremented according to the MAC
36+
count and Step.
37+
type: string
38+
format: ipv4
39+
default: "0.0.0.1"
40+
x-field-uid: 5
2741
Device.Ipv4:
2842
description: >-
2943
An IPv4 interface with gateway
@@ -48,6 +62,12 @@ components:
4862
name:
4963
x-include: '#/components/schemas/Device.Ipv4Base/properties/name'
5064
x-field-uid: 5
65+
count:
66+
x-include: '#/components/schemas/Device.Ipv4Base/properties/count'
67+
x-field-uid: 6
68+
step:
69+
x-include: '#/components/schemas/Device.Ipv4Base/properties/step'
70+
x-field-uid: 7
5171
Device.Ipv4Loopback:
5272
description: >-
5373
An IPv4 Loopback interface.

trafficprofile/trafficprofile.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
components:
22
schemas:
3-
TrafficProfile:
3+
Trafficprofile:
44
description: >-
55
A container for L47 traffic configurations.
66
type: object

0 commit comments

Comments
 (0)