MCPcopy Create free account
hub / github.com/PierreGode/Ragnar / get

Method get

pager_lib/getmac/getmac.py:1258–1260  ·  view source on GitHub ↗
(self, arg="")

Source from the content-addressed store, hash-verified

1256 return check_command("route")
1257
1258 def get(self, arg=""): # type: (str) -> Optional[str]
1259 output = _popen("route", "-nq show -inet -gateway -priority 1")
1260 return output.partition("127.0.0.1")[0].strip().rpartition(" ")[2]
1261
1262
1263class DefaultIfaceFreeBsd(Method):

Callers

nothing calls this directly

Calls 1

_popenFunction · 0.85

Tested by

no test coverage detected