netpalm icon indicating copy to clipboard operation
netpalm copied to clipboard

Adding new driver SOAP

Open MajesticFalcon opened this issue 2 years ago • 4 comments

I have built a similar program to netpalm for our team. It is less complex and doesn't support task queuing and some of the other more advanced concepts built here. But it does support the same drivers with the addition of a SOAP driver I created to interface with Adtran and Calix systems.

Would you be willing to work together to add a new driver for the system?

MajesticFalcon avatar Feb 08 '23 22:02 MajesticFalcon

@MajesticFalcon its an interesting idea, i'm open to exploring. Do you have any reference code which demonstrates what you need ( does not need to be integrated with netpalm )

tbotnz avatar Feb 09 '23 07:02 tbotnz

The code is pretty simple. Here is some pseudo-code


#import preferred soap package
from suds.client import Client
from bs4 import BeautifulSoup


Class SoapVendor():
        def __init__():
             #setup credentials
             #setup wsdl file location

         def connect():
             #authenticate using credentials/headers via soap library
         
         def get(wsdl_cmd):
             #send command to api and return results

MajesticFalcon avatar Feb 10 '23 18:02 MajesticFalcon

@MajesticFalcon im working on making this easier for you to add, will keep you posted when its done

tbotnz avatar Mar 17 '23 09:03 tbotnz

Thank you. I’ll keep an eye out for your updates and send a PR for the soap / xml when you’re ready.

On Mar 17, 2023, at 4:27 AM, tbotnz @.***> wrote:



@MajesticFalconhttps://github.com/MajesticFalcon im working on making this easier for you to add, will keep you posted when its done

— Reply to this email directly, view it on GitHubhttps://github.com/tbotnz/netpalm/issues/198#issuecomment-1473506696, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ACBR6OJL3HOL7375C2QPNRLW4QVBFANCNFSM6AAAAAAUVZ73HI. You are receiving this because you were mentioned.Message ID: @.***>

MajesticFalcon avatar Mar 17 '23 15:03 MajesticFalcon