Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
CIRCLE
/
agent
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
7
Merge Requests
0
Wiki
Members
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
12f99067
authored
Jan 20, 2015
by
Oliver Pinter
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
correcly set up default router in ipv6 case
parent
cccbba82
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
0 deletions
+1
-0
freebsd/network.py
+1
-0
No files found.
freebsd/network.py
View file @
12f99067
...
@@ -61,6 +61,7 @@ def change_ip_freebsd(interfaces, dns):
...
@@ -61,6 +61,7 @@ def change_ip_freebsd(interfaces, dns):
route6_name
=
device
+
"R"
+
str
(
ipv6_alias_counter
)
+
"v6"
route6_name
=
device
+
"R"
+
str
(
ipv6_alias_counter
)
+
"v6"
route6
+=
route6_name
+
":"
+
device
+
" "
route6
+=
route6_name
+
":"
+
device
+
" "
f
.
write
(
"route_"
+
route6_name
+
"=
\"
-net
%(netw)
s0 -gateway
%(gw)
s
\"\n
"
%
{
'netw'
:
ip_with_prefix
.
network
,
'gw'
:
conf
[
'gw6'
]})
f
.
write
(
"route_"
+
route6_name
+
"=
\"
-net
%(netw)
s0 -gateway
%(gw)
s
\"\n
"
%
{
'netw'
:
ip_with_prefix
.
network
,
'gw'
:
conf
[
'gw6'
]})
f
.
write
(
"ipv6_defaultrouter=
\"
"
+
str
(
conf
[
'gw6'
])
+
"
\"\n
"
)
else
:
else
:
if
ipv4_alias_counter
>
0
:
if
ipv4_alias_counter
>
0
:
# az aliasok szamanak folytonosnak kell lennie
# az aliasok szamanak folytonosnak kell lennie
...
...
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