From b4581d183065af6b82026003959b96fbe6850dd1 Mon Sep 17 00:00:00 2001 From: Marek Gradzki Date: Fri, 16 Jun 2017 14:36:52 +0200 Subject: Rename yang files to match model revision Also order of revisions was sorted starting from most current. Change-Id: I21fd35cfdb1cc5601b3fb40c9f3755bd3b995b14 Signed-off-by: Marek Gradzki --- ioam/api/src/main/yang/ioam-sb-export.yang | 46 ----- .../src/main/yang/ioam-sb-export@2017-02-06.yang | 46 +++++ ioam/api/src/main/yang/ioam-sb-trace.yang | 190 --------------------- .../src/main/yang/ioam-sb-trace@2017-03-27.yang | 190 +++++++++++++++++++++ ioam/api/src/main/yang/sfc-ioam-sb-pot.yang | 169 ------------------ .../src/main/yang/sfc-ioam-sb-pot@2017-01-12.yang | 169 ++++++++++++++++++ 6 files changed, 405 insertions(+), 405 deletions(-) delete mode 100644 ioam/api/src/main/yang/ioam-sb-export.yang create mode 100644 ioam/api/src/main/yang/ioam-sb-export@2017-02-06.yang delete mode 100644 ioam/api/src/main/yang/ioam-sb-trace.yang create mode 100644 ioam/api/src/main/yang/ioam-sb-trace@2017-03-27.yang delete mode 100644 ioam/api/src/main/yang/sfc-ioam-sb-pot.yang create mode 100644 ioam/api/src/main/yang/sfc-ioam-sb-pot@2017-01-12.yang (limited to 'ioam') diff --git a/ioam/api/src/main/yang/ioam-sb-export.yang b/ioam/api/src/main/yang/ioam-sb-export.yang deleted file mode 100644 index f04028a38..000000000 --- a/ioam/api/src/main/yang/ioam-sb-export.yang +++ /dev/null @@ -1,46 +0,0 @@ -module ioam-sb-export { - - yang-version 1; - - namespace "urn:cisco:params:xml:ns:yang:ioam-sb-export"; - - prefix ioam-sb-export; - - organization "Cisco Systems, Inc."; - contact - "Shwetha Bhandari - Sagar Srivastav "; - - description - "This module contains a collection of YANG definitions for - managing in-band OAM based export - parameters."; - - revision 2017-02-06 { - description - "set source and collector addresses as mandatory"; - reference - ""; - } - - import ietf-inet-types { - prefix inet; - } - - container ioam-export { - - leaf disable { - type boolean; - } - - leaf collector-address { - mandatory true; - type inet:ipv4-address; - } - - leaf source-address { - mandatory true; - type inet:ipv4-address; - } - } -} diff --git a/ioam/api/src/main/yang/ioam-sb-export@2017-02-06.yang b/ioam/api/src/main/yang/ioam-sb-export@2017-02-06.yang new file mode 100644 index 000000000..f04028a38 --- /dev/null +++ b/ioam/api/src/main/yang/ioam-sb-export@2017-02-06.yang @@ -0,0 +1,46 @@ +module ioam-sb-export { + + yang-version 1; + + namespace "urn:cisco:params:xml:ns:yang:ioam-sb-export"; + + prefix ioam-sb-export; + + organization "Cisco Systems, Inc."; + contact + "Shwetha Bhandari + Sagar Srivastav "; + + description + "This module contains a collection of YANG definitions for + managing in-band OAM based export + parameters."; + + revision 2017-02-06 { + description + "set source and collector addresses as mandatory"; + reference + ""; + } + + import ietf-inet-types { + prefix inet; + } + + container ioam-export { + + leaf disable { + type boolean; + } + + leaf collector-address { + mandatory true; + type inet:ipv4-address; + } + + leaf source-address { + mandatory true; + type inet:ipv4-address; + } + } +} diff --git a/ioam/api/src/main/yang/ioam-sb-trace.yang b/ioam/api/src/main/yang/ioam-sb-trace.yang deleted file mode 100644 index d950e9460..000000000 --- a/ioam/api/src/main/yang/ioam-sb-trace.yang +++ /dev/null @@ -1,190 +0,0 @@ -module ioam-sb-trace { - yang-version 1; - namespace "urn:cisco:params:xml:ns:yang:ioam-sb-trace"; - prefix ioam-sb-trace; - - import ietf-interfaces { prefix if; } - - organization "Cisco Systems, Inc."; - - contact - "Author: Srihari Raghavan - srihari@cisco.com"; - - description - "This YANG module defines a component that describing the - configuration of in-band OAM device configuration for - trace elements. - "; - - revision 2017-03-27 { - description - "ietf-interfaces prefix changed to default value to be compatible with LeafRefContext - (ODL tool for checking leafrefs in runtime)"; - } - - revision 2016-05-12 { - description - "Base model for in-band OAM trace device configuration."; - reference - ""; - } - - container ioam-trace-config { - description - "Device specific configuration for in-band OAM trace."; - - list trace-config { - key "trace-config-name"; - ordered-by system; - description - "Set of ioam trace configurations that group parameters - required to enable iOAM6 tracing at a service node"; - - leaf trace-config-name { - type string { - length "0..255"; - } - mandatory true; - description - "Unique identifier for each node tracing configuration"; - } - - leaf acl-name { - type string; - description - "The ACL name associated to classify and apply this - trace config"; - } - - leaf trace-type { - type uint8 { - range "3|7|9|17|25|31"; - } - - mandatory true; - description - "Trace type that defines the trace element variant. Moving - from LSB to MSB, each bit represents node_id, ingress_if_id, - egress_if_id, timestamp, app_data and others are undefined. - Currently, the supported values are 0x03, 0x07, 0x09, - 0x11, 0x19 and 0x1f."; - } - - leaf trace-num-elt { - type uint8; - - mandatory true; - description - "Number of trace elements to be inserted in the tracing - options."; - } - - leaf trace-tsp { - type enumeration { - enum seconds { - value 0; - description "Timestamp in seconds."; - } - enum milliseconds { - value 1; - description "Timestamp in milli seconds."; - } - enum microseconds { - value 2; - description "Timestamp in micro seconds."; - } - enum nanoseconds { - value 3; - description "Timestamp in nano seconds."; - } - } - - mandatory true; - description - "This field depicts the delay domain of the trace path, - whether it is in seconds, milliseconds, microseconds - or nanoseconds."; - } - - leaf trace-op { - type enumeration { - enum add { - value 0; - description "Add new and fill trace information."; - } - enum update { - value 1; - description "Update existing trace information."; - } - enum remove { - value 2; - description "Decap or remove existing trace information."; - } - } - - mandatory true; - description - "The type of trace element operation that the service node - handling this profile should do. The options are to add the - trace elements, update the trace elements or to remove the - trace elements."; - } - - leaf trace-app-data { - type uint32; - description - "Application specific data to be added by the node"; - } - - leaf node-id { - type uint32; - mandatory true; - description - "iOAM Service Node id assigned to this node"; - } - - list node-interfaces { - key "index"; - ordered-by system; - description - "List of node's interfaces on which the trace configuration - need to be applied. Typically this is to all interfaces - but can be filtered."; - - leaf index { - type uint32; - mandatory true; - description - "Index for the interfaces list"; - } - - leaf intf-name { - type if:interface-ref; - mandatory true; - description - "Instance of ietf-interfaces:interface-ref"; - } - } - - /*** links to ioam-sb-data-export ***/ - leaf data-export-profile-name { - type string; - description - "The data export profile name with server information to - send data to."; - } - - /*** Transport encap profiles. Not used currently ***/ - leaf transport-encap-profile-name { - type string; - description - "The transport encap profile name with sub configurations for - handling transport encap."; - } -/*** list: end ***/ - } -/*** container: end ***/ - } -/*** module: end ***/ -} diff --git a/ioam/api/src/main/yang/ioam-sb-trace@2017-03-27.yang b/ioam/api/src/main/yang/ioam-sb-trace@2017-03-27.yang new file mode 100644 index 000000000..d950e9460 --- /dev/null +++ b/ioam/api/src/main/yang/ioam-sb-trace@2017-03-27.yang @@ -0,0 +1,190 @@ +module ioam-sb-trace { + yang-version 1; + namespace "urn:cisco:params:xml:ns:yang:ioam-sb-trace"; + prefix ioam-sb-trace; + + import ietf-interfaces { prefix if; } + + organization "Cisco Systems, Inc."; + + contact + "Author: Srihari Raghavan + srihari@cisco.com"; + + description + "This YANG module defines a component that describing the + configuration of in-band OAM device configuration for + trace elements. + "; + + revision 2017-03-27 { + description + "ietf-interfaces prefix changed to default value to be compatible with LeafRefContext + (ODL tool for checking leafrefs in runtime)"; + } + + revision 2016-05-12 { + description + "Base model for in-band OAM trace device configuration."; + reference + ""; + } + + container ioam-trace-config { + description + "Device specific configuration for in-band OAM trace."; + + list trace-config { + key "trace-config-name"; + ordered-by system; + description + "Set of ioam trace configurations that group parameters + required to enable iOAM6 tracing at a service node"; + + leaf trace-config-name { + type string { + length "0..255"; + } + mandatory true; + description + "Unique identifier for each node tracing configuration"; + } + + leaf acl-name { + type string; + description + "The ACL name associated to classify and apply this + trace config"; + } + + leaf trace-type { + type uint8 { + range "3|7|9|17|25|31"; + } + + mandatory true; + description + "Trace type that defines the trace element variant. Moving + from LSB to MSB, each bit represents node_id, ingress_if_id, + egress_if_id, timestamp, app_data and others are undefined. + Currently, the supported values are 0x03, 0x07, 0x09, + 0x11, 0x19 and 0x1f."; + } + + leaf trace-num-elt { + type uint8; + + mandatory true; + description + "Number of trace elements to be inserted in the tracing + options."; + } + + leaf trace-tsp { + type enumeration { + enum seconds { + value 0; + description "Timestamp in seconds."; + } + enum milliseconds { + value 1; + description "Timestamp in milli seconds."; + } + enum microseconds { + value 2; + description "Timestamp in micro seconds."; + } + enum nanoseconds { + value 3; + description "Timestamp in nano seconds."; + } + } + + mandatory true; + description + "This field depicts the delay domain of the trace path, + whether it is in seconds, milliseconds, microseconds + or nanoseconds."; + } + + leaf trace-op { + type enumeration { + enum add { + value 0; + description "Add new and fill trace information."; + } + enum update { + value 1; + description "Update existing trace information."; + } + enum remove { + value 2; + description "Decap or remove existing trace information."; + } + } + + mandatory true; + description + "The type of trace element operation that the service node + handling this profile should do. The options are to add the + trace elements, update the trace elements or to remove the + trace elements."; + } + + leaf trace-app-data { + type uint32; + description + "Application specific data to be added by the node"; + } + + leaf node-id { + type uint32; + mandatory true; + description + "iOAM Service Node id assigned to this node"; + } + + list node-interfaces { + key "index"; + ordered-by system; + description + "List of node's interfaces on which the trace configuration + need to be applied. Typically this is to all interfaces + but can be filtered."; + + leaf index { + type uint32; + mandatory true; + description + "Index for the interfaces list"; + } + + leaf intf-name { + type if:interface-ref; + mandatory true; + description + "Instance of ietf-interfaces:interface-ref"; + } + } + + /*** links to ioam-sb-data-export ***/ + leaf data-export-profile-name { + type string; + description + "The data export profile name with server information to + send data to."; + } + + /*** Transport encap profiles. Not used currently ***/ + leaf transport-encap-profile-name { + type string; + description + "The transport encap profile name with sub configurations for + handling transport encap."; + } +/*** list: end ***/ + } +/*** container: end ***/ + } +/*** module: end ***/ +} diff --git a/ioam/api/src/main/yang/sfc-ioam-sb-pot.yang b/ioam/api/src/main/yang/sfc-ioam-sb-pot.yang deleted file mode 100644 index dc4ecedf2..000000000 --- a/ioam/api/src/main/yang/sfc-ioam-sb-pot.yang +++ /dev/null @@ -1,169 +0,0 @@ -module sfc-ioam-sb-pot { - - yang-version 1; - - namespace "urn:cisco:params:xml:ns:yang:sfc-ioam-sb-pot"; - - prefix sfc-ioam-sb-pot; - - organization "Cisco Systems, Inc."; - contact - "Shwetha Bhandari - Srihari Raghavan "; - - description - "This module contains a collection of YANG definitions for - managing in-band OAM based proof of transit configuration - parameters. (https://github.com/ciscodevnet/ioam). - - The model is meant for proof of transit - and is targetted for south-bound deployment nodes."; - - revision 2017-01-12 { - description - "Changes to field names and parameter ranges."; - reference - ""; - } - - typedef profile-index-range { - type int32 { - range "-1 .. 1"; - } - description - "Range used for the profile index. Currently restricted to - -1 to 1 to identify profiles."; - } - - identity path-identifier-identity { - description - "Base identity for path identifier type."; - } - - identity path-identifier-type-acl { - base "path-identifier-identity"; - description - "ACL path identifier type."; - } - - typedef path-identifier-type { - type identityref { - base path-identifier-identity; - } - description - "Path Identifier Identity type."; - } - - grouping pot-profile { - description "A grouping for proof of transit profiles."; - list pot-profile-list { - key "index"; - ordered-by user; - description "A set of pot profiles."; - - leaf index { - type profile-index-range; - mandatory true; - description - "Proof of transit profile index."; - } - - leaf prime-number { - type uint64; - mandatory true; - description - "Prime number used for module math computation"; - } - - leaf secret-share { - type uint64; - mandatory true; - description - "Share of the secret of polynomial 1 used in computation"; - } - - leaf public-polynomial { - type uint64; - mandatory true; - description - "Public polynomial"; - } - - leaf lpc { - type uint64; - mandatory true; - description - "Lagrange Polynomial Coefficient"; - } - - leaf validator { - type boolean; - default "false"; - description - "True if the node is a verifier node"; - } - - leaf validator-key { - type uint64; - description - "Secret key for validating the path, constant of poly 1"; - } - - leaf number-of-bits { - type uint8; - default 32; - description - "Number of bits as mask used in random value generation. - 32-bits of mask is default."; - } - } - } - - container pot-profiles { - description "A group of proof of transit profiles."; - - list pot-profile-set { - key "name"; - ordered-by user; - description - "Set of proof of transit profiles that group parameters - required to classify and compute proof of transit - metadata at a node"; - - leaf name { - type string; - mandatory true; - description - "Unique identifier for each proof of transit profile"; - } - - leaf path-identifier { - type string; - description - "The path identifier could be an ACL or others associated - to classify and apply this profile"; - } - - leaf path-identifier-type-value { - type path-identifier-type; - default path-identifier-type-acl; - description - "Defines how to interpret the path-identifier."; - } - - leaf active-profile-index { - type profile-index-range; - description - "Proof of transit profile index that is currently active. - Will be set in the first hop of the path or chain. - Other nodes will not use this field."; - } - - uses pot-profile; - - /*** list: end ***/ - } - /*** Container: end ***/ - } -/*** module: end ***/ -} diff --git a/ioam/api/src/main/yang/sfc-ioam-sb-pot@2017-01-12.yang b/ioam/api/src/main/yang/sfc-ioam-sb-pot@2017-01-12.yang new file mode 100644 index 000000000..dc4ecedf2 --- /dev/null +++ b/ioam/api/src/main/yang/sfc-ioam-sb-pot@2017-01-12.yang @@ -0,0 +1,169 @@ +module sfc-ioam-sb-pot { + + yang-version 1; + + namespace "urn:cisco:params:xml:ns:yang:sfc-ioam-sb-pot"; + + prefix sfc-ioam-sb-pot; + + organization "Cisco Systems, Inc."; + contact + "Shwetha Bhandari + Srihari Raghavan "; + + description + "This module contains a collection of YANG definitions for + managing in-band OAM based proof of transit configuration + parameters. (https://github.com/ciscodevnet/ioam). + + The model is meant for proof of transit + and is targetted for south-bound deployment nodes."; + + revision 2017-01-12 { + description + "Changes to field names and parameter ranges."; + reference + ""; + } + + typedef profile-index-range { + type int32 { + range "-1 .. 1"; + } + description + "Range used for the profile index. Currently restricted to + -1 to 1 to identify profiles."; + } + + identity path-identifier-identity { + description + "Base identity for path identifier type."; + } + + identity path-identifier-type-acl { + base "path-identifier-identity"; + description + "ACL path identifier type."; + } + + typedef path-identifier-type { + type identityref { + base path-identifier-identity; + } + description + "Path Identifier Identity type."; + } + + grouping pot-profile { + description "A grouping for proof of transit profiles."; + list pot-profile-list { + key "index"; + ordered-by user; + description "A set of pot profiles."; + + leaf index { + type profile-index-range; + mandatory true; + description + "Proof of transit profile index."; + } + + leaf prime-number { + type uint64; + mandatory true; + description + "Prime number used for module math computation"; + } + + leaf secret-share { + type uint64; + mandatory true; + description + "Share of the secret of polynomial 1 used in computation"; + } + + leaf public-polynomial { + type uint64; + mandatory true; + description + "Public polynomial"; + } + + leaf lpc { + type uint64; + mandatory true; + description + "Lagrange Polynomial Coefficient"; + } + + leaf validator { + type boolean; + default "false"; + description + "True if the node is a verifier node"; + } + + leaf validator-key { + type uint64; + description + "Secret key for validating the path, constant of poly 1"; + } + + leaf number-of-bits { + type uint8; + default 32; + description + "Number of bits as mask used in random value generation. + 32-bits of mask is default."; + } + } + } + + container pot-profiles { + description "A group of proof of transit profiles."; + + list pot-profile-set { + key "name"; + ordered-by user; + description + "Set of proof of transit profiles that group parameters + required to classify and compute proof of transit + metadata at a node"; + + leaf name { + type string; + mandatory true; + description + "Unique identifier for each proof of transit profile"; + } + + leaf path-identifier { + type string; + description + "The path identifier could be an ACL or others associated + to classify and apply this profile"; + } + + leaf path-identifier-type-value { + type path-identifier-type; + default path-identifier-type-acl; + description + "Defines how to interpret the path-identifier."; + } + + leaf active-profile-index { + type profile-index-range; + description + "Proof of transit profile index that is currently active. + Will be set in the first hop of the path or chain. + Other nodes will not use this field."; + } + + uses pot-profile; + + /*** list: end ***/ + } + /*** Container: end ***/ + } +/*** module: end ***/ +} -- cgit 1.2.3-korg