-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathietf-quic-server.yang
133 lines (111 loc) · 3.63 KB
/
ietf-quic-server.yang
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
module ietf-quic-server {
yang-version 1.1;
namespace
"urn:ietf:params:xml:ns:yang:ietf-quic-server";
prefix quics;
import ietf-netconf-server {
prefix ncs;
reference
"RFC HHHH: NETCONF Client and Server Models";
}
import ietf-quic-common {
prefix quiccmn;
reference
"RFC AAAA: YANG Groupings for QUIC Clients and QUIC Servers";
}
import ietf-tls-server {
prefix tlss;
reference
"RFC 9645: YANG Groupings for TLS Clients and TLS Servers";
}
import ietf-tls-common {
prefix tlscmn;
reference
"RFC 9645: YANG Groupings for TLS Clients and TLS Servers";
}
import ietf-udp-server {
prefix udps;
reference
"RFC CCCC: YANG Groupings for UDP Clients and UDP Servers";
}
organization
"IETF NETCONF (Network Configuration) Working Group";
contact
"WG List: NETCONF WG list <mailto:[email protected]>
WG Web: https://datatracker.ietf.org/wg/netconf
Author: Per Andersson <mailto:[email protected]>";
description
"This module defines reusable groupings for QUIC servers that
can be used as a basis for specific QUIC server instances.
Copyright (c) 2024 IETF Trust and the persons identified
as authors of the code. All rights reserved.
Redistribution and use in source and binary forms, with
or without modification, is permitted pursuant to, and
subject to the license terms contained in, the Revised
BSD License set forth in Section 4.c of the IETF Trust's
Legal Provisions Relating to IETF Documents
(https://trustee.ietf.org/license-info).
This version of this YANG module is part of RFC AAAA
(https://www.rfc-editor.org/info/rfcAAAA); see the RFC
itself for full legal notices.
The key words 'MUST', 'MUST NOT', 'REQUIRED', 'SHALL',
'SHALL NOT', 'SHOULD', 'SHOULD NOT', 'RECOMMENDED',
'NOT RECOMMENDED', 'MAY', and 'OPTIONAL' in this document
are to be interpreted as described in BCP 14 (RFC 2119)
(RFC 8174) when, and only when, they appear in all
capitals, as shown here.";
revision YYYY-MM-DD {
description
"Initial version";
reference
"RFC AAAA: YANG Groupings for QUIC Clients and QUIC Servers";
}
// Features
feature quic-listen {
description
"The 'quic-listen' feature indicates that the NETCONF server
supports the QUIC transport.";
reference
"I-D.draft-ietf-netconf-over-quic-00: NETCONF over QUIC";
}
// FIXME feature quic-call-home
// Groupings
grouping quic-server {
description
"Grouping to configure a QUIC server.";
reference
"RFC 9000: QUIC: A UDP-Based Multiplexed and Secure Transport";
uses tlss:tls-server-grouping {
if-feature "tlscmn:tls13 and not tlscmn:tls12";
description
"QUIC requires that TLS 1.3 (or later) is used.";
reference
"RFC 9001: Using TLS to Secure QUIC";
}
uses udps:udp-server;
uses quiccmn:transport-parameters;
}
// Augments
/* FIXME seems pyang don't support this augment */
augment "/ncs:netconf-server/ncs:listen" {
if-feature "quic-listen";
description
"Add 'quic-listen' feature to the NETCONF server listen
configuration.";
}
augment "/ncs:netconf-server/ncs:listen/ncs:endpoints" +
"/ncs:endpoint/ncs:transport" {
description
"Add QUIC transport to the NETCONF server listen
configuration.";
case quic {
if-feature "quic-listen";
container quic {
description
"QUIC-level server parameters to listen for NETCONF over
QUIC connections.";
uses quics:quic-server;
}
}
}
}