-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
also some clean-ups; no longer need negative values for --fmt
- Loading branch information
Showing
5 changed files
with
173 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,104 @@ | ||
// fragment of | ||
// https://github.com/BroadbandForum/yang/raw/eaac2c3904365d3c7b17100c7d5120ed06a56b74/standard/common/bbf-device.yang | ||
module bbf-device { | ||
yang-version 1.1; | ||
namespace "urn:bbf:yang:bbf-device"; | ||
prefix bbf-dvc; | ||
|
||
import ietf-yang-types { | ||
prefix yang; | ||
} | ||
import ietf-inet-types { | ||
prefix inet; | ||
} | ||
import bbf-yang-types { | ||
prefix bbf-yang; | ||
} | ||
import bbf-device-types { | ||
prefix bbf-dvct; | ||
} | ||
import bbf-node-types { | ||
prefix bbf-nodet; | ||
} | ||
|
||
organization | ||
"Broadband Forum <https://www.broadband-forum.org> | ||
Common YANG Work Area"; | ||
contact | ||
"Comments or questions about this Broadband Forum YANG module | ||
should be directed to <mailto:[email protected]>. | ||
Editor: Nick Hancock, ADTRAN | ||
Editor: Ludwig Pauwels, Nokia | ||
PS Leader: Joey Boyd, ADTRAN | ||
WA Director: Joey Boyd, ADTRAN | ||
WA Director: Sven Ooghe, Nokia"; | ||
|
||
description | ||
"This module contains a collection of YANG definitions for | ||
supporting the Broadband Forum requirements on managing physical | ||
devices."; | ||
|
||
revision 2022-03-01 { | ||
description | ||
"Amendment 5. | ||
* Approval Date: 2022-03-01. | ||
* Publication Date: 2022-03-01."; | ||
reference | ||
"TR-383a5: Common YANG Modules | ||
<https://www.broadband-forum.org/technical/download/ | ||
TR-383_Amendment-5.pdf>"; | ||
} | ||
|
||
// Features | ||
|
||
feature reports-device-powering-state { | ||
description | ||
"Indicates the support for reporting the device powering | ||
state."; | ||
} | ||
|
||
// Device Properties | ||
|
||
grouping device-alias { | ||
description | ||
"Alias information for the device."; | ||
leaf alias { | ||
type bbf-yang:string-ascii64; | ||
description | ||
"The alias that can be used to identify a device."; | ||
} | ||
} | ||
|
||
// Device hardware information | ||
|
||
|
||
// Device Management Information | ||
|
||
grouping device-management-info { | ||
description | ||
"Data nodes relating to management plane information needed to | ||
reach and communicate with the device."; | ||
leaf ip-address { | ||
type inet:host; | ||
description | ||
"The IP address or DNS domain name of the device."; | ||
} | ||
leaf port { | ||
type inet:port-number; | ||
description | ||
"The port number used on the device for | ||
management."; | ||
} | ||
leaf admin-state { | ||
type bbf-nodet:admin-state; | ||
description | ||
"The administrative state of the device."; | ||
} | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
--- | ||
# github.com/AlDanial/cloc | ||
header : | ||
cloc_url : github.com/AlDanial/cloc | ||
cloc_version : 2.01 | ||
elapsed_seconds : 0.0034480094909668 | ||
n_files : 1 | ||
n_lines : 104 | ||
files_per_second : 290.022403540313 | ||
lines_per_second : 30162.3299681925 | ||
report_file : ../outputs/bbf-device.yang.yaml | ||
'Yang' : | ||
nFiles: 1 | ||
blank: 18 | ||
comment: 6 | ||
code: 80 | ||
SUM: | ||
blank: 18 | ||
comment: 6 | ||
code: 80 | ||
nFiles: 1 |