Skip to content

Commit

Permalink
Fix XPath syntax error caught by pyang in openconfig-wifi-mac.yang (o…
Browse files Browse the repository at this point in the history
…penconfig#1169)

* Fix XPath syntax caught by pyang:

./wifi/openconfig-wifi-mac.yang:309: error: XPath syntax error: syntax error
./wifi/openconfig-wifi-mac.yang:324: error: XPath syntax error: syntax error
./wifi/openconfig-wifi-mac.yang:401: error: XPath syntax error: syntax error

* Fix revision statements
  • Loading branch information
missaesasaya authored Aug 22, 2024
1 parent 5c402a1 commit bdf3c7d
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions release/models/wifi/openconfig-wifi-mac.yang
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,18 @@ module openconfig-wifi-mac {
description
"Model for managing MAC layer configuration of Radio interfaces.";

oc-ext:openconfig-version "1.3.2";
oc-ext:openconfig-version "1.3.3";

revision "2024-08-22" {
description "Fix XPath expression to avoid pyang error";
reference "1.3.3";
}

revision "2024-08-07" {
description
"Add transition modes ENHANCED_OPEN_TRANSITION, WPA3_2_SAE_TRANSITION and
WPA3_2_ENTERPRISE_TRANSITION";
reference "1.3.2";
}

revision "2023-05-26" {
Expand Down Expand Up @@ -306,7 +312,7 @@ module openconfig-wifi-mac {

leaf wpa3-psk {
when "../opmode = 'WPA3_SAE' or
../opemode = 'WPA3_2_SAE_TRANSITION";
../opmode = 'WPA3_2_SAE_TRANSITION'";
type string {
length "8..63";
}
Expand All @@ -318,7 +324,7 @@ module openconfig-wifi-mac {
when "../opmode = 'WPA2_ENTERPRISE' or
../opmode = 'WPA2_PERSONAL' or
../opmode = 'WPA3_ENTERPRISE' or
../opmode = 'WPA3_2_ENTERPRISE_TRANSITION
../opmode = 'WPA3_2_ENTERPRISE_TRANSITION' or
../opmode = 'WPA3_ENTERPRISE_192_BIT' or
../opmode = 'WPA3_SAE' or
../opmode = 'WPA3_2_SAE_TRANSITION'";
Expand Down Expand Up @@ -392,12 +398,12 @@ module openconfig-wifi-mac {

leaf mfp {
when "../opmode = 'WPA3_ENTERPRISE' or
../opmode = 'WPA3_2_ENTERPRISE_TRANSITION
../opmode = 'WPA3_2_ENTERPRISE_TRANSITION' or
../opmode = 'WPA3_ENTERPRISE_192_BIT' or
../opmode = 'WPA3_SAE' or
../opmode = 'WPA3_2_SAE_TRANSITION
../opmode = 'ENHANCED_OPEN'
../opmode = 'ENHANCED_OPEN_TRANSITION
../opmode = 'WPA3_2_SAE_TRANSITION' or
../opmode = 'ENHANCED_OPEN' or
../opmode = 'ENHANCED_OPEN_TRANSITION'
";
type boolean;
mandatory true;
Expand Down

0 comments on commit bdf3c7d

Please sign in to comment.