Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
FoD
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
David Schmitz
FoD
Commits
405d53e8
Commit
405d53e8
authored
3 years ago
by
David Schmitz
Browse files
Options
Downloads
Patches
Plain Diff
fix for broken deactivate of IPv6 rules
parent
af519784
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
flowspec/tasks.py
+4
-1
4 additions, 1 deletion
flowspec/tasks.py
with
4 additions
and
1 deletion
flowspec/tasks.py
+
4
−
1
View file @
405d53e8
...
...
@@ -210,10 +210,13 @@ def announce(messg, user, route):
net
=
ip_network
(
network
)
logger
.
info
(
"
ANNOUNCE check ip
"
+
str
(
ip_network
(
route
.
destination
))
+
str
(
type
(
ip_network
(
route
.
destination
)))
+
"
in net
"
+
str
(
net
)
+
str
(
type
(
net
)))
# check if the target is a subnet of peer range (python3.6 doesn't have subnet_of())
if
tgt_net
.
network_address
>=
net
.
network_address
and
tgt_net
.
broadcast_address
<=
net
.
broadcast_address
:
try
:
if
tgt_net
.
network_address
>=
net
.
network_address
and
tgt_net
.
broadcast_address
<=
net
.
broadcast_address
:
username
=
peer
.
peer_tag
logger
.
info
(
"
ANNOUNCE found peer
"
+
str
(
username
))
break
except
TypeError
:
pass
messg
=
str
(
messg
)
logger
.
info
(
"
ANNOUNCE
"
+
messg
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment