Skip to content

Commit

Permalink
2020-01-17: TR-355a2c2 YANG Modules for FTTdp Management
Browse files Browse the repository at this point in the history
  • Loading branch information
BBF Tools committed Jan 22, 2020
1 parent 272bc05 commit a8b75c3
Show file tree
Hide file tree
Showing 59 changed files with 3,601 additions and 2,746 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright (c) 2016-2017, Broadband Forum
Copyright (c) 2016-2020, Broadband Forum
All rights reserved.

Redistribution and use in source and binary forms, with or
Expand Down
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
## Broadband Forum YANG Modules

### 2020-01-17: [TR-355a2c2](https://www.broadband-forum.org/technical/download/TR-355_Amendment-2.pdf) YANG Modules for FTTdp Management (PDF not updated)
*Tag: [v1.2.2-TR-355a2c2](https://github.com/BroadbandForum/yang/tree/v1.2.2-TR-355a2c2)*

* Correct *must* statements for *preferred-mds*, *minimum-mds* and *maximum-mds*

### 2019-10-21: [TR-355a2c1](https://www.broadband-forum.org/technical/download/TR-355_Amendment-2.pdf) YANG Modules for FTTdp Management (PDF not updated)
*Tag: [v1.2.1-TR-355a2c1](https://github.com/BroadbandForum/yang/tree/v1.2.1-TR-355a2c1)*

Expand Down
54 changes: 44 additions & 10 deletions check.sh
Original file line number Diff line number Diff line change
@@ -1,38 +1,72 @@
#!/bin/sh
#
# BBF check script (loosely) based on the IETF one.

ietf_dir="standard/ietf"
bbf_dir="standard/bbf"
#
# Invoke without arguments in a YangModels/yang checkout
#
# Example invocation in BBF publish/yang tree
#
# PYTHONPATH=../../pyang ./check.sh . ../../yang-external ../../pyang/bin/pyang true

cwd=`pwd`

# default arguments
bbf_dir="$cwd/standard/bbf"
ietf_dir="$cwd/standard/ietf"
pyang=pyang

# $1 overrides bbf_dir
if [ -n "$1" ]; then
bbf_dir="$1"
fi

# $2 overrides ietf_dir
if [ -n "$2" ]; then
ietf_dir="$2"
fi

# $3 overrides pyang (may also need to set PYTHONPATH)
if [ -n "$3" ]; then
pyang="$3"
fi

# $4 if non-zero enables debug output
debug="$4"

cd $bbf_dir
to_check=`find standard draft -mindepth 1 -maxdepth 1 -type d`
bbf_dir=`pwd`

cd $ietf_dir
ietf_dir=`pwd`

cd $cwd

pyang_flags="--strict --max-line-length=70 --lint --lint-modulename-prefix=bbf --lint-namespace-prefix=urn:bbf:yang: --verbose --path=$cwd/$ietf_dir --path=$cwd/$bbf_dir"
pyang_flags="--strict --max-line-length=70 --lint --lint-modulename-prefix=bbf --lint-namespace-prefix=urn:bbf:yang: --verbose --path=$bbf_dir --path=$ietf_dir"

checkDir () {
local dir="$bbf_dir/$1"
echo Checking yang files in $dir
exit_status=""
printf "\n"
echo Checking YANG files in $dir
exit_status=""
for f in `find $dir -name '*.yang'`; do
errors=`pyang $pyang_flags $f 2>&1 | grep "error:"`
if [ ! -z "$errors" ]; then
if [ -n "$debug" ]; then
echo Checking $f
fi
errors=`$pyang $pyang_flags $f 2>&1 | grep "error:"`
if [ -n "$errors" ]; then
echo Errors in $f
printf "\n $errors \n"
exit_status="failed!"
fi
done
if [ ! -z "$exit_status" ]; then
if [ -n "$exit_status" ]; then
exit 1
fi
}

echo Checking modules with pyang command:
printf "\n pyang $pyang_flags MODULE\n\n"
printf "\nPYTHONPATH=$PYTHONPATH $pyang $pyang_flags MODULE\n"

for d in $to_check; do
checkDir $d
Expand Down
25 changes: 25 additions & 0 deletions docs/404.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
---
permalink: /404.html
layout: default
---

<style type="text/css" media="screen">
.container {
margin: 10px auto;
max-width: 600px;
text-align: center;
}
h1 {
margin: 30px 0;
font-size: 4em;
line-height: 1;
letter-spacing: -1px;
}
</style>

<div class="container">
<h1>404</h1>

<p><strong>Page not found :(</strong></p>
<p>The requested page could not be found.</p>
</div>
1 change: 1 addition & 0 deletions docs/CNAME
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
yang.broadband-forum.org
36 changes: 36 additions & 0 deletions docs/Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
source "https://rubygems.org"
# Hello! This is where you manage which Jekyll version is used to run.
# When you want to use a different version, change it below, save the
# file and run `bundle install`. Run Jekyll with `bundle exec`, like so:
#
# bundle exec jekyll serve
#
# This will help ensure the proper Jekyll version is running.
# Happy Jekylling!
#gem "jekyll", "~> 3.8.5"

# This is the default theme for new Jekyll sites. You may change this to anything you like.
#gem "minima", "~> 2.5"

# If you want to use GitHub Pages, remove the "gem "jekyll"" above and
# uncomment the line below. To upgrade, run `bundle update github-pages`.
gem "github-pages", group: :jekyll_plugins

# XXX see https://stackoverflow.com/questions/59558141
gem 'faraday', '0.17.3'

# If you have any plugins, put them here!
group :jekyll_plugins do
gem "jekyll-feed", "~> 0.12"
end

# Windows and JRuby does not include zoneinfo files, so bundle the tzinfo-data gem
# and associated library.
install_if -> { RUBY_PLATFORM =~ %r!mingw|mswin|java! } do
gem "tzinfo", "~> 1.2"
gem "tzinfo-data"
end

# Performance-booster for watching directories on Windows
gem "wdm", "~> 0.1.1", :install_if => Gem.win_platform?

Loading

0 comments on commit a8b75c3

Please sign in to comment.