Skip to content

Commit

Permalink
generated skeleton
Browse files Browse the repository at this point in the history
  • Loading branch information
mpfefferle committed May 8, 2014
1 parent c487516 commit f6ffcd1
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 0 deletions.
12 changes: 12 additions & 0 deletions accounting-profile-statistics-logging/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
Logging Network Statistics Using Accounting Profiles
===========

This example is described in detail in the following document:
http://www.juniper.net/techpubs/en_US/release-independent/nce/information-products/topic-collections/nce/accounting-profiles-statistics-logging/accounting-profiles-statistics-logging.pdf

Usage
-----

```sh
python accounting-profile-statistics-logging.py
```
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@


import yaml
import sys
from glob import glob
from jinja2 import Template

# YAML file.
with open(glob('*.yml')[0]) as fh:
data = yaml.load(fh.read())

# Jinja2 template file.
with open(glob('*.j2')[0]) as t_fh:
t_format = t_fh.read()

template = Template(t_format)
print (template.render(data))
1 change: 1 addition & 0 deletions accounting-profile-statistics-logging/datavars.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
---

0 comments on commit f6ffcd1

Please sign in to comment.