diff options
Diffstat (limited to 'test/scenario_test/exabgp_test_conf')
8 files changed, 148 insertions, 8 deletions
diff --git a/test/scenario_test/exabgp_test_conf/gobgpd.conf b/test/scenario_test/exabgp_test_conf/gobgpd.conf index 31c37640..27da5ba7 100644 --- a/test/scenario_test/exabgp_test_conf/gobgpd.conf +++ b/test/scenario_test/exabgp_test_conf/gobgpd.conf @@ -73,6 +73,70 @@ EstablishedCount = 0 DroppedCount = 0 +[[NeighborList]] + NeighborAddress = "10.0.0.1" + PeerAs = 65001 + Description = "" + AuthPassword = "hoge1" + PeerType = 0 + RemovePrivateAs = 0 + RouteFlapDamping = false + [NeighborList.RouteSelectionOptions] + AlwaysCompareMed = false + IgnoreAsPathLength = false + ExternalCompareRouterId = false + AdvertiseInactiveRoutes = false + EnableAigp = false + [NeighborList.UseMultiplePaths] + [NeighborList.UseMultiplePaths.Ebgp] + AllowMultipleAs = false + MaximumPaths = 0 + [NeighborList.UseMultiplePaths.Ibgp] + MaximumPaths = 0 + [NeighborList.UseMultiplePaths.Eibgp] + MaximumPaths = 0 + [NeighborList.GracefulRestart] + RestartTime = 0 + StaleRoutesTime = 0.0 + [NeighborList.ApplyPolicy] + [NeighborList.Timers] + ConnectRetry = 0.0 + HoldTime = 0.0 + KeepaliveInterval = 0.0 + MinimumAdvertisementInterval = 0.0 + SendUpdateDelay = 0.0 + [NeighborList.EbgpMultihop] + MultihopTtl = 0 + [NeighborList.RouteReflector] + RouteReflectorClusterId = 0 + RouteReflectorClient = false + [NeighborList.BgpLoggingOptions] + LogNeighborStateChanges = false + [NeighborList.TransportOptions] + TcpMss = 0 + MtuDiscovery = false + PassiveMode = false + [NeighborList.BgpNeighborCommonState] + State = 0 + Uptime = 0001-01-01T00:00:00Z + OpenIn = 0 + OpenOut = 0 + UpdateIn = 0 + UpdateOut = 0 + UpdateRecvTime = 0001-01-01T00:00:00Z + KeepaliveIn = 0 + KeepaliveOut = 0 + NotifyIn = 0 + NotifyOut = 0 + RefreshIn = 0 + RefreshOut = 0 + DynamicCapIn = 0 + DynamicCapOut = 0 + TotalIn = 0 + TotalOut = 0 + EstablishedCount = 0 + DroppedCount = 0 + [Policy] [Policy.DefinedSets] [Policy.PolicyDefinitions] diff --git a/test/scenario_test/exabgp_test_conf/malformed1-exabgp-gobgp-v4-AS4_PATH.conf b/test/scenario_test/exabgp_test_conf/malformed1-exabgp-gobgp-v4-AS4_PATH.conf index 79502e78..b6b05cfd 100644 --- a/test/scenario_test/exabgp_test_conf/malformed1-exabgp-gobgp-v4-AS4_PATH.conf +++ b/test/scenario_test/exabgp_test_conf/malformed1-exabgp-gobgp-v4-AS4_PATH.conf @@ -11,8 +11,6 @@ neighbor 10.0.255.1 { inet unicast; } static { - route 172.16.13.0/24 next-hop 10.0.0.120; - route 192.168.100.100 next-hop 10.0.0.110; # malformed AS4_PATH route 10.7.0.17/32 next-hop 10.0.255.7 attribute [ 0x11 0x60 0x11223344 ]; } diff --git a/test/scenario_test/exabgp_test_conf/malformed1-exabgp-gobgp-v4-AS_PATH.conf b/test/scenario_test/exabgp_test_conf/malformed1-exabgp-gobgp-v4-AS_PATH.conf index a241c71f..46ab6da0 100644 --- a/test/scenario_test/exabgp_test_conf/malformed1-exabgp-gobgp-v4-AS_PATH.conf +++ b/test/scenario_test/exabgp_test_conf/malformed1-exabgp-gobgp-v4-AS_PATH.conf @@ -11,8 +11,6 @@ neighbor 10.0.255.1 { inet unicast; } static { - route 172.16.13.0/24 next-hop 10.0.0.120; - route 192.168.100.100 next-hop 10.0.0.110; # malformed AS_PATH route 10.7.0.2/32 next-hop 10.0.255.7 attribute [ 0x02 0x60 0x11223344 ]; } diff --git a/test/scenario_test/exabgp_test_conf/malformed1-exabgp-gobgp-v4-MP_REACH_NLRI.conf b/test/scenario_test/exabgp_test_conf/malformed1-exabgp-gobgp-v4-MP_REACH_NLRI.conf index 95ea6ba1..58cc3833 100644 --- a/test/scenario_test/exabgp_test_conf/malformed1-exabgp-gobgp-v4-MP_REACH_NLRI.conf +++ b/test/scenario_test/exabgp_test_conf/malformed1-exabgp-gobgp-v4-MP_REACH_NLRI.conf @@ -11,9 +11,7 @@ neighbor 10.0.255.1 { inet unicast; } static { - route 172.16.13.0/24 next-hop 10.0.0.120; - route 192.168.100.100 next-hop 10.0.0.110; - # malformed MP_UNREACH_NLRI - route 10.7.0.15/32 next-hop 10.0.255.7 attribute [ 0x0f 0x60 0x11223344 ]; + # malformed MP_REACH_NLRI + route 10.7.0.14/32 next-hop 10.0.255.7 attribute [ 0x0e 0x60 0x11223344 ]; } } diff --git a/test/scenario_test/exabgp_test_conf/malformed1-exabgp-gobgp-v4-MP_UNREACH_NLRI.conf b/test/scenario_test/exabgp_test_conf/malformed1-exabgp-gobgp-v4-MP_UNREACH_NLRI.conf new file mode 100644 index 00000000..7bd90117 --- /dev/null +++ b/test/scenario_test/exabgp_test_conf/malformed1-exabgp-gobgp-v4-MP_UNREACH_NLRI.conf @@ -0,0 +1,18 @@ +neighbor 10.0.255.1 { + router-id 192.168.0.7; + local-address 10.0.0.100; + local-as 65100; + peer-as 65000; + hold-time 90; + md5 "hoge100"; + graceful-restart; + + family { + inet unicast; + } + + static { + # malformed MP_UNREACH_NLRI + route 10.7.0.15/32 next-hop 10.0.255.7 attribute [ 0x0f 0x60 0x11223344 ]; + } +}
\ No newline at end of file diff --git a/test/scenario_test/exabgp_test_conf/malformed1-exabgp-gobgp-v4-NEXTHOP_INVALID.conf b/test/scenario_test/exabgp_test_conf/malformed1-exabgp-gobgp-v4-NEXTHOP_INVALID.conf new file mode 100644 index 00000000..1b689d2b --- /dev/null +++ b/test/scenario_test/exabgp_test_conf/malformed1-exabgp-gobgp-v4-NEXTHOP_INVALID.conf @@ -0,0 +1,28 @@ +group AS65070 { + neighbor 10.0.255.1 { + router-id 192.168.0.7; + local-address 10.0.0.100; + local-as 65100; + peer-as 65000; + hold-time 90; + md5 "hoge100"; + + family { + inet unicast; + } + + static { + route 10.0.0.7/32 { + # 0x0e: MP_REACH_NLRI + # 0x60: Optional, Transitive + # 0x01: AFI(IPv4) + # 0x01: SAFI(unicast) + # 0x10: Length of Next Hop Address + # 0xffffff00: Network address of Next Hop + # 0x00: Reserved + next-hop 10.0.255.7; + attribute [ 0x0e 0x60 0x010110ffffff0000 ]; + } + } + } +}
\ No newline at end of file diff --git a/test/scenario_test/exabgp_test_conf/malformed1-exabgp-gobgp-v4-ROUTE_FAMILY_INVALID.conf b/test/scenario_test/exabgp_test_conf/malformed1-exabgp-gobgp-v4-ROUTE_FAMILY_INVALID.conf new file mode 100644 index 00000000..fe52b0c2 --- /dev/null +++ b/test/scenario_test/exabgp_test_conf/malformed1-exabgp-gobgp-v4-ROUTE_FAMILY_INVALID.conf @@ -0,0 +1,29 @@ +group AS65070 { + neighbor 10.0.255.1 { + router-id 192.168.0.7; + local-address 10.0.0.100; + local-as 65100; + peer-as 65000; + hold-time 90; + md5 "hoge100"; + + family { + inet unicast; + } + + static { + route 10.0.0.7/32 next-hop 10.0.255.7 attribute [ 0x0e 0x60 0x0002011020010db800000000000000000000000100 ]; + #route 10.0.0.7/32 { + # 0x0e: MP_REACH_NLRI + # 0x60: Optional, Transitive + # 0x01: AFI(IPv4) + # 0x01: SAFI(unicast) + # 0x10: Length of Next Hop Address + # 0xffffff00: Network address of Next Hop + # 0x00: Reserved + #next-hop 10.0.255.7; + #attribute [ 0x0e 0x60 0x0002011020010db800000000000000000000000100 ]; + #} + } + } +}
\ No newline at end of file diff --git a/test/scenario_test/exabgp_test_conf/quagga.conf b/test/scenario_test/exabgp_test_conf/quagga.conf new file mode 100644 index 00000000..03f43202 --- /dev/null +++ b/test/scenario_test/exabgp_test_conf/quagga.conf @@ -0,0 +1,7 @@ +hostname bgpd +password zebra +router bgp 65001 +bgp router-id 192.168.0.1 +network 192.168.1.0/24 +neighbor 10.0.255.1 remote-as 65000 +neighbor 10.0.255.1 password hoge1
\ No newline at end of file |