Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
N
nat44
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Code Review
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Svein Ove Undal
nat44
Commits
38a0e9cd
Commit
38a0e9cd
authored
Mar 20, 2020
by
Svein Ove Undal
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update nat44.py
parent
8ed34d48
Pipeline
#27123
failed with stages
in 2 minutes and 10 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
nat44.py
nat44.py
+3
-3
No files found.
nat44.py
View file @
38a0e9cd
...
...
@@ -11,8 +11,8 @@ def main(no_restart=False):
pkg_mannage
(
'install'
)
snmpd
()
if
snmp
and
snmp
.
upper
()
==
"TRUE"
:
snmp
()
netflow
()
create_if_files
()
...
...
@@ -210,7 +210,7 @@ def restartAndTest():
for
IF
in
iIF
.
split
():
shell
(
"ifdown {0}; ifup {0}"
.
format
(
iIF
))
for
IF
in
eIF
.
split
():
shell
(
"ifdown {0}; ifup {0}"
.
format
(
eIF
))
if
multicast
and
multicast
.
upper
()
==
"TRUE"
:
shell
(
"ifdown
eth0:133; ifup eth0:133"
)
if
multicast
and
multicast
.
upper
()
==
"TRUE"
:
shell
(
"ifdown
{0}:133; ifup {0}:133"
.
format
(
eIF
)
)
shell
(
"/sbin/sysctl -p /etc/sysctl.conf"
)
if
dns_server
and
dns_server
.
upper
()
==
'TRUE'
:
shell
(
"service bind9 restart"
)
if
dhcp_server
and
dhcp_server
.
upper
()
==
'TRUE'
:
shell
(
"service isc-dhcp-server restart; service rsyslog restart"
)
...
...
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