Skip to content
This repository has been archived by the owner on Feb 6, 2023. It is now read-only.

Commit

Permalink
fix: Remove graphing and security as these do not work in v4.3 and ab…
Browse files Browse the repository at this point in the history
…ove.

Changed regex searches to ieq
  • Loading branch information
jjeff07 committed Apr 21, 2022
1 parent 528eb40 commit a7b3b35
Show file tree
Hide file tree
Showing 13 changed files with 8 additions and 639 deletions.
80 changes: 0 additions & 80 deletions examples/graphs.py

This file was deleted.

116 changes: 0 additions & 116 deletions examples/security.py

This file was deleted.

10 changes: 2 additions & 8 deletions ipfabric/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,9 @@
from typing import Optional, Union
from urllib.parse import urlparse

from pkg_resources import parse_version

from ipfabric import models
from ipfabric.api import IPFabricAPI
from ipfabric.intent import Intent
from ipfabric.pathlookup import Diagram
from ipfabric.security import Security

DEFAULT_ID = "$last"

Expand Down Expand Up @@ -42,10 +38,6 @@ def __init__(
"""
super().__init__(base_url, token, snapshot_id, **kwargs)
self.inventory = models.Inventory(client=self)
self.graphs = Diagram(self) if parse_version(self.os_version) < parse_version("4.3") else \
ImportError("v4.3 digrams has been moved to ipfabrc-diagrams python package")
self.security = Security(client=self) if parse_version(self.os_version) < parse_version("4.3") else \
ImportError("Security Policy tables have changed and need updated")
self.intent = Intent(client=self)

@check_format
Expand All @@ -71,6 +63,7 @@ def fetch(
:param snapshot_id: str: Optional snapshot_id to override default
:param reports: str: String of frontend URL where the reports are displayed
:param sort: dict: Dictionary to apply sorting: {"order": "desc", "column": "lastChange"}
:param snapshot: bool: Set to False for some tables like management endpoints.
:return: list: List of Dictionary objects.
"""

Expand Down Expand Up @@ -110,6 +103,7 @@ def fetch_all(
:param snapshot_id: str: Optional snapshot_id to override default
:param reports: str: String of frontend URL where the reports are displayed
:param sort: dict: Dictionary to apply sorting: {"order": "desc", "column": "lastChange"}
:param snapshot: bool: Set to False for some tables like management endpoints.
:return: list: List of Dictionary objects.
"""

Expand Down
3 changes: 0 additions & 3 deletions ipfabric/pathlookup/__init__.py

This file was deleted.

139 changes: 0 additions & 139 deletions ipfabric/pathlookup/diagrams.py

This file was deleted.

Loading

0 comments on commit a7b3b35

Please sign in to comment.