Project

General

Profile

Bug #8691

net-routing-setup does a match for "current=enabled" against the ipv[46]-routing "persistent" field

Added by C Fraire almost 3 years ago. Updated almost 3 years ago.

Status:
New
Priority:
Normal
Assignee:
Category:
networking
Start date:
2017-09-29
Due date:
% Done:

90%

Estimated time:
Difficulty:
Bite-size
Tags:
needs-triage
Gerrit CR:

Description

net-routing-setup does a check to determine "Are we routing dynamically?", but the nawk prog prints field $2 (persistence=enabled|disabled) and tries to match "current=enabled".

The nawk prog should just print $0 for the matching input.

History

#1

Updated by Gordon Ross almost 3 years ago

BTW, one could probably do this just with sh (or ksh) script code, avoiding the need to run nawk for this case.
Using nawk is fine where it makes sense, but people often use it when it's really not needed...

Also available in: Atom PDF