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
A prog2-höz tartozó friss repo anyagok itt elérhetőek:
https://git.iit.bme.hu/
Commit
6c7d18f8
authored
Jan 20, 2015
by
Oliver Pinter
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix ipv6 address setup
parent
279d5b75
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
+1
-1
freebsd/network.py
+1
-1
No files found.
freebsd/network.py
View file @
6c7d18f8
...
...
@@ -57,7 +57,7 @@ def change_ip_freebsd(interfaces, dns):
alias
=
'_alias
%
d'
%
(
ipv6_alias_counter
-
1
)
ipv6_alias_counter
+=
1
f
.
write
(
"ifconfig_"
+
device
+
alias
+
"="
+
"
\"
inet6
%(ip)
s prefix
%(pref)
s
\"\n
"
%
{
'ip'
:
ip
,
'pref'
:
prefixlen
})
"
\"
inet6
%(ip)
s prefix
len
%(pref)
s
\"\n
"
%
{
'ip'
:
ip
,
'pref'
:
prefixlen
})
route6_name
=
device
+
"R"
+
str
(
ipv6_alias_counter
)
+
"v6"
route6
+=
route6_name
+
":"
+
device
+
" "
f
.
write
(
"route_"
+
route6_name
+
"=
\"
-net
%(netw)
s0 -gateway
%(gw)
s
\"\n
"
%
{
'netw'
:
ip_with_prefix
.
network
,
'gw'
:
conf
[
'gw6'
]})
...
...
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