Page MenuHomeDevCentral

Installation of package frr10 on routers
Needs RevisionPublic

Authored by yousra on Thu, Apr 9, 14:30.

Details

Summary

Installation of FRRouting (FRR) on router-002 and router-003 + add to the salt state (roles/router/carp/init.sls) the configuration file to enable FRRouting (FRR) on boot with OSPF support.

Ref T2303

Test Plan
  • salt 'router-002' state.apply roles/router
  • salt 'router-003' state.apply roles/router

Diff Detail

Repository
rOPS Nasqueron Operations
Lint
Lint Skipped
Unit
No Test Coverage
Branch
install-frr
Build Status
Buildable 6590
Build 6874: arc lint + arc unit

Event Timeline

yousra requested review of this revision.Thu, Apr 9, 14:30
yousra created this revision.
dereckson requested changes to this revision.Thu, Apr 9, 17:09

Let's create a new unit for OSPF and move those in roles/router/frrouting

I'd suggest to adhere to the conventions we used for the last units:

  • .software for pkg.installed
  • .config for later configuration
  • .service for the RC cuisine

For the service, start it, see _resources/templates/service/rc/service.sls for a template to do so

roles/router/carp/init.sls
44

(1) Package name seems to be dependent of OS we target, let's declare it in /map.jinja under a new frrouting key

(2) We can actually simplify that one, as by default, the state ID is the value passed implicitly to the name parameter:

{{ packages.frrouting }}:
  pkg.installed
48

Should be enclosed in a {% if services.manager == "rc" %} condition.

Requires an import:
{% from "map.jinja" import services with context %} (actually import packages, services, per previous comment)

This revision now requires changes to proceed.Thu, Apr 9, 17:09