Skip to content

Instantly share code, notes, and snippets.

@wrgeorge1983
Created May 26, 2015 23:12
Show Gist options
  • Save wrgeorge1983/9e49a4c7f1412963e617 to your computer and use it in GitHub Desktop.
Save wrgeorge1983/9e49a4c7f1412963e617 to your computer and use it in GitHub Desktop.
riverbed scratch
rslt = rb.Execute('show interface', trim=False, timeout=5)
time.sleep(5)
rslt += rb.bufferflush()
entries = rslt.split('\r\nInterface')[1:]
ifaces = []
for entry in entries:
entry_dict = dict()
entry = entry.splitlines()
entry_dict['Name'] = entry.pop(0).split()[0]
for line in entry:
k, v =
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment