added more messages to ospf mdr invoke install

This commit is contained in:
Blake Harnden 2020-07-10 09:20:13 -07:00
parent 7dd2b66680
commit 51200cf930

View file

@ -101,15 +101,17 @@ def install_ospf_mdr(c: Context, os_info: OsInfo, hide: bool) -> None:
if c.run("which zebra", warn=True, hide=hide): if c.run("which zebra", warn=True, hide=hide):
print("quagga already installed, skipping ospf mdr") print("quagga already installed, skipping ospf mdr")
return return
print("installing ospf mdr...") print("installing ospf mdr dependencies...")
if os_info.like == OsLike.DEBIAN: if os_info.like == OsLike.DEBIAN:
c.run("sudo apt install -y libtool gawk libreadline-dev", hide=hide) c.run("sudo apt install -y libtool gawk libreadline-dev", hide=hide)
print("cloning ospf mdr...")
clone_dir = "/tmp/ospf-mdr" clone_dir = "/tmp/ospf-mdr"
c.run( c.run(
f"git clone https://github.com/USNavalResearchLaboratory/ospf-mdr {clone_dir}", f"git clone https://github.com/USNavalResearchLaboratory/ospf-mdr {clone_dir}",
hide=hide hide=hide
) )
with c.cd(clone_dir): with c.cd(clone_dir):
print("building ospf mdr...")
c.run("./bootstrap.sh", hide=hide) c.run("./bootstrap.sh", hide=hide)
c.run( c.run(
"./configure --disable-doc --enable-user=root --enable-group=root " "./configure --disable-doc --enable-user=root --enable-group=root "
@ -118,6 +120,7 @@ def install_ospf_mdr(c: Context, os_info: OsInfo, hide: bool) -> None:
hide=hide hide=hide
) )
c.run("make -j", hide=hide) c.run("make -j", hide=hide)
print("installing ospf mdr...")
c.run("sudo make install", hide=hide) c.run("sudo make install", hide=hide)