mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Update per reviewer's suggestion for better code
This commit is contained in:
parent
98e3a8e566
commit
92d92dc746
1 changed files with 11 additions and 25 deletions
|
@ -570,31 +570,17 @@ def _ip_route_linux():
|
|||
|
||||
# need to fake similar output to that provided by netstat
|
||||
# to maintain output format
|
||||
if comps[0] == "unicast":
|
||||
continue
|
||||
|
||||
if comps[0] == "broadcast":
|
||||
continue
|
||||
|
||||
if comps[0] == "throw":
|
||||
continue
|
||||
|
||||
if comps[0] == "unreachable":
|
||||
continue
|
||||
|
||||
if comps[0] == "prohibit":
|
||||
continue
|
||||
|
||||
if comps[0] == "blackhole":
|
||||
continue
|
||||
|
||||
if comps[0] == "nat":
|
||||
continue
|
||||
|
||||
if comps[0] == "anycast":
|
||||
continue
|
||||
|
||||
if comps[0] == "multicast":
|
||||
if comps[0] in (
|
||||
"unicast",
|
||||
"broadcast",
|
||||
"throw",
|
||||
"unreachable",
|
||||
"prohibit",
|
||||
"blackhole",
|
||||
"nat",
|
||||
"anycast",
|
||||
"multicast",
|
||||
):
|
||||
continue
|
||||
|
||||
if comps[0] == "default":
|
||||
|
|
Loading…
Add table
Reference in a new issue