Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.package
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
Xiaowu Zhang
slapos.package
Commits
4e7f78e8
Commit
4e7f78e8
authored
Jul 25, 2017
by
Rafael Monnerat
👻
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
playbook: Draft for the BGP Configuration for HE
parent
05dd7f44
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
133 additions
and
0 deletions
+133
-0
playbook/he-bgp.yml
playbook/he-bgp.yml
+12
-0
playbook/roles/he-quagga/files/bgpd.conf
playbook/roles/he-quagga/files/bgpd.conf
+35
-0
playbook/roles/he-quagga/files/daemons
playbook/roles/he-quagga/files/daemons
+32
-0
playbook/roles/he-quagga/files/vtysh.conf
playbook/roles/he-quagga/files/vtysh.conf
+7
-0
playbook/roles/he-quagga/files/zebra.conf
playbook/roles/he-quagga/files/zebra.conf
+25
-0
playbook/roles/he-quagga/handlers/main.yml
playbook/roles/he-quagga/handlers/main.yml
+4
-0
playbook/roles/he-quagga/meta/main.yml
playbook/roles/he-quagga/meta/main.yml
+3
-0
playbook/roles/he-quagga/tasks/main.yml
playbook/roles/he-quagga/tasks/main.yml
+15
-0
No files found.
playbook/he-bgp.yml
0 → 100644
View file @
4e7f78e8
-
name
:
a play that runs entirely on the ansible host
hosts
:
127.0.0.1
connection
:
local
vars_prompt
:
-
name
:
"
local_ipv4"
prompt
:
"
When
finish
we
please
update
the
/etc/quagga/bgpd.conf."
private
:
no
roles
:
-
he-quagga
playbook/roles/he-quagga/files/bgpd.conf
0 → 100644
View file @
4e7f78e8
! -*-
bgp
-*-
!
!
BGPd
grandenet
configuratin
file
!
!
UPDATE
ALL
XXX
hostname
bgpd
password
zebra
!
enable
password
please
-
set
-
at
-
here
!
!
bgp
mulitple
-
instance
!
router
bgp
XXX
no
bgp
default
ipv4
-
unicast
bgp
log
-
neighbor
-
changes
neighbor
upstream
peer
-
group
neighbor
upstream
remote
-
as
6939
neighbor
upstream
update
-
source
XXX
!
address
-
family
ipv6
network
XXX
neighbor
upstream
activate
neighbor
upstream
remove
-
private
-
AS
neighbor
upstream
prefix
-
list
pl
-
transit
-
64
-
v6i
in
neighbor
upstream
prefix
-
list
pl
-
XXX
-
v6
-
to
-
upstream
out
neighbor
XXX
peer
-
group
upstream
exit
-
address
-
family
!
ipv6
prefix
-
list
pl
-
transit
-
64
-
v6i
deny
any
!
ipv6
prefix
-
list
pl
-
XXX
-
v6
-
to
-
upstream
permit
XXX
ipv6
prefix
-
list
pl
-
XXX
-
v6
-
to
-
upstream
deny
any
!
log
file
/
var
/
log
/
quagga
/
bgpd
.
log
!
!
log
stdout
playbook/roles/he-quagga/files/daemons
0 → 100644
View file @
4e7f78e8
# This file tells the quagga package which daemons to start.
#
# Entries are in the format: <daemon>=(yes|no|priority)
# 0, "no" = disabled
# 1, "yes" = highest priority
# 2 .. 10 = lower priorities
# Read /usr/share/doc/quagga/README.Debian for details.
#
# Sample configurations for these daemons can be found in
# /usr/share/doc/quagga/examples/.
#
# ATTENTION:
#
# When activation a daemon at the first time, a config file, even if it is
# empty, has to be present *and* be owned by the user and group "quagga", else
# the daemon will not be started by /etc/init.d/quagga. The permissions should
# be u=rw,g=r,o=.
# When using "vtysh" such a config file is also needed. It should be owned by
# group "quaggavty" and set to ug=rw,o= though. Check /etc/pam.d/quagga, too.
#
# The watchquagga daemon is always started. Per default in monitoring-only but
# that can be changed via /etc/quagga/debian.conf.
#
vtysh_enable=yes
zebra=yes
bgpd=yes
ospfd=no
ospf6d=no
ripd=no
ripngd=no
isisd=no
babeld=no
playbook/roles/he-quagga/files/vtysh.conf
0 → 100644
View file @
4e7f78e8
!
!
Sample
configuration
file
for
vtysh
.
!
service
integrated
-
vtysh
-
config
!
hostname
quagga
-
router
username
root
nopassword
!
playbook/roles/he-quagga/files/zebra.conf
0 → 100644
View file @
4e7f78e8
! -*-
zebra
-*-
!
!
zebra
sample
configuration
file
!
! $
Id
:
zebra
.
conf
.
sample
,
v
1
.
1
2002
/
12
/
13
20
:
15
:
30
paul
Exp
$
!
hostname
Router
password
zebra
enable
password
zebra
!
!
Interface
'
s
description
.
!
!
interface
lo
!
description
test
of
desc
.
!
!
interface
sit0
!
multicast
!
!
Static
default
route
sample
.
!
!
ip
route
0
.
0
.
0
.
0
/
0
203
.
181
.
89
.
241
!
log
file
/
var
/
log
/
quagga
/
zebra
.
log
playbook/roles/he-quagga/handlers/main.yml
0 → 100644
View file @
4e7f78e8
---
-
name
:
restart re6stnet
service
:
name=re6stnet state=restarted
playbook/roles/he-quagga/meta/main.yml
0 → 100644
View file @
4e7f78e8
---
dependencies
:
-
{
role
:
package
,
package_name
:
quagga
,
package_state
:
present
}
playbook/roles/he-quagga/tasks/main.yml
0 → 100644
View file @
4e7f78e8
-
name
:
Check if configuration exists already
stat
:
path=/etc/re6stnet/re6stnet.conf
register
:
re6stnet_conf
-
lineinfile
:
dest=/etc/re6stnet/re6stnet.conf line='gateway' state=present
notify
:
restart re6stnet
when
:
re6stnet_conf.stat.exists == True
-
name
:
copy templates
copy
:
src={{ item }} dest=/etc/quagga/{{ item }} mode=660
with_items
:
-
bgpd.conf
-
daemons
-
vtysh.conf
-
zebra.conf
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