Skip to content

Commit 206ac71

Browse files
committed
refactor model
1 parent 968e5c8 commit 206ac71

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

src/confd/yang/confd/infix-if-wifi.yang

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,10 @@ submodule infix-if-wifi {
221221
}
222222
}
223223
list scan-results {
224+
when "../mode = 'client'" {
225+
description
226+
"Applies only when in mode 'client'.";
227+
}
224228
config false;
225229
key ssid;
226230
description
@@ -258,6 +262,24 @@ submodule infix-if-wifi {
258262
"Human-readable description of the detected security.";
259263
}
260264
}
265+
list connected-stations {
266+
when "../mode = 'accesspoint'" {
267+
description
268+
"Applies only when in mode 'accesspoint'.";
269+
}
270+
key mac;
271+
leaf mac {
272+
type yang:phys-address;
273+
description
274+
"Mac address of connected station";
275+
}
276+
leaf rssi {
277+
type int16;
278+
units "dBm";
279+
description
280+
"Signal for connected station";
281+
}
282+
}
261283
}
262284
}
263285
}

0 commit comments

Comments
 (0)