Created
May 26, 2015 23:12
-
-
Save wrgeorge1983/9e49a4c7f1412963e617 to your computer and use it in GitHub Desktop.
riverbed scratch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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