Skip to content

Commit

Permalink
remove deviations from wifi models (#897)
Browse files Browse the repository at this point in the history
* remove deviations from wifi models

* remove deviations from wifi

* update description and add type
  • Loading branch information
dplore authored Jun 28, 2023
1 parent 0cae2cf commit 0c29988
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 43 deletions.
15 changes: 14 additions & 1 deletion release/models/platform/openconfig-platform-types.yang
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,13 @@ module openconfig-platform-types {
"This module defines data types (e.g., YANG identities)
to support the OpenConfig component inventory model.";

oc-ext:openconfig-version "1.5.0";
oc-ext:openconfig-version "1.6.0";

revision "2023-06-27" {
description
"Add WIFI_ACCESS_POINT";
reference "1.6.0";
}

revision "2022-07-28" {
description
Expand Down Expand Up @@ -345,6 +351,13 @@ module openconfig-platform-types {
chip, etc.)";
}

identity WIFI_ACCESS_POINT {
base OPENCONFIG_HARDWARE_COMPONENT;
description
"A device that attaches to a an Ethernet network and creates a wireless
local area network";
}

identity OPERATING_SYSTEM {
base OPENCONFIG_SOFTWARE_COMPONENT;
description
Expand Down
20 changes: 10 additions & 10 deletions release/models/wifi/openconfig-access-points.yang
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,13 @@ module openconfig-access-points {
"This module defines the top level WiFi Configurations for a list of
Access Points.";

oc-ext:openconfig-version "1.1.1";
oc-ext:openconfig-version "1.2.0";

revision "2023-06-26" {
description
"Update description for hostname";
reference "1.2.0";
}

revision "2023-05-26" {
description
Expand Down Expand Up @@ -168,7 +174,9 @@ module openconfig-access-points {
"ap-manager:config/ap-manager:hostname";
}
description
"Access Point FQDN.";
"Access Point FQDN. This leaf is only valid when the type of the
component is WIFI_ACCESS_POINT, and should be used instead of
/oc-sys:system/oc-sys:state/oc-sys:hostname.";
}
}

Expand Down Expand Up @@ -219,12 +227,4 @@ module openconfig-access-points {
}
uses access-points-top;

// hostname is set using openconfig-wifi-aps model.
deviation /oc-sys:system/oc-sys:config/oc-sys:hostname {
deviate not-supported;
}

deviation /oc-sys:system/oc-sys:state/oc-sys:hostname {
deviate not-supported;
}
}
39 changes: 7 additions & 32 deletions release/models/wifi/openconfig-ap-interfaces.yang
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,13 @@ module openconfig-ap-interfaces {
"This module defines the configuration and state data for
non-radio interfaces on WiFi Access Points.";

oc-ext:openconfig-version "1.0.1";
oc-ext:openconfig-version "1.2.0";

revision "2023-06-26" {
description
"Remove deviation for unnumbered interfaces";
reference "1.2.0";
}

revision "2023-05-26" {
description
Expand Down Expand Up @@ -216,35 +222,4 @@ module openconfig-ap-interfaces {

uses oc-tun:tunnel-top;
}
// Deviation statements
// Unnumbered interfaces not supported on Access Points.
deviation "/oc-access-points:access-points/" +
"oc-access-points:access-point/" +
"oc-ap-if:interfaces/oc-ap-if:interface/" +
"oc-ap-if:subinterfaces/oc-ap-if:subinterface/oc-ap-if:ipv4/" +
"oc-ap-if:unnumbered" {
deviate not-supported;
}

deviation "/oc-access-points:access-points/" +
"oc-access-points:access-point/" +
"oc-ap-if:interfaces/oc-ap-if:interface/" +
"oc-ap-if:subinterfaces/oc-ap-if:subinterface/oc-ap-if:ipv6/" +
"oc-ap-if:unnumbered" {
deviate not-supported;
}

deviation "/oc-access-points:access-points/" +
"oc-access-points:access-point/" +
"oc-ap-if:interfaces/oc-ap-if:interface/" +
"oc-ap-if:tunnel/oc-ap-if:ipv4/oc-ap-if:unnumbered" {
deviate not-supported;
}

deviation "/oc-access-points:access-points/" +
"oc-access-points:access-point/" +
"oc-ap-if:interfaces/oc-ap-if:interface/" +
"oc-ap-if:tunnel/oc-ap-if:ipv6/oc-ap-if:unnumbered" {
deviate not-supported;
}
}

0 comments on commit 0c29988

Please sign in to comment.