commit | b5efa59763aaeea7174bfd2b29f98e71d25598c6 | [log] [tgz] |
---|---|---|
author | David Ahern <dsa@cumulusnetworks.com> | Thu Dec 15 12:07:00 2016 -0800 |
committer | Stephen Hemminger <stephen@networkplumber.org> | Wed Dec 21 15:56:39 2016 -0800 |
tree | 031b9d94ef59d63f22e340d57550f5976d04ed74 | |
parent | c94112faf51153e90577114558c18d8b41c0d31f [diff] |
ip vrf: Refactor ipvrf_identify Split ipvrf_identify into arg processing and a function that does the actual cgroup file parsing. The latter function is used in a follow on patch. In the process, convert the reading of the cgroups file to use fopen and fgets just in case the file ever grows beyond 4k. Move printing of any error message and the vrf name to the caller of the new vrf_identify. Signed-off-by: David Ahern <dsa@cumulusnetworks.com>