>>> output = vyos.run_op_mode_command("show ip bgp summary")
>>> output
' show ip bgp summary\r\n\x1b[?1h\x1b=\r\x1b[m\r\nIPv4 Unicast Summary:\x1b[m\r\nBGP router identifier 10.0.10.2, local AS number 1 vrf-id 0\x1b[m\r\nBGP table version 0\x1b[m\r\nRIB entries 0, using 0 bytes of memory\x1b[m\r\nPeers 4, using 82 KiB of memory\x1b[m\r\nPeer groups 1, using 64 bytes of memory\x1b[m\r\n\x1b[m\r\nNeighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/P\x1b[m \x08fxRcd\x1b[m\r\n10.20.30.40 4 3 0 0 0 0 0 never A\x1b[m \x08ctive\x1b[m\r\n10.10.10.10 4 2 0 0 0 0 0 never A\x1b[m \x08ctive\x1b[m\r\n192.168.0.1 4 1 0 0 0 0 0 never A\x1b[m \x08ctive\x1b[m\r\n192.168.0.2 4 6 0 0 0 0 0 never A\x1b[m \x08ctive\x1b[m\r\n\x1b[m\r\nTotal number of neighbors 4\x1b[m\r\n\r\x1b[K\x1b[?1l\x1b>'
>>> print(output)
show ip bgp summary
IPv4 Unicast Summary:
BGP router identifier 10.0.10.2, local AS number 1 vrf-id 0
BGP table version 0
RIB entries 0, using 0 bytes of memory
Peers 4, using 82 KiB of memory
Peer groups 1, using 64 bytes of memory
Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd