Skip to content

Commit 6ac655e

Browse files
authored
Fix schemas (#537)
1 parent e87a83c commit 6ac655e

25 files changed

Lines changed: 122 additions & 117 deletions

_schemas/configs/network/connection.schema

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ receiver_id:
77

88
mplb:
99
_type: one-of
10-
_variants:
11-
- single-cc
12-
_doc: Multi path load ballancer that should be used for transreffing data parts by this connection
10+
_options:
11+
- single-cc: singe-cc.schema
12+
_doc: Multi path load ballancer that should be used for transreffing data parts by this connection
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
metrics_filters:
2+
cwnd:
3+
_type: bool
4+
_default: true
5+
_doc: Is it need to collect congestion window metric
Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
11
_type: one-of
22

3-
_variants:
4-
- basic
5-
- swift
6-
- tahoe
3+
_options:
4+
- basic: basic.schema
5+
- swift: swift.schema
6+
- tahoe: tahoe.schema
77

8-
cwnd:
9-
_type: bool
10-
_default: true
11-
_doc: Is it need to collect congestion window metric
8+
_extend: cc-metrics.schema

_schemas/configs/network/mplb/cc/swift.schema

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
base_target:
2-
_type: units/Time
1+
base_target:
2+
_type: /units/Time.schema
33
_doc: Minimal (fabric link with 1 hop) RTT
44

55
start_cwnd:
@@ -31,12 +31,12 @@ fs_min_cwnd:
3131
_type: double
3232
_default: 0.1
3333
_doc: cwnd where flow-scaling hits fs_range
34-
34+
3535
fs_max_cwnd:
3636
_type: double
3737
_default: 100.0
3838
_doc: cwnd where flow-scaling goes to zero
3939

4040
metrics_filters:
41-
_default:
42-
cwnd: false
41+
_default:
42+
cwnd: false
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
_type: one-of
2-
_variants:
3-
- tcp-flow
2+
_options:
3+
- tcp-flow: tcp_flow.schema
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
flows:
2-
_type: flow{}
3-
_doc: List of avalable flows
2+
_type: map
3+
_key_type: flow.schema
4+
_doc: Map of avalable flows

_schemas/configs/network/mplb/path-chooser/tcp-flow.schema

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
rto:
22
start:
3-
_type: units/Time
3+
_type: /units/Time.schema
44
_default: 2000ns
55
_doc: Initial retransmit timout
66
max:
7-
_type: units/Time
7+
_type: /units/Time.schema
88
_default: 1s
99
_doc: Maximal retransmit timeout
1010

1111
ecn_capable:
1212
_type: bool
1313
_default: false
14-
_doc: Does flow supports explicit congestion notification
14+
_doc: Does flow supports explicit congestion notification
1515

1616
metrics_filters:
1717
rtt:
@@ -26,4 +26,3 @@ metrics_filters:
2626
_type: bool
2727
_default: true
2828
_doc: Is it need to collect delivery rate statistice
29-
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
packet-size:
2-
_type: units/Size
2+
_type: /units/Size.schema
33
_doc: Size of packets that will be used
44

55
cc:
6-
_type: cc/metricable_cc
6+
_type: cc/metricable-cc.schema
77
_doc: Congestion control
88

99
path-chooser:
1010
_type: one-of
11-
_variants:
12-
- path-chooser/round-robin
11+
_options:
12+
- round-robin: path-chooser/round-robin.schema
1313

1414
_doc: Path chooser that should be used
Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
topology_config_path:
22
_type: string
3-
_doc: Path ro topology config. Might be absolute or relative
3+
_doc: Path ro topology config. Might be absolute or relative
44

55
connections:
6-
_type: connection{}
7-
_doc: List of abailable connections - user interfaces of data transreffing
6+
_type: map
7+
_key_type: connection.schema
8+
_doc: Map of abailable connections - user interfaces of data transreffing
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
action:
22
_type: one-of
3-
_variants:
4-
- send_data
5-
- stop_time
6-
7-
_doc:
3+
_options:
4+
- send_data: send_data.schema
5+
- stop_time: stop_time.schema
6+
7+
_doc:

0 commit comments

Comments
 (0)