Pybird. ¼øÀ§ ¹× ¿ä¾à
- °Ô½ÃÀÚ À¥»çÀÌÆ®:
- http://solidlinks.nl
Pybird. ű×
Pybird. ¼³¸í
Bird ÀÎÅÍÆäÀ̽º Çڵ鷯 Python Pybird´Â »õ ÀÎÅÍ³Ý ¶ó¿ìÆà µ¥¸óÀÇ UNIX ÄÁÆ®·Ñ ¼ÒÄÏ¿¡ ´ëÇÑ ÆÄÀ̽ã ÀÎÅÍÆäÀ̽º·Î ¼ÒÄÏ ¿¬°áÀ» ó¸®ÇÏ°í Ãâ·ÂÀ» ±¸¹® ºÐ¼®ÇÏ°í ÇöÀç »óŸ¦ »ç¿ëÇÏ¿© ƯÁ¤ ¶Ç´Â ¸ðµç BGP ÇǾîÀÇ »óŸ¦ Äõ¸®ÇÏ´Â µ¥ »ç¿ëÇÒ ¼ö ÀÖ½À´Ï´Ù >>>¿¡¼ Pybird Import Pybird >>> Pybird = Pybird (socket_file = '/ var / run / bird.ctl') >>> peer_state = pybird.get_peer_status ( 'kpn') >>> peer_state true >>> peer_state 4214 >>> peer_state dateTime.DateTime (2011, 6, 19, 19, 57, 0, 0) ÇǾî À̸§¾øÀÌ```get_peer_status ()```È£Ãâ ÇÒ ¼öµµ ÀÖ½À´Ï´Ù. arraywith ¸ðµç bgp peers.full ÇÊµå ¸ñ·ÏÀÌÀÖ´Â °æ¿ì : -``name`` : bird-`` ÇÁ·ÎÅäÄÝ "¿¡¼ ±¸¼ºµÈ À̸§ : ÇöÀç Ç×»ó"bgp "-````last_change`` : ¸¶Áö¸· »óÅ´Â``dateTime.DateTime`` °´Ã¼ -``state`` : ÇÇ¾î »óÅÂÀÇ ¹®ÀÚ¿ (¿¹ : "È®¸³ µÈ"¶Ç´Â "Æнúê"- ºÎ¿ï, ¼¼¼ÇÀÌ ¼³Á¤µÈ °æ¿ì true,`routes_imported`` : °¡Á®¿Â ·çÆ®ÀÇ ¼ö -`rutes_exported` : ³» º¸³½ °æ·Î ¼ö -``ruter_id`` : BGP ¶ó¿ìÅÍ IDAND :````°¡Á® ¿À±â, ³»º¸³»±â] _ _ ``Å×½ºÆ®¿¡¼ ¾î¶² Å×½ºÆ®¿¡¼ ÀÏ·ÃÀÇ Å×½ºÆ®°¡ Àִ°¡? Py``. ¿©±â¿¡´Â``mockbird`` : realunix ¼ÒÄÏ¿¡¼ µè´Â °íÁ¤µÇ¾úÁö¸¸ ½ÇÁ¦ ÀÀ´äÀ¸·Î °íÁ¤ µÈ »õ ÀνºÅϽº°¡ Æ÷ÇԵ˴ϴÙ. Áï, Å×½ºÆ®´Â ±¸¹® ºÐ¼®À» Å×½ºÆ® ÇÒ»Ó¸¸ ¾Æ´Ï¶ó SocketInteraction.SourceTe Source°¡ Bitbucket¿¡ º¸°üµË´Ï´Ù. http://bitbucket.org/erikr/pybird ¿ä±¸ »çÇ× : ¡¤ ÆÄÀ̽ã
Pybird. °ü·Ã ¼ÒÇÁÆ®¿þ¾î