Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
pim_dm
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
pim_dm
Commits
e71ebc1f
Commit
e71ebc1f
authored
Feb 14, 2022
by
Léo-Paul Géneau
👾
Committed by
GitHub
Feb 14, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Config.py: Add state_refresh support (#11)
parent
6454d350
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
config/config_example.yml
config/config_example.yml
+6
-0
pimdm/Config.py
pimdm/Config.py
+2
-2
No files found.
config/config_example.yml
View file @
e71ebc1f
...
...
@@ -15,18 +15,24 @@ PIM-DM:
eth0
:
ipv4
:
enabled
:
true
state_refresh
:
true
ipv6
:
enabled
:
true
state_refresh
:
true
eth1
:
ipv4
:
enabled
:
true
state_refresh
:
true
ipv6
:
enabled
:
true
state_refresh
:
true
eth2
:
ipv4
:
enabled
:
true
state_refresh
:
true
ipv6
:
enabled
:
true
state_refresh
:
true
IGMP
:
Settings
:
...
...
pimdm/Config.py
View file @
e71ebc1f
...
...
@@ -40,12 +40,12 @@ def parse_config_file(file_path):
if
if_value
.
get
(
"ipv4"
,
False
):
if_ipv4
=
if_value
[
"ipv4"
]
if
if_ipv4
.
get
(
"enabled"
,
False
):
Main
.
add_pim_interface
(
interface_name
=
if_name
,
ipv4
=
True
,
ipv6
=
False
)
Main
.
add_pim_interface
(
interface_name
=
if_name
,
state_refresh_capable
=
if_ipv4
.
get
(
"state_refresh"
,
False
),
ipv4
=
True
,
ipv6
=
False
)
if
if_value
.
get
(
"ipv6"
,
False
):
if_ipv6
=
if_value
[
"ipv6"
]
if
if_ipv6
.
get
(
"enabled"
,
False
):
Main
.
add_pim_interface
(
interface_name
=
if_name
,
ipv4
=
False
,
ipv6
=
True
)
Main
.
add_pim_interface
(
interface_name
=
if_name
,
state_refresh_capable
=
if_ipv6
.
get
(
"state_refresh"
,
False
),
ipv4
=
False
,
ipv6
=
True
)
##### IGMP config #######
...
...
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