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

Set export on Config to verbose #104

Merged

Conversation

renatoalmeidaoliveira
Copy link
Contributor

@renatoalmeidaoliveira renatoalmeidaoliveira commented Aug 26, 2020

SUMMARY

In the configuration export session i think that using /export verbose is better than just /export, because with export only some configurations sections are going to be missed like BGP configuration, as proposed in ansible/ansible#67868

ISSUE TYPE

Minor Change Request
COMPONENT NAME
routeros_facts.py

ADDITIONAL INFORMATION

extract of the output with /export verbose


# software id = 
#
#
#
/interface ethernet
set [ find default-name=ether1 ] advertise=\
    10M-half,10M-full,100M-half,100M-full,1000M-full arp=enabled arp-timeout=\
    auto auto-negotiation=yes cable-settings=default disable-running-check=\
    yes disabled=no full-duplex=yes loop-protect=default \
    loop-protect-disable-time=5m loop-protect-send-interval=5s mac-address=\
    50:00:00:02:00:00 mtu=1500 name=ether1 orig-mac-address=50:00:00:02:00:00 \
    rx-flow-control=off speed=1Gbps tx-flow-control=off
set [ find default-name=ether2 ] advertise=\
    10M-half,10M-full,100M-half,100M-full,1000M-full arp=enabled arp-timeout=\
    auto auto-negotiation=yes cable-settings=default disable-running-check=\
    yes disabled=no full-duplex=yes loop-protect=default \
    loop-protect-disable-time=5m loop-protect-send-interval=5s mac-address=\
    50:00:00:02:00:01 mtu=1500 name=ether2 orig-mac-address=50:00:00:02:00:01 \
    rx-flow-control=off speed=1Gbps tx-flow-control=off
set [ find default-name=ether3 ] advertise=\ 
.....
.....

Extract of Output with only /export:

# software id = 
#
#
#
/interface wireless security-profiles
set [ find default=yes ] supplicant-identity=MikroTik
/ip dhcp-client
add dhcp-options=hostname,clientid disabled=no interface=ether1
<END>

SUMMARY
In the configuration export session i think that using /export verbose is better than just /export, because with export only some configurations sections are going to be missed like BGP configuration, as proposed in ansible/ansible#67868

ISSUE TYPE
Bugfix Pull Request
COMPONENT NAME
routeros_facts.py

ADDITIONAL INFORMATION
extract of the output with /export verbose


# software id = 
#
#
#
/interface ethernet
set [ find default-name=ether1 ] advertise=\
    10M-half,10M-full,100M-half,100M-full,1000M-full arp=enabled arp-timeout=\
    auto auto-negotiation=yes cable-settings=default disable-running-check=\
    yes disabled=no full-duplex=yes loop-protect=default \
    loop-protect-disable-time=5m loop-protect-send-interval=5s mac-address=\
    50:00:00:02:00:00 mtu=1500 name=ether1 orig-mac-address=50:00:00:02:00:00 \
    rx-flow-control=off speed=1Gbps tx-flow-control=off
set [ find default-name=ether2 ] advertise=\
    10M-half,10M-full,100M-half,100M-full,1000M-full arp=enabled arp-timeout=\
    auto auto-negotiation=yes cable-settings=default disable-running-check=\
    yes disabled=no full-duplex=yes loop-protect=default \
    loop-protect-disable-time=5m loop-protect-send-interval=5s mac-address=\
    50:00:00:02:00:01 mtu=1500 name=ether2 orig-mac-address=50:00:00:02:00:01 \
    rx-flow-control=off speed=1Gbps tx-flow-control=off
set [ find default-name=ether3 ] advertise=\ 
.....
.....
Extract of Output with only /export:
# software id = 
#
#
#
/interface wireless security-profiles
set [ find default=yes ] supplicant-identity=MikroTik
/ip dhcp-client
add dhcp-options=hostname,clientid disabled=no interface=ether1
<END>
@felixfontein
Copy link
Collaborator

Could you please add a changelog fragment (probably minor_changes)?

CC @heuels

@felixfontein
Copy link
Collaborator

You probably also need to rename the unit test fixture file (as you did in ansible/ansible#67868). It now lives in tests/unit/plugins/modules/network/routeros/fixtures/routeros_facts/.

@felixfontein
Copy link
Collaborator

Looks good to me. @heuels what do you think?

@heuels
Copy link
Contributor

heuels commented Sep 3, 2020

@felixfontein, yes, it looks great – let's merge it 🙂

@felixfontein felixfontein merged commit feb89c9 into ansible-collections:main Sep 4, 2020
@felixfontein
Copy link
Collaborator

@heuels aaaand... done! :) thanks for reviewing this!
@renatoalmeidaoliveira thanks a lot for implementing this!

@felixfontein felixfontein added the needs_backport_to_stable_1 PR needs to be backported to the stable-1 branch label Sep 4, 2020
@felixfontein felixfontein added backport-stable-1 and removed needs_backport_to_stable_1 PR needs to be backported to the stable-1 branch labels Sep 17, 2020
patchback bot pushed a commit that referenced this pull request Sep 17, 2020
* Set export on Config to verbose

SUMMARY
In the configuration export session i think that using /export verbose is better than just /export, because with export only some configurations sections are going to be missed like BGP configuration, as proposed in ansible/ansible#67868

ISSUE TYPE
Bugfix Pull Request
COMPONENT NAME
routeros_facts.py

ADDITIONAL INFORMATION
extract of the output with /export verbose


# software id = 
#
#
#
/interface ethernet
set [ find default-name=ether1 ] advertise=\
    10M-half,10M-full,100M-half,100M-full,1000M-full arp=enabled arp-timeout=\
    auto auto-negotiation=yes cable-settings=default disable-running-check=\
    yes disabled=no full-duplex=yes loop-protect=default \
    loop-protect-disable-time=5m loop-protect-send-interval=5s mac-address=\
    50:00:00:02:00:00 mtu=1500 name=ether1 orig-mac-address=50:00:00:02:00:00 \
    rx-flow-control=off speed=1Gbps tx-flow-control=off
set [ find default-name=ether2 ] advertise=\
    10M-half,10M-full,100M-half,100M-full,1000M-full arp=enabled arp-timeout=\
    auto auto-negotiation=yes cable-settings=default disable-running-check=\
    yes disabled=no full-duplex=yes loop-protect=default \
    loop-protect-disable-time=5m loop-protect-send-interval=5s mac-address=\
    50:00:00:02:00:01 mtu=1500 name=ether2 orig-mac-address=50:00:00:02:00:01 \
    rx-flow-control=off speed=1Gbps tx-flow-control=off
set [ find default-name=ether3 ] advertise=\ 
.....
.....
Extract of Output with only /export:
# software id = 
#
#
#
/interface wireless security-profiles
set [ find default=yes ] supplicant-identity=MikroTik
/ip dhcp-client
add dhcp-options=hostname,clientid disabled=no interface=ether1
<END>

* Create 104_routeros_facts_export_verbose

* Update changelogs/fragments/104_routeros_facts_export_verbose

Co-authored-by: Felix Fontein <[email protected]>

* Rename export to export_verbose

* Rename 104_routeros_facts_export_verbose to 104_routeros_facts_export_verbose.yml

Co-authored-by: Felix Fontein <[email protected]>
(cherry picked from commit feb89c9)
felixfontein pushed a commit that referenced this pull request Sep 17, 2020
* Set export on Config to verbose

SUMMARY
In the configuration export session i think that using /export verbose is better than just /export, because with export only some configurations sections are going to be missed like BGP configuration, as proposed in ansible/ansible#67868

ISSUE TYPE
Bugfix Pull Request
COMPONENT NAME
routeros_facts.py

ADDITIONAL INFORMATION
extract of the output with /export verbose


# software id = 
#
#
#
/interface ethernet
set [ find default-name=ether1 ] advertise=\
    10M-half,10M-full,100M-half,100M-full,1000M-full arp=enabled arp-timeout=\
    auto auto-negotiation=yes cable-settings=default disable-running-check=\
    yes disabled=no full-duplex=yes loop-protect=default \
    loop-protect-disable-time=5m loop-protect-send-interval=5s mac-address=\
    50:00:00:02:00:00 mtu=1500 name=ether1 orig-mac-address=50:00:00:02:00:00 \
    rx-flow-control=off speed=1Gbps tx-flow-control=off
set [ find default-name=ether2 ] advertise=\
    10M-half,10M-full,100M-half,100M-full,1000M-full arp=enabled arp-timeout=\
    auto auto-negotiation=yes cable-settings=default disable-running-check=\
    yes disabled=no full-duplex=yes loop-protect=default \
    loop-protect-disable-time=5m loop-protect-send-interval=5s mac-address=\
    50:00:00:02:00:01 mtu=1500 name=ether2 orig-mac-address=50:00:00:02:00:01 \
    rx-flow-control=off speed=1Gbps tx-flow-control=off
set [ find default-name=ether3 ] advertise=\ 
.....
.....
Extract of Output with only /export:
# software id = 
#
#
#
/interface wireless security-profiles
set [ find default=yes ] supplicant-identity=MikroTik
/ip dhcp-client
add dhcp-options=hostname,clientid disabled=no interface=ether1
<END>

* Create 104_routeros_facts_export_verbose

* Update changelogs/fragments/104_routeros_facts_export_verbose

Co-authored-by: Felix Fontein <[email protected]>

* Rename export to export_verbose

* Rename 104_routeros_facts_export_verbose to 104_routeros_facts_export_verbose.yml

Co-authored-by: Felix Fontein <[email protected]>
(cherry picked from commit feb89c9)

Co-authored-by: Renato Almeida de Oliveira <[email protected]>
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.

3 participants