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

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

@ksator

Description

@ksator

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;
            }
        }
    }

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions