holo routingを動かす(2)

前回の続きでholo-cliでOSPFの状態を見てみました。 holo-cli -c "show state xpath /ietf-routing:routing/control-plane-protocols" root@rt1:/# holo-cli -c "show state xpath /ietf-routing:routing/control-plane-protocols" { "ietf-routing:routing": { "control-plane-protocols": { "control-plane-protocol": [ { "type": "ietf-bfd-types:bfdv1", "name": "main", "ietf-bfd:bfd": { "summary": { "number-of-sessions": 0, "number-of-sessions-up": 0, "number-of-sessions-down": 0, "number-of-sessions-admin-down": 0 }, "ietf-bfd-ip-mh:ip-mh": { "summary": { "number-of-sessions": 0, "number-of-sessions-up": 0, "number-of-sessions-down": 0, "number-of-sessions-admin-down": 0 } }, "ietf-bfd-ip-sh:ip-sh": { "summary": { "number-of-sessions": 0, "number-of-sessions-up": 0, "number-of-sessions-down": 0, "number-of-sessions-admin-down": 0 } } } }, { "type": "ietf-ospf:ospfv2", "name": "main", "ietf-ospf:ospf": { "spf-control": { "ietf-spf-delay": { "current-state": "quiet", "remaining-time-to-learn": "not-set", "remaining-hold-down": "not-set", "last-event-received": 5381664, "last-spf-time": 5382164 } }, "router-id": "1....

December 31, 2023

holo routingを動かす

最近知ったholo routing. rustで書かれたルーティングスイートである. build とりあえずbuildしてみよう。 https://github.com/holo-routing/holo/blob/master/INSTALL.md を参考にソースコードを取得して、 $ git clone https://github.com/holo-routing/holo.git # apt-get install build-essential cmake libpcre2-dev protobuf-compiler $ cd holo/ $ cargo build --release を行うとyang関連で失敗します。よく読むと、 Holo uses unstable Rust features, so building it from the source code requires a nightly version of the Rust compiler. と書いてありnightlyにしないといけないようです。 https://qiita.com/object-kazuAtGitHub/items/a24cc8a833f4663ad4b2 の記事を参考にnightlyの環境を作ります。 rustup update rustup override set nightly rustup self update rustup update nightly これを行った後に、cargo build --releaseを再度行ったところコンパイルが出来ました。作成されたファイルを見てみるとどうやらholodとholo-cliというバイナリができてます。Zebra/Quagga/FRRみたいにプロトコル毎にプロセスが分かれないんですね。1プロセスで動作するという意味でコンテナ向きだけど、複数組み合わせて動くマイクロサービス感はない。 ls holo/target/release/ build deps examples holo-cli holo-cli....

December 30, 2023