summaryrefslogtreecommitdiffhomepage
path: root/test/scenario_test
diff options
context:
space:
mode:
authorISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>2015-03-27 16:44:46 +0000
committerISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>2015-03-29 14:24:54 +0000
commit66b0bf2568a894909c4e839b60aa06983ca8f601 (patch)
tree16696e2918c2f42617204e73eda33b9b8e871196 /test/scenario_test
parentd00b3f3ed164582642768f24b604c34305902f83 (diff)
scenario_test: enable debug logging for quagga
Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
Diffstat (limited to 'test/scenario_test')
-rw-r--r--test/scenario_test/quagga-rsconfig.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/scenario_test/quagga-rsconfig.go b/test/scenario_test/quagga-rsconfig.go
index 49fd24ea..a7ed661c 100644
--- a/test/scenario_test/quagga-rsconfig.go
+++ b/test/scenario_test/quagga-rsconfig.go
@@ -50,6 +50,10 @@ func (qt *QuaggaConfig) IPv4Config() *bytes.Buffer {
buf.WriteString(fmt.Sprintf("network %s%d%s\n", baseNeighborNetwork["IPv4"], qt.id, baseNeighborNetMask["IPv4"]))
buf.WriteString(fmt.Sprintf("neighbor %s remote-as %d\n", qt.serverIP, qt.gobgpConfig.As))
buf.WriteString(fmt.Sprintf("neighbor %s password %s\n", qt.serverIP, qt.config.AuthPassword))
+ buf.WriteString("debug bgp as4\n")
+ buf.WriteString("debug bgp fsm\n")
+ buf.WriteString("debug bgp updates\n")
+ buf.WriteString("debug bgp events\n")
buf.WriteString("log file /var/log/quagga/bgpd.log\n")
return buf
@@ -75,6 +79,10 @@ func (qt *QuaggaConfig) IPv6Config() *bytes.Buffer {
buf.WriteString("route-map IPV6-OUT permit 10\n")
buf.WriteString("match ipv6 address prefix-list pl-ipv6\n")
buf.WriteString(fmt.Sprintf("set ipv6 next-hop global %s\n", qt.config.NeighborAddress))
+ buf.WriteString("debug bgp as4\n")
+ buf.WriteString("debug bgp fsm\n")
+ buf.WriteString("debug bgp updates\n")
+ buf.WriteString("debug bgp events\n")
buf.WriteString("log file /var/log/quagga/bgpd.log\n")
return buf