From 5213d2ce88a668fae8023d924dcc9d8e0a0133df Mon Sep 17 00:00:00 2001 From: Michal Cmarada Date: Thu, 20 Jul 2017 10:41:50 +0200 Subject: [PATCH] remove unused yangs from GBP core Change-Id: Ifa4b37d3600ee6e68070125829a8d3a0d66160fc Signed-off-by: Michal Cmarada --- .../yang/operationalstate/fault-rule.yang | 16 --- .../main/yang/operationalstate/faults.yang | 102 ------------------ .../yang/operationalstate/health-rule.yang | 24 ----- .../main/yang/operationalstate/health.yang | 99 ----------------- 4 files changed, 241 deletions(-) delete mode 100644 groupbasedpolicy/src/main/yang/operationalstate/fault-rule.yang delete mode 100644 groupbasedpolicy/src/main/yang/operationalstate/faults.yang delete mode 100644 groupbasedpolicy/src/main/yang/operationalstate/health-rule.yang delete mode 100644 groupbasedpolicy/src/main/yang/operationalstate/health.yang diff --git a/groupbasedpolicy/src/main/yang/operationalstate/fault-rule.yang b/groupbasedpolicy/src/main/yang/operationalstate/fault-rule.yang deleted file mode 100644 index d89f6aea0..000000000 --- a/groupbasedpolicy/src/main/yang/operationalstate/fault-rule.yang +++ /dev/null @@ -1,16 +0,0 @@ -// Contents of "fault-rule" -module fault-rule { - namespace "urn:opendaylight:fault-rule"; - prefix "fault-rule"; - - revision 2015-04-28 { - description "Initial revision"; - } - - typedef rule {type string;} - - container fault-rules { - description "stuff"; - - } -} diff --git a/groupbasedpolicy/src/main/yang/operationalstate/faults.yang b/groupbasedpolicy/src/main/yang/operationalstate/faults.yang deleted file mode 100644 index 85447ec58..000000000 --- a/groupbasedpolicy/src/main/yang/operationalstate/faults.yang +++ /dev/null @@ -1,102 +0,0 @@ -// Contents of "fault-instance" -module fault-instance { - namespace "urn:opendaylight:fault-instance"; - prefix "fault-instance"; - - import gbp-common {prefix gbp-common;} - import ietf-inet-types { - prefix inet; - revision-date 2013-07-15; - } - import ietf-yang-types { - prefix yang; - revision-date 2013-07-15; - } - import fault-rule {prefix fault-rule;} - - revision 2015-04-28 { - description "Initial revision"; - } - - typedef severity { - type enumeration { - enum emergency { - description - "A panic condition"; - } - enum alert { - description - "Should be corrected immediately"; - } - enum critical { - description - "Should be corrected immediately"; - } - enum error { - description - "Non-urgent failure"; - } - enum warning { - description - "Indication that an error will occur if action is not taken"; - } - enum informational { - description - "Normal operational events"; - } - enum trace { - description - "System debug"; - } - } - } - - container faults { - - list fault { - key "id"; - leaf id { - description "A unique ID for the fault"; - type gbp-common:unique-id; - mandatory true; - - } - leaf cause { - description "A user-visible name for the tenant"; - type gbp-common:description; - } - leaf description { - description "A user-readable description for the tenant"; - type gbp-common:description; - } - leaf counter { - description "Occurences of this fault"; - type yang:counter32; - } - leaf trigger { - type fault-rule:rule; - } - leaf created { - type yang:timestamp; - } - leaf modified { - type yang:timestamp; - } - leaf component { - description "his should be a leafref or a choice between leafref and description. - This allows us to segment by tenant and component."; - type gbp-common:description; - } - leaf highest-severity { - type severity; - } - leaf current-severity { - type severity; - } - leaf previous-severity { - type severity; - } - - } - } -} diff --git a/groupbasedpolicy/src/main/yang/operationalstate/health-rule.yang b/groupbasedpolicy/src/main/yang/operationalstate/health-rule.yang deleted file mode 100644 index bf27a158f..000000000 --- a/groupbasedpolicy/src/main/yang/operationalstate/health-rule.yang +++ /dev/null @@ -1,24 +0,0 @@ -// Contents of "fault-rule" -module health-rule { - namespace "urn:opendaylight:health-rule"; - prefix "health-rule"; - - revision 2015-04-28 { - description "Initial revision"; - } - - typedef rule {type string;} - - container health-rules { - description "Objective rule contructs for health score formula"; - - } - - container health-score-faults { - - } - - container health-score { - - } -} diff --git a/groupbasedpolicy/src/main/yang/operationalstate/health.yang b/groupbasedpolicy/src/main/yang/operationalstate/health.yang deleted file mode 100644 index afbd19666..000000000 --- a/groupbasedpolicy/src/main/yang/operationalstate/health.yang +++ /dev/null @@ -1,99 +0,0 @@ -module health { - namespace "urn:opendaylight:health"; - prefix "health"; - - import gbp-common {prefix gbp-common;} - import ietf-inet-types { - prefix inet; - revision-date 2013-07-15; - } - import ietf-yang-types { - prefix yang; - revision-date 2013-07-15; - } - import fault-rule {prefix fault-rule;} - - revision 2015-04-28 { - description "Initial revision"; - } - - typedef severity { - type enumeration { - enum emergency { - description - "A panic condition"; - } - enum alert { - description - "Should be corrected immediately"; - } - enum critical { - description - "Should be corrected immediately"; - } - enum error { - description - "Non-urgent failure"; - } - enum warning { - description - "Indication that an error will occur if action is not taken"; - } - enum informational { - description - "Normal operational events"; - } - enum trace { - description - "System debug"; - } - } - } - - container faults { - - list fault { - key "id"; - leaf id { - description "A unique ID for the fault"; - type gbp-common:unique-id; - mandatory true; - - } - leaf cause { - description "A user-visible name for the tenant"; - type gbp-common:description; - } - leaf description { - description "A user-readable description for the tenant"; - type gbp-common:description; - } - leaf counter { - description "Occurences of this fault"; - type yang:counter32; - } - leaf trigger { - type fault-rule:rule; - } - leaf created { - type yang:timestamp; - } - leaf modified { - type yang:timestamp; - } - leaf component { - type gbp-common:description; - } - leaf highest-severity { - type severity; - } - leaf current-severity { - type severity; - } - leaf previos-severity { - type severity; - } - - } - } -} -- 2.36.6