20200618_jeffrey - silenceuncrio/diary GitHub Wiki

0900

處理 m300 送 sample 後的客戶問題

1300

M360P - task - [0%] P1 - Status of route learned through BGP

commit 6bd70f20fb303278ab407476aff55b251c6d053e
Author: jeffrey <[email protected]>
Date:   Thu Jun 18 13:48:55 2020 +0800

    first step of bgp status route
    - all in bgp.cgi

 proscend/prosrc/icos/include/module_bgp.h | 108 +++++++
 proscend/prosrc/icos/vty/vty.c            |  33 +-
 proscend/prosrc/webcgi/bgp.c              | 488 ++++++++++++++++++++++++++++++
 3 files changed, 626 insertions(+), 3 deletions(-)

1400

isms meeting

  • get set page 優先做

1500

M360P - task - [0%] P1 - Status of route learned through BGP

vty telnet zebra 後 show ip route 時

recv() 都會提早因沒把 buffer 收滿導致沒把 zebra 目前的 route book 讀完

commit 8bb5c2758ee96eebd63342cc8b636c35aeedcfe7
Author: jeffrey <[email protected]>
Date:   Thu Jun 18 16:32:36 2020 +0800

    solve the problem at vty when issue TxCommand("show ip route\n")

    when the route book is big, for ex: 1k
    the RxCommand after TxCommand("show ip route\n") can not rx the total book at one shot
    so we need to check the "aspect last line" of TxCommand("show ip route\n")
    if not the last line yet, continue TxCommand("\n") and rx again and again until the last line

 proscend/prosrc/icos/include/module_bgp.h |   2 +-
 proscend/prosrc/icos/vty/vty.c            | 116 +++++++++++++++++++++++++++---
 2 files changed, 106 insertions(+), 12 deletions(-)

commit 1feab4b137e801b19b7c43b89457eb219837bf67
Refs: [hotfix/v1.08], {origin/hotfix/v1.08}
Author: jeffrey <[email protected]>
Date:   Thu Jun 18 17:14:34 2020 +0800

    move the related implementation about bgp status route from cgi to icos

 proscend/prosrc/icos/icoslib/bgp/bgp.c | 260 +++++++++++++++++++++++++++++++--
 proscend/prosrc/webcgi/bgp.c           |   8 +-
 2 files changed, 252 insertions(+), 16 deletions(-)