Skip to content

Commit

Permalink
Update YANG data model
Browse files Browse the repository at this point in the history
  • Loading branch information
marco-tiloca-sics committed Jul 4, 2024
1 parent 3b2ed1e commit 6839f46
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 27 deletions.
40 changes: 21 additions & 19 deletions draft-ietf-schc-8824-update.md
Original file line number Diff line number Diff line change
Expand Up @@ -1948,11 +1948,11 @@ This appendix defines the ietf-schc-coap-ext module, which extends the ietf-schc

~~~~~~~~~~~

<CODE BEGINS> file "ietf-schc@2024-03-04.yang"
<CODE BEGINS> file "ietf-schc-coap@2024-07-08.yang"

module ietf-schc-coap-ext {
module ietf-schc-coap {
yang-version 1.1;
namespace "urn:ietf:params:xml:ns:yang:ietf-schc-coap-ext";
namespace "urn:ietf:params:xml:ns:yang:ietf-schc-coap";
prefix schc-coap-ext;

import ietf-schc {
Expand Down Expand Up @@ -1988,13 +1988,13 @@ module ietf-schc-coap-ext {
This module extends the ietf-schc module defined in RFC 9363 to
include the new CoAP options as defined in RFC YYYY.";

revision 2024-02-22 {
revision 2024-07-08 {
description
"Initial version for RFC YYYY ";
"New CoAP extensions and extended OSCORE fields.";
reference
"RFC YYYY Static Context Header Compression (SCHC) for the
Constrained Application Protocol (CoAP) (see
Sections 5 and 6).";
Sections 5 and 6)";
}

// Field ID
Expand Down Expand Up @@ -2046,6 +2046,17 @@ module ietf-schc-coap-ext {
Robust Transmission";
}

identity fid-coap-option-edhoc {
base "schc:fid-coap-option";
description
"EDHOC option.";
reference
"RFC XXXX Using Ephemeral Diffie-Hellman Over COSE (EDHOC)
with the Constrained Application Protocol (CoAP)
and Object Security for Constrained RESTful
Environments (OSCORE)";
}

identity fid-coap-option-oscore-x {
base "schc:fid-coap-option";
description
Expand Down Expand Up @@ -2090,21 +2101,10 @@ module ietf-schc-coap-ext {
RFC XXXX Key Update for OSCORE (KUDOS)";
}

identity fid-coap-option-edhoc {
base "schc:fid-coap-option";
description
"EDHOC option.";
reference
"RFC XXXX Using Ephemeral Diffie-Hellman Over COSE (EDHOC)
with the Constrained Application Protocol (CoAP)
and Object Security for Constrained RESTful
Environments (OSCORE)";
}

// Function Length

identity fl-oscore-oscore-nonce-length {
base fl-base-type;
base "schc:fl-base-type";
description
"Size in bytes of the OSCORE nonce corresponding to m+1.";
reference
Expand All @@ -2115,7 +2115,7 @@ module ietf-schc-coap-ext {
}

identity fl-oscore-oscore-oldnonce-length {
base fl-base-type;
base "schc:fl-base-type";
description
"Size in bytes of the OSCORE old_nonce corresponding to w+1.
";
Expand All @@ -2137,6 +2137,8 @@ module ietf-schc-coap-ext {

## Version -01 to -02 ## {#sec-01-02}

* Update the YANG data model.

* Fixes and editorial improvements.

## Version -00 to -01 ## {#sec-00-01}
Expand Down
16 changes: 8 additions & 8 deletions ietf-schc-coap@2024-07-08.yang
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ module ietf-schc-coap {
description
"Hop Limit option to avoid infinite forwarding loops.";
reference
"RFC 8768 Constrained Application Protocol (CoAP)
"RFC 8768 Constrained Application Protocol (CoAP)
Hop-Limit Option.";
}

Expand All @@ -61,7 +61,7 @@ module ietf-schc-coap {
description
"Echo option.";
reference
"RFC 9175 Constrained Application Protocol (CoAP):
"RFC 9175 Constrained Application Protocol (CoAP):
Echo, Request-Tag, and Token Processing";
}

Expand All @@ -70,7 +70,7 @@ module ietf-schc-coap {
description
"Request-Tag option.";
reference
"RFC 9175 Constrained Application Protocol (CoAP):
"RFC 9175 Constrained Application Protocol (CoAP):
Echo, Request-Tag, and Token Processing";
}

Expand All @@ -79,8 +79,8 @@ module ietf-schc-coap {
description
"Q-Block1 option.";
reference
"RFC 9177 Constrained Application Protocol (CoAP)
Block-Wise Transfer Options Supporting
"RFC 9177 Constrained Application Protocol (CoAP)
Block-Wise Transfer Options Supporting
Robust Transmission";
}

Expand All @@ -89,8 +89,8 @@ module ietf-schc-coap {
description
"Q-Block2 option.";
reference
"RFC 9177 Constrained Application Protocol (CoAP)
Block-Wise Transfer Options Supporting
"RFC 9177 Constrained Application Protocol (CoAP)
Block-Wise Transfer Options Supporting
Robust Transmission";
}

Expand Down Expand Up @@ -148,7 +148,7 @@ module ietf-schc-coap {
Section 6.4)
RFC XXXX Key Update for OSCORE (KUDOS)";
}

// Function Length

identity fl-oscore-oscore-nonce-length {
Expand Down

0 comments on commit 6839f46

Please sign in to comment.