Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
a
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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Yusei Tahara
a
Commits
5af7eb2c
Commit
5af7eb2c
authored
Feb 14, 2017
by
Yusei Tahara
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add a script to generate computer_definition.cfg for non-ipv6 slapproxy enironment.
parent
573a7f2f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
0 deletions
+16
-0
create_computer_definition.py
create_computer_definition.py
+16
-0
No files found.
create_computer_definition.py
0 → 100644
View file @
5af7eb2c
import
sys
a
=
"""
[partition_{i}]
address = 127.0.0.1/255.255.255.255 ::1/ffff:ffff:ffff:ffff::
network_interface = lo
user = slapuser{i}
pathname = slappart{i}"""
print
"""[computer]
address = ::1/ffff:ffff:ffff:ffff::"""
for
i
in
range
(
int
(
sys
.
argv
[
1
])):
print
a
.
format
(
i
=
i
)
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