Guest User

Untitled

a guest
May 22nd, 2013
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. diff --git a/sa/profiles/Juniper/JUNOS/get_arp.py b/sa/profiles/Juniper/JUNOS/get_arp.py
  2. --- a/sa/profiles/Juniper/JUNOS/get_arp.py
  3. +++ b/sa/profiles/Juniper/JUNOS/get_arp.py
  4. @@ -18,10 +18,10 @@ class Script(NOCScript):
  5.  
  6. rx_line = re.compile(
  7. r"^(?P<mac>[0-9a-f]{2}:[0-9a-f]{2}:[0-9a-f]{2}:[0-9a-f]{2}:[0-9a-f]{2}:[0-9a-f]{2})\s+(?P<ip>\d+\.\d+\.\d+\.\d+)\s+(?P<interface>\S+)")
  8.  
  9. def execute(self, vrf=None):
  10. if vrf:
  11. cmd = "show arp no-resolve vpn %s" % vrf
  12. else:
  13. - cmd = "show arp no-resolve"
  14. + cmd = "show arp no-resolve vpn default"
  15. return self.cli(cmd, list_re=self.rx_line)
Advertisement
Add Comment
Please, Sign In to add comment