Skip to content

Instantly share code, notes, and snippets.

@prideout
Last active December 1, 2015 05:49
Show Gist options
  • Save prideout/2939418 to your computer and use it in GitHub Desktop.
Save prideout/2939418 to your computer and use it in GitHub Desktop.
dump all files that a RIB touches
# prman -statsfile FOO.xml BAR.rib
from lxml import etree
root = etree.parse('stats.xml').getroot()
print root.xpath("//set[@name='fileLog']/member/text()")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment