Skip to content

Commit

Permalink
Merge pull request #33 from cfrademan/development
Browse files Browse the repository at this point in the history
Netrino Southbound Netconf API #12
  • Loading branch information
Christiaan Rademan committed Jul 17, 2018
2 parents dc053b0 + fed0cac commit 607e34f
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 62 deletions.
1 change: 0 additions & 1 deletion netrino/__init__.py
Expand Up @@ -28,4 +28,3 @@
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
# THE POSSIBILITY OF SUCH DAMAGE.

from netrino.core.register import Register
48 changes: 0 additions & 48 deletions netrino/core/register.py

This file was deleted.

1 change: 0 additions & 1 deletion netrino/interfaces/__init__.py
@@ -1 +0,0 @@
from netrino.interfaces import netconf
4 changes: 0 additions & 4 deletions netrino/interfaces/netconf/discover.py
Expand Up @@ -28,10 +28,6 @@
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
# THE POSSIBILITY OF SUCH DAMAGE.

from netrino import register


@register.discover('netconf')
def discover(ip):
pass

3 changes: 0 additions & 3 deletions netrino/interfaces/netconf/element.py
Expand Up @@ -32,10 +32,7 @@
from luxon import Model
from luxon.utils.timezone import now

from netrino import register


@register.element('netconf')
class Element(Model):
id = Model.Uuid(default=uuid4, internal=True)
ip = Model.String(null=False)
Expand Down
5 changes: 1 addition & 4 deletions netrino/interfaces/netconf/interface.py
Expand Up @@ -28,13 +28,10 @@
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
# THE POSSIBILITY OF SUCH DAMAGE.

from netrino import register


@register.interface('netconf')
class Interface(object):
def edit_config(self, uuid, payload):
# step 1 use function to get creds etc from uuid
# step 2 pass to ncclient
# return response
pass

12 changes: 11 additions & 1 deletion setup.py
Expand Up @@ -281,7 +281,17 @@ def run(self):
cmdclass=cmdclass,
ext_modules=ext_modules,
zip_safe=False, # don't use eggs
# entry_points={
entry_points={
'netrino_discover': [
'netconf = netrino.interfaces.netconf.discover:discover'
],
'netrino_interfaces': [
'netconf = netrino.interfaces.netconf.interface:Interface'
],
'netrino_elements': [
'netconf = netrino.interfaces.netconf.element:Element'
],
}
# 'console_scripts': [
# 'netrino = netrino.main:entry_point'
# ],
Expand Down

0 comments on commit 607e34f

Please sign in to comment.