Skip to content
Snippets Groups Projects
Commit 3c50b233 authored by Erik Reid's avatar Erik Reid
Browse files

renamed router.py juniper.py

parent 5e0e237f
No related branches found
No related tags found
No related merge requests found
......@@ -5,4 +5,4 @@ CLI Tools
.. automodule:: resource_management.cli
.. automodule:: resource_management.hardware.router
.. automodule:: resource_management.hardware.juniper
......@@ -31,7 +31,7 @@ import click
import logging
from jsonschema import validate, ValidationError
from resource_management.hardware.router \
from resource_management.hardware.juniper \
import load_router_ports, LINE_CARDS_LIST_SCHEMA
from resource_management import db, config, environment
from resource_management.db import model
......
......@@ -5,13 +5,13 @@ router utilities
.. contents:: :local:
.. autofunction:: resource_management.hardware.router.load_line_cards
.. autofunction:: resource_management.hardware.router.load_router_ports
cf.
https://www.juniper.net/documentation/us/en/software/junos-pyez/junos-pyez-developer/topics/task/junos-pyez-tables-op-defining.html
https://www.juniper.net/documentation/us/en/software/junos-pyez/junos-pyez-developer/topics/task/junos-pyez-views-op-defining.html
https://github.com/Juniper/py-junos-eznc/blob/master/lib/jnpr/junos/factory/factory_loader.py#L33-L54
"""
""" # noqa: E501
import contextlib
import logging
import re
......@@ -308,8 +308,6 @@ def load_router_ports(hostname, ssh_config, port=830):
.. asjson::
resource_management.hardware.router.LINE_CARDS_LIST_SCHEMA
"""
with router(
......
from resource_management.db import model
from resource_management.db import session_scope
from resource_management.cli import _save_router_info
from resource_management.hardware.router import load_router_ports
from resource_management.hardware.juniper import load_router_ports
#
# def test_model_sanity_check(resources_db, router_name):
......
......@@ -3,7 +3,7 @@ import re
from jsonschema import validate
from lxml import etree
from resource_management.hardware.router \
from resource_management.hardware.juniper \
import load_router_ports, LINE_CARDS_LIST_SCHEMA
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment