Skip to content

Commit

Permalink
add oam super node and refractor cfm + add state variables to pm pro…
Browse files Browse the repository at this point in the history
…files
  • Loading branch information
GokusSGUltra committed Oct 18, 2024
1 parent 57fa1b2 commit 1dfb64e
Show file tree
Hide file tree
Showing 5 changed files with 75 additions and 19 deletions.
6 changes: 0 additions & 6 deletions release/models/cfm/.spec.yml

This file was deleted.

9 changes: 9 additions & 0 deletions release/models/oam/.spec.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
- name: openconfig-oam
docs:
- yang/oam/openconfig-oam.yang
- yang/oam/openconfig-cfm-types.yang
- yang/oam/openconfig-oam-cfm.yang
build:
- yang/oam/openconfig-oam.yang
- yang/oam/openconfig-oam-cfm.yang
run-ci: true
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module openconfig-cfm-types {
yang-version "1";

// namespace
namespace "http://openconfig.net/yang/cfm-types";
namespace "http://openconfig.net/yang/oam/cfm-types";

prefix "oc-cfm-types";

Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
module openconfig-cfm {
module openconfig-oam-cfm {

yang-version "1";

// namespace
namespace "http://openconfig.net/yang/cfm";
namespace "http://openconfig.net/yang/oam/cfm";

prefix "oc-cfm";
prefix "oc-oam-cfm";
import openconfig-vlan-types { prefix oc-vlan-types; }
import openconfig-interfaces { prefix oc-if; }
import openconfig-extensions { prefix oc-ext; }
import openconfig-yang-types { prefix oc-yang; }
import openconfig-cfm-types { prefix oc-cfm-types; }
import openconfig-oam { prefix oc-oam; } // imports the module being augmented


// google
Expand Down Expand Up @@ -160,18 +161,12 @@ module openconfig-cfm {
description "A unique profile name identifying the profile";
type string;
}

}

container state {
description "Operational data for loss measurement.";
config false;

leaf "profile-name" {
type string;
description "Name of the measurement profile.";
}

uses performance-measurement-config;
uses performance-measurement-state;
}
}
Expand Down Expand Up @@ -1258,7 +1253,7 @@ module openconfig-cfm {
leaf packet-per-burst {
type uint32;
description
"if burst enabled. the leaf defines the number of packet per burst of probes.
"if burst enabled. The leaf defines the number of packet per burst of probes.
packets-per-measurement-period / burst-interval";
}
}
Expand Down Expand Up @@ -1303,6 +1298,11 @@ module openconfig-cfm {
}
}

uses cfm-top;
// augment statements

augment "/oc-oam:oam" {
description
"Add cfm related state and config to oam";
uses cfm-top;
}
}
53 changes: 53 additions & 0 deletions release/models/oam/openconfig-oam.yang
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
module openconfig-oam {

yang-version "1";

// namespace
namespace "http://openconfig.net/yang/oam";

prefix "oc-oam";
import openconfig-extensions { prefix oc-ext; }

// google
organization "OpenConfig working group";

contact
"OpenConfig working group
www.openconfig.net";

description
"This module defines a YANG data model for configuring and managing
EthernetOAM functions";

oc-ext:openconfig-version "0.1.0";

revision "2024-09-11" {
description
"Initial revision";
reference "0.1.0";
}

grouping oam-top{
description
"top level grouping for configuration and operational state parameters relating
to Ethernet OAM";

container oam {
description
"Operational state and configuration parameters relating to
Ethernet OAM";

container config {
description
"Configuration parameters relating to Ethernet OAM";
}
container state {
config false;
description
"Operational state parameters relating to Ethernet OAM";
}
}
}

uses oam-top;
}

0 comments on commit 1dfb64e

Please sign in to comment.