Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Luciano Barletta
/
message-service
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
1
Wiki
Network
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit 7d7064e7
authored
2019-09-18 13:16:52 +0000
by
Luciano Barletta
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Fixed ping, added .gitignore
1 parent
3b7d0bf1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletions
.gitignore
deploy.py
.gitignore
0 → 100644
View file @
7d7064e
*.sh
*.db
*.pyc
__pycache__
\ No newline at end of file
\ No newline at end of file
deploy.py
View file @
7d7064e
...
@@ -33,7 +33,7 @@ def key(dir):
...
@@ -33,7 +33,7 @@ def key(dir):
return
key
return
key
def
mac_from_ip
(
ip
):
def
mac_from_ip
(
ip
):
os
.
system
(
"ping "
+
ip
+
" c1"
)
os
.
system
(
"ping "
+
ip
+
"
-
c1"
)
for
i
in
get_arp_table
():
for
i
in
get_arp_table
():
if
i
[
'IP address'
]
==
ip
:
if
i
[
'IP address'
]
==
ip
:
return
i
[
'HW address'
]
return
i
[
'HW address'
]
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment