Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
17
Merge Requests
17
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
nexedi
slapos.core
Commits
322bea2b
Commit
322bea2b
authored
Sep 10, 2013
by
Marco Mariani
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use fe80: addresses for cygwin. DO NOT MERGE :)
parent
880441a6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
slapos/format.py
slapos/format.py
+8
-1
No files found.
slapos/format.py
View file @
322bea2b
...
...
@@ -137,7 +137,11 @@ def callAndRead(argument_list, raise_on_error=True):
def
isGlobalScopeAddress
(
a
):
"""Returns True if a is global scope IP v4/6 address"""
ip
=
netaddr
.
IPAddress
(
a
)
return
not
ip
.
is_link_local
()
and
not
ip
.
is_loopback
()
and
\
if
sys
.
platform
==
'cygwin'
:
scope
=
ip
.
is_link_local
()
else
:
scope
=
not
ip
.
is_link_local
()
return
scope
and
not
ip
.
is_loopback
()
and
\
not
ip
.
is_reserved
()
and
ip
.
is_unicast
()
...
...
@@ -893,6 +897,9 @@ class Interface(object):
an address with.
"""
# Getting one address of the interface as base of the next addresses
if
sys
.
platform
==
'cygwin'
and
addr
and
addr
.
startswith
(
'fe80:'
):
# link-local addresses are added by linux/windows
return
{
'addr'
:
addr
,
'netmask'
:
netmask
}
if
self
.
ipv6_interface
:
interface_name
=
self
.
ipv6_interface
else
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment