Scénario #27415
Faire fonctionner les routes statiques avec le bonding
Statut:
Terminé (Sprint)
Priorité:
Normal
Assigné à:
Catégorie:
-
Version cible:
Début:
27/03/2019
Echéance:
12/04/2019
% réalisé:
100%
Temps estimé:
(Total: 3.00 h)
Temps passé:
(Total: 2.00 h)
Points de scénarios:
1.0
Restant à faire (heures):
0.00 heure
Estimation basée sur la vélocité:
Release:
Liens avec la release:
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
Sous-tâches
Historique
#1 Mis à jour par Emmanuel GARETTE il y a presque 7 ans
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 Mis à jour par Fabrice Barconnière il y a presque 7 ans
- Tracker changé de Demande à Scénario
- Sujet changé de les routes statiques ne fonctionnent pas avec le bonding à Faie fonctionner les routes statiques avec le bonding
- Echéance mis à 12/04/2019
- Version cible mis à sprint 2019 13-15 Equipe MENSR
- Points de scénarios mis à 1.0
#3 Mis à jour par Fabrice Barconnière il y a presque 7 ans
- Assigné à mis à Fabrice Barconnière
#4 Mis à jour par Fabrice Barconnière il y a presque 7 ans
- Sujet changé de Faie fonctionner les routes statiques avec le bonding à Faire fonctionner les routes statiques avec le bonding
- Description mis à jour (diff)
#5 Mis à jour par Scrum Master il y a presque 7 ans
- Statut changé de Nouveau à Terminé (Sprint)
#6 Mis à jour par Joël Cuissinat il y a presque 7 ans
- Release mis à EOLE 2.7.0