This little tool provides for conversion between YANG-SID files as used by YANG-CBOR and corresponding human-readable CSV files.
gem install sid-csv
sid-csv knows the following formats:
- .sid: sid file (JSON) as defined in draft-ietf-core-sid
- .csv: CSV file as defined in RFC4180
Sources and targets are defined by -f csv
, -t csv
(default: sid
).
sid-csv -tcsv foo.sid > foo.csv
sid-csv -fcsv foo.csv > foo.sid
Output is to stdout, input from one or more files given as command line
arguments (use -
for standard input).