File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ def __init__(
2525 src : str = "" ,
2626 dest : str = "" ,
2727 vrf : str = "" ,
28+ query_str : str = ' ' ,
2829 ) -> None :
2930 super ().__init__ (
3031 engine = engine ,
@@ -34,6 +35,7 @@ def __init__(
3435 view = view ,
3536 namespace = namespace ,
3637 columns = columns ,
38+ query_str = query_str ,
3739 format = format ,
3840 sqobj = PathObj
3941 )
Original file line number Diff line number Diff line change @@ -752,6 +752,7 @@ def get(self, **kwargs) -> pd.DataFrame:
752752 src = kwargs .get ("src" , None )
753753 dest = kwargs .get ("dest" , None )
754754 dvrf = kwargs .get ("vrf" , "" )
755+ query_str = kwargs .pop ('query_str' , "" )
755756
756757 if not src or not dest :
757758 raise AttributeError ("Must specify trace source and dest" )
@@ -1120,7 +1121,9 @@ def get(self, **kwargs) -> pd.DataFrame:
11201121 # This occurs when a path traversal terminates due to an error such
11211122 # as loop detected
11221123 final_paths = paths
1123- return self ._path_cons_result (final_paths )
1124+ return self ._handle_user_query_str (
1125+ self ._path_cons_result (final_paths ), query_str )\
1126+ .reset_index (drop = True )
11241127
11251128 def _path_cons_result (self , paths ):
11261129 df_plist = []
You can’t perform that action at this time.
0 commit comments