Skip to content

Commit

Permalink
Revert "Update ietf-layer0-types-ext.yang"
Browse files Browse the repository at this point in the history
This reverts commit 61d52f4.
  • Loading branch information
italobusi committed Jan 21, 2022
1 parent 61d52f4 commit 32809cb
Showing 1 changed file with 70 additions and 75 deletions.
145 changes: 70 additions & 75 deletions ietf-layer0-types-ext.yang
Expand Up @@ -25,7 +25,7 @@ module ietf-layer0-types-ext {
description
"Description to be added!!!
Copyright (c) 2022 IETF Trust and the persons identified
Copyright (c) 2021 IETF Trust and the persons identified
as authors of the code. All rights reserved.
Redistribution and use in source and binary forms, with
Expand All @@ -38,7 +38,7 @@ module ietf-layer0-types-ext {
This version of this YANG module is part of RFC XXXX; see
the RFC itself for full legal notices.";

revision "2022-01-21" {
revision "2021-12-20" {
description
"Initial Version";
reference
Expand Down Expand Up @@ -183,6 +183,12 @@ module ietf-layer0-types-ext {
(PCE) Control of Wavelength Switched Optical Networks (WSONs)";
}

identity unspecified-wavelength-assignment {
base wavelength-assignment;
description
"No method specified";
}

identity first-fit-wavelength-assignment {
base wavelength-assignment;
description
Expand Down Expand Up @@ -445,75 +451,9 @@ module ietf-layer0-types-ext {
}
*/

grouping transceiver-mode {
description
"This grouping is intended to be used for reporting the
information of a transceiver's mode.";
choice mode {
mandatory true;
description
"Indicates whether the transceiver's mode is a standard
mode, an organizational mode or an explicit mode.";
case G.698.2 {
uses standard-mode;
}
case organizational-mode {
container organizational-mode {
description
"The set of attributes for an organizational mode";
uses organizational-mode;
uses common-organizational-explicit-mode;
} // container organizational-mode
}
case explicit-mode {
container explicit-mode {
description
"The set of attributes for an explicit mode";
container supported-modes {
description
"Container for all the standard and organizational
modes supported by the transceiver's explicit
mode.";
leaf-list supported-application-codes {
type leafref {
path "../../../mode-id";
}
must "../../../../"
+ "supported-mode[mode-id=current()]/"
+ "standard-mode" {
description
"The pointer is only for application codes
supported by transceiver.";
}
description
"List of pointers to the application codes
supported by the transceiver's explicit mode.";
}
leaf-list supported-organizational-modes {
type leafref {
path "../../../mode-id";
}
must "../../../../"
+ "supported-mode[mode-id=current()]/"
+ "organizational-mode" {
description
"The pointer is only for organizational modes
supported by transceiver.";
}
description
"List of pointers to the organizational modes
supported by the transceiver's explicit mode.";
}
} // container supported-modes
uses common-explicit-mode;
uses common-organizational-explicit-mode;
} // container explicit-mode
} // end of case explicit-mode
} // end of choice
}
grouping transceiver-capabilities {
description
"This grouping is intended to be used for reporting the
"This grouping is intended to be use for reporting the
capabilities of a transceiver.";

container supported-modes {
Expand All @@ -529,7 +469,67 @@ module ietf-layer0-types-ext {
}
description "ID for the supported transceiver's mode.";
}
uses transceiver-mode;
choice mode {
mandatory true;
description
"Indicates whether the transceiver's mode is a standard
mode, an organizational mode or an explicit mode.";
case G.698.2 {
uses standard-mode;
}
case organizational-mode {
container organizational-mode {
description
"The set of attributes for an organizational mode";
uses organizational-mode;
uses common-organizational-explicit-mode;
} // container organizational-mode
}
case explicit-mode {
container explicit-mode {
description
"The set of attributes for an explicit mode";
container supported-modes {
description
"Container for all the standard and organizational
modes supported by the transceiver's explicit
mode.";
leaf-list supported-application-codes {
type leafref {
path "../../../mode-id";
}
must "../../../../"
+ "supported-mode[mode-id=current()]/"
+ "standard-mode" {
description
"The pointer is only for application codes
supported by transceiver.";
}
description
"List of pointers to the application codes
supported by the transceiver's explicit mode.";
}
leaf-list supported-organizational-modes {
type leafref {
path "../../../mode-id";
}
must "../../../../"
+ "supported-mode[mode-id=current()]/"
+ "organizational-mode" {
description
"The pointer is only for organizational modes
supported by transceiver.";
}
description
"List of pointers to the organizational modes
supported by the transceiver's explicit mode.";
}
} // container supported-modes
uses common-explicit-mode;
uses common-organizational-explicit-mode;
} // container explicit-mode
} // end of case explicit-mode
} // end of choice
} // list supported-modes
} // container supported-modes
} // grouping transceiver-capabilities
Expand Down Expand Up @@ -895,11 +895,6 @@ module ietf-layer0-types-ext {
grouping l0-tunnel-attributes {
description
"Parameters for Layer0 (WSON or Flexi-Grid) Tunnels.";
leaf test {
type boolean;
description
"Added to test compilation version.";
}
leaf fec-type {
type identityref {
base fec-type;
Expand Down

0 comments on commit 32809cb

Please sign in to comment.