Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] New module juniper_junos_file #370

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

dgarros
Copy link
Contributor

@dgarros dgarros commented May 18, 2018

I've started to work on a new module to manage file, it's based on @renetbo work in #177 and I tried to refactor to align with the new structure.
I've been using it to transfet file to/from junos devices and this part is working good so far.

I still need to do more testing but I've seen some discussions around a module like this one so I figured I would create the PR for visibility.

@dgarros dgarros mentioned this pull request May 18, 2018
@vnitinv vnitinv self-requested a review May 21, 2018 09:51
Copy link
Contributor

@stacywsmith stacywsmith left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This code currently supports copying from the Ansible control machine to the Junos device via SCP. This is a great start because I believe it hits ~90% of the requirement. I was also hoping that this module could support the file-copy RPC so that file copies could be initiated from the Junos device and support all of the various URL formats supported by Junos.

@@ -0,0 +1,53 @@
# -*- coding: utf-8 -*-
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this action plugin is the same as juniper_junos_common_action.py. If it is, it should be a link to juniper_junos_common_action.py rather than a copy/paste of the file. The diff doesn't make it clear if this is a file or a link, so if it's already a link, please ignore my comment.

'supported_by': 'community',
'status': ['stableinterface']}

DOCUMENTATION = '''
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please make sure the documentation for this module builds correctly before we merge. The documentation syntax is very fragile.

'''


def import_juniper_junos_common():
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This function is no longer necessary after #357 and should be removed.


def main():
# Import juniper_junos_common
juniper_junos_common = import_juniper_junos_common()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove.

@jnpr-community-netdev
Copy link

Can one of the admins verify this patch?

1 similar comment
@jnpr-community-netdev
Copy link

Can one of the admins verify this patch?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants