EVPN-VXLAN (MAC-VRF) Routing Instance

Interfaces

interfaces {
  apply-groups [ interfaces-100g interfaces-10g interfaces-1g ];

  et-0/0/24 {
    apply-groups [ ESI-PORT ];
    apply-groups-except MTU-VXLAN;

    description "Internal: to sw2.et-0/0/51";
    mtu 9216;
    gigether-options {
      fec fec91;
    }
    flexible-vlan-tagging;
    encapsulation flexible-ethernet-services;

    esi {
      00:11:11:11:11:11:11:11:11:10;
    }
    unit 1850 {
      encapsulation vlan-bridge;
      vlan-id 1850;
    }
    unit 1851 {
      encapsulation vlan-bridge;
      vlan-id 1851;
    }
    unit 1852 {
      encapsulation vlan-bridge;
      vlan-id 1852;
    }
    unit 1853 {
      encapsulation vlan-bridge;
      vlan-id 1853;
    }
  }
}

Routing Instance

routing-instances {
  evpn-100 {
    instance-type mac-vrf;
    protocols {
      evpn {
        encapsulation vxlan;
        extended-vni-list all;
      }
    }
    vtep-source-interface lo0.0;
    service-type vlan-aware;

    route-distinguisher 10.255.252.0:100;
    vrf-import IMPORT-POLICY-100;
    vrf-target target:64999:100;

    vlans {
      bd-100-1850 {
        vlan-id 1850;
        interface et-0/0/24.1850;
        vxlan {
          vni 1850;
          encapsulate-inner-vlan;
        }
      }
      bd-100-1851 {
        vlan-id 1851;
        interface et-0/0/24.1851;
        vxlan {
          vni 1851;
          encapsulate-inner-vlan;
        }
      }
      bd-100-1852 {
        vlan-id 1852;
        interface et-0/0/24.1852;
        vxlan {
          vni 1852;
          encapsulate-inner-vlan;
        }
      }
      bd-100-1853 {
        vlan-id 1853;
        interface et-0/0/24.1853;
        vxlan {
          vni 1853;
          encapsulate-inner-vlan;
        }
      }
    }
  }
}

Policies

policy-options {
  policy-statement EXPORT-POLICY-100 {
    term ROUTE-TARGET {
      then {
        community add RT100;
      }
    }
  }

  policy-statement IMPORT-POLICY-100 {
    term ROUTE-TARGET-iBGP {
      from community RT100-iBGP;
      then accept;
    }
  }

  community RT100 members [ target:65001:100 target:64999:100 ];
  community RT100-eBGP members target:65001:100;
  community RT100-iBGP members target:64999:100;
}

Groups

groups {
  ESI-PORT {
    interfaces {
      <*> {
        esi {
          all-active;
        }
      }
    }
  }

  interfaces-100g {
    <et-*> {
      description "Reserved for 100 GbE port speeds";
      disable;
    }
  }

  interfaces-10g {
    <xe-*> {
      description "Reserved for 10 GbE port speeds";
      disable;
    }
  }

  interfaces-1g {
    <ge-*> {
      description "Reserved for 1 GbE port speeds";
      disable;
    }
  }
}

Forwarding options

forwarding-options {
  evpn-vxlan {
    shared-tunnels;
  }
}

Protocols

protocols {
  l2-learning {
    decapsulate-accept-inner-vlan;
  }

  bgp {
    group ipv6-backbone {
      family evpn {
        signaling;
      }
    }

    group ipv4-backbone {
      family evpn {
        signaling;
      }
    }
  }
}

Windows Title Updater for the RIPE NCC Database

View Script og GitHub

// ==UserScript==
// @name         TitleFixer - RIPE Database
// @namespace    https://github.com/netravnen/UserJSScripts
// @version      1.1.6
// @description  Change the title to something meaningful
// @author       netravnen
// @match        https://apps.db.ripe.net/search/lookup.html?source=*&key=*-RIPE&type=person
// @match        https://apps.db.ripe.net/search/lookup.html?source=*&type=person&key=*-RIPE
//
// @match        https://apps.db.ripe.net/search/lookup.html?source=*&key=*&type=mntner
// @match        https://apps.db.ripe.net/search/lookup.html?source=*&type=mntner&key=*
//
// @match        https://apps.db.ripe.net/search/lookup.html?source=*&key=ORG-*-RIPE&type=organisation
// @match        https://apps.db.ripe.net/search/lookup.html?source=*&type=organisation&key=ORG-*-RIPE
// @grant        none
// @UpdateURL    https://github.com/netravnen/UserJSScripts/raw/master/TitleFixer_RIPE_Database.user.js
// @homepageURL  https://github.com/netravnen/UserJSScripts/raw/master/TitleFixer_RIPE_Database.user.js
/**
Update 1.1.6 2018-08-08 Moved source to https://github.com/netravnen/UserJSScripts/
Update 1.1.5 2017-10-25 Updated namespace
Update 1.1.4 2017-10-25 Updated author github nickname because was changed in the past + Added @homepageURL
Update 1.1.3 2017-04-03 [..]
Update 1.1.2 2017-04-03 Updated regex to allow for 0 numbers in -RIPE strings
Update 1.1.1 2017-04-03 Updated inflexibel regex to of person/org chars in -RIPE strings
Update 1.1.0 2017-03-14 Added types maintainer and organization
Update 1.0.0 2017-03-14 Initial Commit
 */
// ==/UserScript==

(function() {
    'use strict';

    var type,title,identity,website;
    identity = document.getElementById( 'results' );
    website = document.getElementById( 'logo' ).getAttribute( 'alt' );
    // Person
    if (location.href.match( /search\/lookup\.html\?source=(ripe|RIPE)\&(key\=([A-Z]{2,4})([0-9]+)?\-RIPE\&type=person|type=person\&key\=([A-Z]{2,4})([0-9]+)?\-RIPE)/ )) {
        type = 'PERSON';
        title = location.href.match( /([A-Z]{2,4})([0-9]+)?\-RIPE/i )[0];
        identity = identity.querySelector( 'ul.attrblock > li:nth-child(1)' );
    }
    // Maintainer
    else if (location.href.match( /search\/lookup\.html\?source=(ripe|RIPE)\&(key\=([a-z0-9]+)\-mnt\&type=mntner|type=mntner\&key\=([a-z0-9]+)\-mnt)/ )) {
        type = 'MAINTAINER';
        title = location.href.match( /([a-z0-9]+)\-mnt/i )[0];
        identity = identity.querySelector( 'ul.attrblock > li:nth-child(2)' );
    }
    // Oranization
    else if (location.href.match( /search\/lookup\.html\?source=(ripe|RIPE)\&(key\=ORG\-([A-Z]{2,4})([0-9]+)?\-RIPE\&type=organisation|type=organisation\&key\=ORG\-([A-Z]{2,4})([0-9]+)?\-RIPE)/ )) {
        type = 'ORGANIZATION';
        title = location.href.match( /ORG\-([A-Z]{2,4})([0-9]+)?\-RIPE/i )[0];
        identity = identity.querySelector( 'ul.attrblock > li:nth-child(2)' );
    }
    title = title.toUpperCase();
    identity = identity.innerHTML.split(":")[1].trim();
    document.title = title + ' - ' + identity + ' - ' + type + ' - ' + website;
    console.log("Title tag splurged - TitleFixer - RIPE Database v1.1");
})();