forked from mirrors/thatmattlove-hyperglass
changed Execute class attributes to use already-initialized data
This commit is contained in:
parent
f3461708c1
commit
af3e78c81d
1 changed files with 3 additions and 3 deletions
|
|
@ -201,9 +201,9 @@ class Execute:
|
|||
|
||||
def __init__(self, lg_data):
|
||||
self.input_data = lg_data
|
||||
self.input_location = lg_data["location"]
|
||||
self.input_type = lg_data["type"]
|
||||
self.input_target = lg_data["target"]
|
||||
self.input_location = self.input_data["location"]
|
||||
self.input_type = self.input_data["type"]
|
||||
self.input_target = self.input_data["target"]
|
||||
|
||||
def parse(self, output, nos):
|
||||
"""Splits BGP output by AFI, returns only IPv4 & IPv6 output for protocol-agnostic \
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue