From 344d13eff50937c9687ced92286b7395952e2d87 Mon Sep 17 00:00:00 2001 From: Morgan Willcock Date: Mon, 6 Feb 2017 11:38:34 +0000 Subject: [PATCH] Fix NetBSD sockstat example --- salt/utils/network.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/salt/utils/network.py b/salt/utils/network.py index c89db3bca3..df47c80f31 100644 --- a/salt/utils/network.py +++ b/salt/utils/network.py @@ -1059,14 +1059,14 @@ def _netbsd_remotes_on(port, which_end): $ sudo sockstat -4 -n USER COMMAND PID FD PROTO LOCAL ADDRESS FOREIGN ADDRESS - root python2.7 1456 29 tcp4 *.4505 *.* - root python2.7 1445 17 tcp4 *.4506 *.* - root python2.7 1294 14 tcp4 127.0.0.1.11813 127.0.0.1.4505 - root python2.7 1294 41 tcp4 127.0.0.1.61115 127.0.0.1.4506 + root python2.7 1456 29 tcp *.4505 *.* + root python2.7 1445 17 tcp *.4506 *.* + root python2.7 1294 14 tcp 127.0.0.1.11813 127.0.0.1.4505 + root python2.7 1294 41 tcp 127.0.0.1.61115 127.0.0.1.4506 $ sudo sockstat -4 -c -n -p 4506 USER COMMAND PID FD PROTO LOCAL ADDRESS FOREIGN ADDRESS - root python2.7 1294 41 tcp4 127.0.0.1.61115 127.0.0.1.4506 + root python2.7 1294 41 tcp 127.0.0.1.61115 127.0.0.1.4506 ''' port = int(port) @@ -1085,7 +1085,7 @@ def _netbsd_remotes_on(port, which_end): chunks = line.split() if not chunks: continue - # ['root', 'python2.7', '1456', '37', 'tcp4', + # ['root', 'python2.7', '1456', '37', 'tcp', # '127.0.0.1.4505-', '127.0.0.1.55703'] # print chunks if 'COMMAND' in chunks[1]: