summaryrefslogtreecommitdiffhomepage
AgeCommit message (Collapse)Author
2015-06-21gomrt: add mrt packet libraryISHIDA Wataru
currently TABLE_DUMPV2 and BGP4MP message is supported Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
2015-06-20packet: make routeFamilyPrefix public and give a better nameISHIDA Wataru
Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
2015-06-20packet: make getPathAttribute publicISHIDA Wataru
we use this function later in mrt code Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
2015-06-20packet: flag down BGP_ATTR_FLAG_PARTIAL when validating flagsISHIDA Wataru
BGP_ATTR_FLAG_PARTIAL flag can be set even for the valid path attributes. Nessesary validation related to BGP_ATTR_FLAG_PARTIAL is all done before here. Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
2015-06-20packet: handle RF_IPV4_MC, RF_IPV6_MC cases in routeFamilyPrefix()ISHIDA Wataru
Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
2015-06-20packet: make debug message more helpfulISHIDA Wataru
Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
2015-06-20packet: store path attr flag as type BGPAttrFlagISHIDA Wataru
also add more meaningful debug message to ValidateFlags() Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
2015-06-20packet: gofmtISHIDA Wataru
Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
2015-06-18scenario_test: check gobgp container before remove in its preparationHiroshi Yokoi
2015-06-17docs: update cli-command-syntax.mdNaoto Hanaue
2015-06-17cli: add community subcommand to policy conditions and actionsNaoto Hanaue
2015-06-16cli: add aspath subcommand to policy conditionsNaoto Hanaue
2015-06-16cli: fix cli of policyNaoto Hanaue
- fix bug that del all command can not be used - fix bug that can enter the option of conditions other than add subcommand - fix bug that can not enter the option of actions in the routepolicy (add) subcommand - chenge syntax of routepolicy (add) subcommand aggregate the option flags of conditions and actions + before % gobgp routepolicy add <policy> <statement name> conditions [<option flags of conditions> ...] % gobgp routepolicy add <policy> <statement name> actions [<option flags of actions> ...] + after % gobgp routepolicy add <policy> <statement name> [<option flags of conditions and actions>...]
2015-06-16cli: aggregate grpc communication interface associated with the policy to ↵Naoto Hanaue
api.policyDefinition
2015-06-16cli: add a flag to generate bash completion fileISHIDA Wataru
generate bash completion file by $ gobgp -c We have to work more to generate more useful completion file automatically. Currently generated completion file can't complement dynamic commands e.g. gobgp neighbor <peer ip addr> local -a ipv6 <peer ip addr> is a dynamic command. Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
2015-06-16cli: use github.com/spf13/cobra instead of github.com/jessevdk/go-flagsISHIDA Wataru
Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
2015-06-16server: check if local table exists for a neighborISHIDA Wataru
Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
2015-06-16server: add error handling for grpcISHIDA Wataru
Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
2015-06-12scenario_test: fix doesn't execute 'go build' and 'go get' if you don't ↵Naoto Hanaue
specify the use-local option
2015-06-10scenario_test: execute the cli command using the docker exec in testNaoto Hanaue
2015-06-10doc: fix indentationHiroshi Yokoi
2015-06-10doc: revise chart structureNaoto Hanaue
2015-06-10doc: add document for BgpConditions and BgpActionsHiroshi Yokoi
2015-06-10scenario_test: use docker stopHiroshi Yokoi
2015-06-10scenario_test: fix malformed testNaoto Hanaue
2015-06-10server: avoid to be blocked due to accepted conn passingFUJITA Tomonori
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2015-06-10server: use write deadlineFUJITA Tomonori
Seems that write() is blocked forever when a connection is not cleanly closed. Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2015-06-10server: clean up sendMessageloopFUJITA Tomonori
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2015-06-10server: server goroutin can't access to outstanding directlyFUJITA Tomonori
This could lead to a deadlock. Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2015-06-09server: kill peerMsgFUJITA Tomonori
Peers send and receive messages via channels, which could lead to a deadlock. With this patch, multiple goroutines are used for network I/Os per peer but one goroutine handle all ribs (including the global rib). So there is no messages via channels between peers. Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2015-06-09scenario_test: build gobgp only at the beginning of the policy scenario testHiroshi Yokoi
2015-06-09packet: fix labelDecodeSoramichi Akiyama
2015-06-09packet: fix PathAttributeAs4Aggregator serializationSoramichi Akiyama
2015-06-09scenario_test: remove code to get the latest exabgpHiroshi Yokoi
2015-06-04packet: fix IPAddressAS RD serializationSoramichi Akiyama
2015-06-02path: stop checking AS length in the AS4_PATH attributeHiroshi Yokoi
2015-06-02packet: return aspath length based on the segment type.Hiroshi Yokoi
2015-06-01cli: fix AS_PATH string formatHiroshi Yokoi
2015-05-28cli: change structure of the source fileNaoto Hanaue
split gobgp/main.go to main.go,global.go,neighbor.go,policy.go and common.go.
2015-05-27policy: fix wrong reference to the modified pathHiroshi Yokoi
2015-05-27scenario_test: add policy test cases for new action and conditionsHiroshi Yokoi
2015-05-27server: fix File() misuse for md5 setsockoptFUJITA Tomonori
Fixed TCPListener.File() misuse. Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2015-05-26server: fix File() misuse for syscall's setsockoptFUJITA Tomonori
We use TCPConn.File() for syscal.SetsockoptInt but File() sets the underlying os.File to blocking mode and returns a copy. It's not what we don't want. Instead, we access to private members with reflect... Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2015-05-26docs: add update docs about the new CLI syntaxNaoto Hanaue
2015-05-26cli: update bash_completion for commands of policyNaoto Hanaue
2015-05-26cli: add the add/del commands to policy of neighborNaoto Hanaue
% gobgp -u 10.0.255.1 neighbor 10.0.0.3 policy DefaultImportPolicy: ACCEPT DefaultExportPolicy: ACCEPT ImportPolicies: PolicyName policy1: StatementName st0: Conditions: PrefixSet: ps2 192.168.20.0/24 NeighborSet: ns0 10.0.0.2 10.0.0.3 AsPathLength: eq 5 MatchOption: ALL Actions: ACCEPT ExportPolicies: % gobgp -u 10.0.255.1 neighbor 10.0.0.3 policy add export policy0 reject % gobgp -u 10.0.255.1 neighbor 10.0.0.3 policy del import % gobgp -u 10.0.255.1 neighbor 10.0.0.3 policy DefaultImportPolicy: ACCEPT DefaultExportPolicy: REJECT ImportPolicies: ExportPolicies: PolicyName policy0: StatementName st0: Conditions: PrefixSet: ps0 192.168.0.0/16 16..24 NeighborSet: ns2 10.0.0.4 AsPathLength: MatchOption: ALL Actions: REJECT
2015-05-26cli: add the add/del commands to routepolicyNaoto Hanaue
% gobgp -u 10.0.255.1 policy routepolicy PolicyName policy0: StatementName st0: Conditions: PrefixSet: ps0 192.168.0.0/16 16..24 NeighborSet: ns2 10.0.0.4 AsPathLength: MatchOption: ALL Actions: REJECT % gobgp -u 10.0.255.1 policy routepolicy add policy1 st0 conditions --prefix ps2 --neighbor ns0 --aspath-len eq,5 --option all % gobgp -u 10.0.255.1 policy routepolicy add policy1 st0 actions --route-action accept % gobgp -u 10.0.255.1 policy routepolicy del policy0 % gobgp -u 10.0.255.1 policy routepolicy PolicyName policy1: StatementName st0: Conditions: PrefixSet: ps2 192.168.20.0/24 NeighborSet: ns0 10.0.0.2 10.0.0.3 AsPathLength: eq 5 MatchOption: ALL Actions: ACCEPT
2015-05-26cli: add the add/del commands to neighbor conditionNaoto Hanaue
% gobgp -u 10.0.255.1 policy neighbor Name Address ns0 10.0.0.2 10.0.0.3 ns1 2001::192:168:0:2 % gobgp -u 10.0.255.1 policy neighbor add ns2 10.0.0.4 % gobgp -u 10.0.255.1 policy neighbor del ns1 % gobgp -u 10.0.255.1 policy neighbor Name Address ns0 10.0.0.2 10.0.0.3 ns2 10.0.0.4
2015-05-21policy: support community actionHiroshi Yokoi
2015-05-20config: change SetCommunity.Options's type to stringHiroshi Yokoi