-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change-Id: I71a36da158153bd737ede867ce74b7b19de0f2a6 Reviewed-on: https://review.cloud.anr.ion.nokia.net/c/OpenStack/topology-collector/+/5102 Workflow: Vlad Gridin <[email protected]> Reviewed-by: Vlad Gridin <[email protected]> Tested-by: Vlad Gridin <[email protected]> (cherry picked from commit 2f7527a) Reviewed-on: https://review.cloud.anr.ion.nokia.net/c/OpenStack/topology-collector/+/5495
- Loading branch information
Vlad Gridin
committed
Nov 12, 2024
1 parent
f6cf199
commit d1969f8
Showing
2 changed files
with
32 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/usr/bin/python | ||
from netaddr import valid_ipv4 | ||
|
||
def ipv4(addr): | ||
return valid_ipv4(addr) | ||
|
||
class FilterModule(object): | ||
''' Query filter ''' | ||
|
||
def filters(self): | ||
return { | ||
'ipv4': ipv4, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters