commit | 53aadc5286261fecb6e994918db8371515f9dd99 | [log] [tgz] |
---|---|---|
author | Phil Sutter <phil@nwl.cc> | Sat Jul 23 13:28:08 2016 +0200 |
committer | Stephen Hemminger <shemming@brocade.com> | Mon Jul 25 08:10:43 2016 -0700 |
tree | 8f6e2a533b0c8d8b3fa5dcf0e60f34ad361a19db | |
parent | 9ffc80b1e49c4264fb20851e179aaa8ec0bc0766 [diff] |
tc: util: bore up action_a2n() It's a pitty this function is used nowhere, so let's polish it for use: * Loop over branch names, makes it clear that every former conditional was exactly identical. * Support 'pipe' branch name, too. * Make number parsing optional. Signed-off-by: Phil Sutter <phil@nwl.cc>