Mercurial > hg > freeDiameter
view contrib/tools/README @ 1479:c0aa1e66c12e
csv_to_fd: improve validation
* Validate flags:
- Ensure M and V can't occur more than once.
- Ensure absence of V for vendor 0.
- Ensure presence of V for vendor not 0.
* Ensure AVP name is unique per vendor.
* Add AVP name to most errors.
* Use csv.DictReader.line_num for more accurate line numbers.
TODO: enforce M and V must be present once and only once.
Some AVPs currently fail that rule, including:
- RFC 4005 / RFC 7155 QoS-Filter-Rule
- 3GPP TS 29.212 PDN-Connection-ID
- 3GPP TS 29.212 PS-to-CS-Session-Continuity
author | Luke Mewburn <luke@mewburn.net> |
---|---|
date | Thu, 26 Mar 2020 10:28:16 +1100 |
parents | a86eb3375b95 |
children |
line wrap: on
line source
csv_to_fd converts CSV files containing RADIUS or Diameter AVP tables into various formats, including freeDiameter C code and JSON documents. grep_fd_dict_dump processes stdin for the output of fd_dict_dump() or dbg_dict_dump.fdx and reformats to remove pointer addresses, to allow diff of output between freeDiameter invocations. org_to_csv converts org files into CSV files, suitable for csv_to_fd. org_to_fd.pl converts org files like diameter-rfcs.org to C fragments that can be included in freeDiameter code.