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
1875e778
Commit
1875e778
authored
Mar 31, 2022
by
Léo-Paul Géneau
👾
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Config.py: return vrfs as a tuple
Return a tuple for vrfs instead of a list
parent
efbb7b0c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
pimdm/Config.py
pimdm/Config.py
+1
-1
pimdm/Run.py
pimdm/Run.py
+1
-1
No files found.
pimdm/Config.py
View file @
1875e778
...
...
@@ -194,4 +194,4 @@ def get_vrfs(file_path):
data
=
yaml
.
load
(
f
,
Loader
=
yaml
.
FullLoader
)
multicast_vrf
=
data
.
get
(
"MulticastVRF"
,
0
)
unicast_vrf
=
data
.
get
(
"UnicastVRF"
,
254
)
return
[
multicast_vrf
,
unicast_vrf
]
return
multicast_vrf
,
unicast_vrf
pimdm/Run.py
View file @
1875e778
...
...
@@ -217,7 +217,7 @@ def main():
try
:
from
pimdm
import
Config
args
.
config
[
0
]
=
os
.
path
.
abspath
(
args
.
config
[
0
])
[
pim_globals
.
MULTICAST_TABLE_ID
,
pim_globals
.
UNICAST_TABLE_ID
]
=
Config
.
get_vrfs
(
args
.
config
[
0
])
pim_globals
.
MULTICAST_TABLE_ID
,
pim_globals
.
UNICAST_TABLE_ID
=
Config
.
get_vrfs
(
args
.
config
[
0
])
daemon
=
MyDaemon
(
pim_globals
.
DAEMON_PROCESS_FILE
.
format
(
pim_globals
.
MULTICAST_TABLE_ID
))
if
not
daemon
.
is_running
():
...
...
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