Project

General

Profile

Scénario #27415

Faire fonctionner les routes statiques avec le bonding

Added by Emmanuel GARETTE over 4 years ago. Updated over 4 years ago.

Status:
Terminé (Sprint)
Priority:
Normal
Category:
-
Start date:
03/27/2019
Due date:
04/12/2019
% Done:

100%

Estimated time:
(Total: 3.00 h)
Spent time:
(Total: 2.00 h)
Story points:
1.0
Remaining (hours):
0.00 hour
Velocity based estimate:
Release:
Release relationship:
Auto

Description

Dans le fichier généré :

root@mse-p-haproxy-b:~# cat /etc/netplan/01-extras-routes.yaml 

network:
   version: 2
   renderer: networkd
   networks:
       bond1:
           routes:
               - to: 10.247.126.0/24
                 via: 10.253.0.1
                 metric: 100

Il faut remplacer networks par bonds


Subtasks

Tâche #27430: Corriger le template 01-extras-routes.yaml pour générer correctement les routes statiques sur les bondsFerméFabrice Barconnière

History

#1 Updated by Emmanuel GARETTE over 4 years ago

Ce template fonctionne chez moi :

%set %%routes_network = {}
%set %%routes_bonding = {}
%set %%routes = False
%for %%route in %%route_adresse
    %set %%interface = %%route.route_int
    %if %%int(%%interface) >= %%int(%%nombre_interfaces)
        %continue
    %end if
    %set %%carte = %%getVar(u'nom_zone_eth'+ %%interface)
    %set %%routes = True
%if %%getVar(u'activer_bonding_eth'+ %%interface) == 'non'
    %%routes_network.setdefault(%%carte, []).append({'dest': %%route,
                                             'gw': %%route.route_gw,
                                             'netmask': %%route.route_netmask})
%else
    %%routes_bonding.setdefault(%%carte, []).append({'dest': %%route,
                                             'gw': %%route.route_gw,
                                             'netmask': %%route.route_netmask})
%end if
%end for
%if %%routes
network:
   version: 2
   renderer: networkd
%if %%routes_network
   networks:
   %for %%interface in %%routes_network
       %%interface:
           routes:
           %for %%route in %%routes_network[interface]:
               - to: %%route.dest/%%calc_classe(%%route.netmask)
                 via: %%route.gw
                 metric: 100
           %end for
    %end for
%end if
%if %%routes_bonding
   bonds:
   %for %%interface in %%routes_bonding
       %%interface:
           routes:
           %for %%route in %%routes_bonding[interface]:
               - to: %%route.dest/%%calc_classe(%%route.netmask)
                 via: %%route.gw
                 metric: 100
           %end for
    %end for
%end if
%end if

#2 Updated by Fabrice Barconnière over 4 years ago

  • Tracker changed from Demande to Scénario
  • Subject changed from les routes statiques ne fonctionnent pas avec le bonding to Faie fonctionner les routes statiques avec le bonding
  • Due date set to 04/12/2019
  • Target version set to sprint 2019 13-15 Equipe MENSR
  • Story points set to 1.0

#3 Updated by Fabrice Barconnière over 4 years ago

  • Assigned To set to Fabrice Barconnière

#4 Updated by Fabrice Barconnière over 4 years ago

  • Subject changed from Faie fonctionner les routes statiques avec le bonding to Faire fonctionner les routes statiques avec le bonding
  • Description updated (diff)

#5 Updated by Scrum Master over 4 years ago

  • Status changed from Nouveau to Terminé (Sprint)

#6 Updated by Joël Cuissinat over 4 years ago

  • Release set to EOLE 2.7.0

Also available in: Atom PDF