Peter Sprygada
857e1d374b
adds exception handling for adding an invalid condition ( #5125 )
...
This change will now handle a problem adding a condition that raises
an AddConditionError and return a well formed error to the user.
9 years ago
Peter Sprygada
2db006450d
roll up of unicode fixes in junos modules ( #5113 )
...
* fixes junos_template (fixes #3962 )
* fixes junos_config
9 years ago
Peter Sprygada
8bc1b32297
fixes junos_command module paring of wait_for strings ( #5083 )
...
The junos_command module wasn't properly parsing strings to apply
conditionals due to the return value not being converted to json
before the results where handed to the runner.
9 years ago
Peter Sprygada
4fcb9dceff
fixes junos_template ignoring the action directive ( #5080 )
...
This updates the junos_template to properly process the action
directive when loading the configuration.
9 years ago
John R Barker
752c80f8b7
deprecated _template network modules: Rename in modules-core ( #5072 )
9 years ago
John R Barker
6b5d30ff11
typo in module name ( #5062 )
9 years ago
Peter Sprygada
340ff31075
catches exception if conditional cannot be parsed ( #5067 )
...
If the conditional cannot be parsed, the module will now catch the exception
and return a well formed failed message.
fixes #5060
9 years ago
Peter Sprygada
a1c3ce0ad1
fixes error when 'delete ...' config command is specified but doesn't exist ( #5064 )
...
The junos_config module will generate an exception if a 'delete ...' config
command is attempted to be loaded into a device configuration. This change
will first check to see if the delete command is valid and filter it out
of the change set if it is not valid.
fixes #5040
9 years ago
Nathaniel Case
9a0add286f
Network module code cleanup ( #5061 )
...
* Fix imports in junos_template
* Python 3 compatibility in eos_command
* Python 3 compatibility for ios_command
* Clean up issues with ios_facts
* Python 3 compatibility for ios_facts
* Import shuffle in ios_template
* Python 3 compatibility for iosxr_command
* Clean up iosxr_facts.py
* Python 3 compatibility for iosxr_facts
* Python 3 compatibility for junos_command
* Python 3 compatibility for ops_command
* Cleanup issues with ops_facts
* Python 3 compatibility for ops_facts
* Cleanup issues with ops_template
* Python 3 compatibility for vyos_command
* Cleanup issues with vyos_facts
* Python 3 compatibility for vyos_facts
9 years ago
Nathaniel Case
cb29cbf6bc
Fix imports in junos_template ( #5059 )
9 years ago
Peter Sprygada
87f47a44c9
fixes exception being raised when show configuration command issued ( #5047 )
...
The junos_command expects commands to be returned as xml by default but
`show configuration [options]` will return text not xml. This fix
will set the output format for any command that starts with `show
configuration` to text
fixes #4628
9 years ago
Peter Sprygada
57350f84cd
fixes return passing output from command through jxmlease in junos_command ( #5044 )
...
The return string from the commands was not being passed through the
jxmlease library and therefore being returned as a string instead of a
json data structure. This also adds back the missing xml key in the
return that includes the raw xml string.
fixes #5001
9 years ago
Peter Sprygada
3a2cfadb31
fixes junos_config to be idempotent when confirming a commit ( #4946 )
...
The junos_config module would always return true when confirming a commit
This changes the module to now check first making the feature idempontent
9 years ago
Peter Sprygada
4c8e32ee27
fixes import statements in junos_package module ( #4929 )
...
This fixes the import statement to import NetworkModule from network instead
of from junos
9 years ago
Peter Sprygada
df4a9dabd5
fix up junos_facts import statements ( #4928 )
...
This fixes the junos_facts import statements and removes importing
NetworkModule from the junos shared module.
9 years ago
Peter Sprygada
a3807eee10
fix import in junos_command module ( #4927 )
...
This fixes the import statements in the junos_command module to be
consistent with all junos_* modules
9 years ago
Peter Sprygada
16f298138c
roll up of bug fixes for junos_config module ( #4925 )
...
* fixed docstring referencing old arguments
* changed out lxml for xml library to avoid import errors
* fixed issue when trying to confirm a commit will end up a NOOP
* fixed issue for passing replace argument to load_config method
9 years ago
Peter Sprygada
446c7de239
bug fixes in junos_netconf module ( #4924 )
...
* fixes exception thrown when sending commands to device
* fixes exception thrown when retrieving current resource instance
* fixes issue where netconf would be configured in some instances when state
was set to absent
* now returns the command string sent to the remote device
* fixes argument name to be netconf_port with alias to listens_on
9 years ago
Matt Clay
f2c2dddc01
Remove duplicate keys from module docs. ( #4920 )
9 years ago
John Barker
9c42d72375
Docs improvements to _config
9 years ago
Peter Sprygada
42856d9949
roll up updates to junos_config module
...
* remove 'update' argument
* update doc strings
* reorder functions
9 years ago
Peter Sprygada
477c71d985
minor updates to junos_package module for 2.2 ( #4761 )
...
* replaces get_module() with NetworkModule()
* removes old call to package_version()
9 years ago
Peter Sprygada
4277b88de5
update junos_facts module to remove get_module() factory function ( #4760 )
...
Replaces get_module() with NetworkModule instance
9 years ago
Peter Sprygada
0045cf31c5
Merge pull request #4687 from privateip/junos_command
...
add new functionality to junos_command module
9 years ago
Peter Sprygada
f0e5a8c7ab
Merge pull request #4688 from privateip/junos_netconf
...
update junos_netconf module
9 years ago
Peter Sprygada
4ab3492011
Merge pull request #4689 from privateip/junos_template
...
update junos_template module
9 years ago
Peter Sprygada
a11a311b49
update junos_config module
...
* adds src argument to load configuration from disk
* adds src_format to set the source file format
* adds update argument with choices merge or replace
* deprecates the replace argument in favor of update=replace
9 years ago
Peter Sprygada
256730e997
add new functionality to junos_command module
...
* commands argument now accepts a dict arguments
* rpcs argument now accepts a dict argument
* waitfor has been renamed to wait_for with an alias to waitfor
* only show commands are allowd when check mode is specified
* config mode is no longer allowed in the command stack
* add argument match with valid values any, all
9 years ago
Peter Sprygada
ba8613cae9
update junos_netconf module
...
Updates the junos_netconf module with changes to load the
NetworkModule instead of the get_module factory method. This
update is part of the 2.2 refactor of network modules
9 years ago
Peter Sprygada
0dfd3f177f
update junos_template module
...
This updates the junos_template module implementing the changes for
Ansible 2.2
9 years ago
codyrat
50133f1ed6
re.match for numeric only for kwargs[key] = int(value) ( #4495 )
10 years ago
John R Barker
4148b74433
Update junos_config.py
10 years ago
John R Barker
5f02f54ff9
Update junos_config.py
10 years ago
John Barker
bd08631e58
junos: Docs update
10 years ago
Kevin Kirsche
9a369b3f1f
Update junos_config.py
10 years ago
Kevin Kirsche
9f8bc0158c
Fix typo in "ssantaize" typo
...
ssantaize to santaize
10 years ago
Stian Vikan
1e74d4c9a6
Fixed delete statement for juniper_config.py #4007 #3984
10 years ago
Peter Sprygada
e7e295b693
removes requirement for config argument to be specified in junos_facts
...
The config argument is optional and should not be required. This
removes the required attribute from the config argument.
fixes #3878
10 years ago
Wolfgang Powisch
061555cefb
Update junos_facts.py ( #3759 )
10 years ago
Peter Sprygada
39693305cf
Merge pull request #3623 from ocadotechnology/wip-3621
...
junos_template: Simplify arguments. Fixes #3621
10 years ago
Michael Scherer
cc99fe24fc
Convert the network subfolder to py3/py2.4 syntax ( #3690 )
10 years ago
Michael Scherer
4c569fd535
Add a test on jnpr.junos.utils.sw presence ( #3666 )
10 years ago
Mike Bryant
46957b167e
junos_template: Simplify arguments. Fixes #3621
...
Simplify the arguments to junos_template, such that
merge/overwrite/replace can be selected easily.
10 years ago
Peter Sprygada
f7baff4688
fixes docstring issue for junos_config arguments
...
The docstring was incorrectly merged with some old entries that will
cause the documentation not to build correclty. It is now fixed.
10 years ago
Peter Sprygada
b80929bf0b
adds new module junos_package
...
the new module allows playbook designers to manage packages on remote
devices running junos.
10 years ago
Peter Sprygada
5814748b4d
add support for netconf to junos_config
...
The junos_config module now supports the netconf transport.
10 years ago
Peter Sprygada
9b5c71ec03
Merge pull request #3534 from privateip/junos_template
...
add support for netconf to junos_template
10 years ago
Peter Sprygada
a19410483d
add support for netconf to junos_template
...
This commit adds support for sending full syntanx junos configurations using
junos_template and netconf
10 years ago
Peter Sprygada
36755e5fe2
Merge pull request #3532 from privateip/junos_command
...
fixes docstring format in junos_command
10 years ago
Peter Sprygada
14ea46199a
Merge pull request #3519 from privateip/junos_facts
...
adds new junos_facts module
10 years ago