forked from ThomasHabets/eggpd
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added 'send annoucement' event to eggpd_peer
- Loading branch information
1 parent
d4e4c39
commit 8bc17ed
Showing
3 changed files
with
41 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
Links | ||
----- | ||
http://www.ietf.org/rfc/rfc4271.txt | ||
http://en.wikipedia.org/wiki/Border_Gateway_Protocol | ||
|
||
|
||
Cut-and-paste stuff | ||
------------------- | ||
lc([eggpd_peer]),ReloadAll(). | ||
|
||
After startup, set up a peer: | ||
{ok,P}=eggpd_peer_sup:add_peer("192.168.42.4"). | ||
|
||
Announce two nets: | ||
gen_fsm:send_event(P, {send_announce, | ||
[{as_path, {as_sequence, [1,2,3]}}, | ||
{next_hop, 16#01010101}, | ||
{origin, igp} | ||
], | ||
[{0,32}, | ||
{1,32}]}). | ||
|
||
|
||
f(S). {ok,{_, S}} = eggpd_rib:get_rib(), dict:fetch(ipv4, S). | ||
|
||
TODO | ||
---- | ||
* should each peer get its own sup, and kill its sup (thereby killing | ||
its own state)? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters