Skip to content
This repository has been archived by the owner on Jul 19, 2024. It is now read-only.

/* This block of configuration has been generated by the role ... */ #38

Open
ksator opened this issue Oct 26, 2016 · 1 comment
Open
Assignees
Labels

Comments

@ksator
Copy link
Contributor

ksator commented Oct 26, 2016

Hello,
I think we should remove these lines (which are comming from the templates in the roles) from the junos configuration running on the devices:

/* This block of configuration has been generated by the role underlay-ebgp for Ansible */
/* This block of configuration has been generated by the role overlay-evpn-qfx-l2 for Ansible */
...

We can use this ansible module to remove these lines before to push them on Junos devices http://docs.ansible.com/ansible/lineinfile_module.html

as:

  • we do not know where the block finish on the junos devices
  • most important: the junos device re-order the cli, so under the block /* This block of configuration has been generated by the role underlay-ebgp for Ansible */, we have the interfaces configuration (included the ones that were configured from another role as we can see below
lab@leaf-01> show configuration | match block
/* This block of configuration has been generated by the role underlay-ebgp for Ansible */
/* This block of configuration has been generated by the role overlay-evpn-qfx-l2 for Ansible */
lab@leaf-01> show configuration | find block
/* This block of configuration has been generated by the role underlay-ebgp for Ansible */
interfaces {
    xe-0/0/12 {
        description "to access";
        flexible-vlan-tagging;
        unit 10 {
            vlan-id 10;
        }
        unit 11 {
            vlan-id 11;
        }
    }
    xe-0/0/13 {
        description "to access";
        flexible-vlan-tagging;
        unit 10 {
            vlan-id 10;
        }
        unit 11 {
            vlan-id 11;
        }
        unit 12 {
            vlan-id 12;
        }
        unit 13 {
            vlan-id 13;
        }
    }
    et-0/0/48 {
        description " * to spine-01";
        mtu 9192;
        unit 0 {
            family inet {
                mtu 9000;
                address 172.16.0.1/31;
            }
        }
    }

@dgarros
Copy link
Contributor

dgarros commented Nov 1, 2016

Good point, lets remove them
Feel free to send a pull request or I'll do it during the next update
Thanks

@dgarros dgarros added the bug label Nov 1, 2016
@dgarros dgarros self-assigned this Nov 1, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants