Skip to content

Instantly share code, notes, and snippets.

View bewing's full-sized avatar

bewing

View GitHub Profile
@bewing
bewing / eos.py
Last active March 14, 2017 15:25
napalm-eos testing woes
def get_static_rp_config(self):
"""get_static_rp_config implementation for EOS."""
vrf = py23_compat.text_type("default")
rp_config = {vrf: []}
pim_rp_config = self.device.run_commands(['show running-config | section ip pim rp-add'],
encoding='text')[0].get('output', None)
for line in pim_rp_config.splitlines():
vrf_match = self._RE_PIM_VRF.search(line)
if vrf_match:
vrf = py23_compat.text_type(vrf_match.group('vrf'))

Keybase proof

I hereby claim:

  • I am bewing on github.
  • I am bewing (https://keybase.io/bewing) on keybase.
  • I have a public key ASD_pedQ8Eh9akWxeDWGbU8CE6TRVLvzdOJ8MtRjLnKxQQo

To claim this, I am signing this object: