JNPRAutomate / ansible-junos-evpn-vxlan

Sample project that use Ansible and Jinja2 template to automatically generate configurations for Juniper devices deploy in EVPN/VXLAN fabric mode
MIT License
91 stars 64 forks source link

inter PODs L2 #39

Open ksator opened 7 years ago

ksator commented 7 years ago

inter POD L2 between severs is not working.
Because of the term as-path in the policy bgp-ipclos-out in all the spines, there is no vxlan tunnels between leaves in pod1 an dleaves in pod2: so, inter POD L2 between severs is not working.
In order to fix this, I had to deactivate this term. Once this term is deactivate, L2 communocation beytween PODs is OK (because leaves has full mesh vtep between them). I know we need this policy for anothe purpose, but maybe we should rewrite it differently otherwise inter POD is KO.

lab@spine-01> show configuration | compare rollback 1
[edit policy-options policy-statement bgp-ipclos-out]
!     inactive: term as-path { ... }

{master:0}
lab@spine-01> show configuration policy-options policy-statement bgp-ipclos-out
term loopback {
    from {
        protocol direct;
        route-filter 100.0.0.11/32 orlonger;
    }
    then {
        community add MYCOMMUNITY;
        next-hop self;
        accept;
    }
}
inactive: term as-path {
    from {
        as-path asPathLength2;
        community MYCOMMUNITY;
    }
    then reject;
}