1. RD verification (manual/auto).
2. RT verification(manual)
3. In an active/standby EVPN implementation, if active DCG goes down,
- secondary takes over.
+ secondary takes over.
4. EVPN routes are advertised/withdrawn, based on VNFs
- advertising/withdrawing IP prefixes.
+ advertising/withdrawing IP prefixes.
5. Route-map operations for EVPN address family.
6. BGP attributes for EVPN address-family.
"""
create_route_maps,
verify_cli_json,
start_router_daemons,
- kill_router_daemons,
create_static_routes,
stop_router,
start_router,
configure_vxlan,
configure_brctl,
verify_vrf_vni,
- create_interface_in_kernel
+ create_interface_in_kernel,
)
from lib.topolog import logger
clear_bgp,
verify_best_path_as_per_bgp_attribute,
verify_attributes_for_evpn_routes,
- verify_evpn_routes
+ verify_evpn_routes,
)
from lib.topojson import build_topo_from_json, build_config_from_json
# Creating configuration from JSON
build_config_from_json(tgen, topo)
- if version_cmp(platform.release(), '4.19') < 0:
- error_msg = ('EVPN tests will not run (have kernel "{}", '
- 'but it requires >= 4.19)'.format(platform.release()))
+ if version_cmp(platform.release(), "4.19") < 0:
+ error_msg = (
+ 'EVPN tests will not run (have kernel "{}", '
+ "but it requires >= 4.19)".format(platform.release())
+ )
pytest.skip(error_msg)
global BGP_CONVERGENCE
"network": NETWORK3_1[addr_type],
"next_hop": NEXT_HOP_IP[addr_type],
"vrf": "GREEN",
- }
+ },
]
- }
+ },
}
result = create_static_routes(tgen, input_dict_1)
"vrf": "RED",
"address_family": {
"l2vpn": {"evpn": {"rd": "100.100.100.100:100"}}
- }
+ },
}
]
}
"network": NETWORK3_1[addr_type],
"next_hop": NEXT_HOP_IP[addr_type],
"vrf": "GREEN",
- }
+ },
]
- }
+ },
}
result = create_static_routes(tgen, input_dict_1)
"l2vpn": {
"evpn": {"route-target": {"export": [{"value": "100:100"}]}}
},
- }
+ },
}
]
}
"network": NETWORK1_4[addr_type],
"next_hop": NEXT_HOP_IP[addr_type],
"vrf": "GREEN",
- }
+ },
]
- }
+ },
}
result = create_static_routes(tgen, input_dict_1)
"network": NETWORK3_1[addr_type],
"next_hop": NEXT_HOP_IP[addr_type],
"vrf": "GREEN",
- }
+ },
]
- }
+ },
}
result = create_static_routes(tgen, input_dict_1)
"network": NETWORK3_1[addr_type],
"next_hop": NEXT_HOP_IP[addr_type],
"vrf": "GREEN",
- }
+ },
]
- }
+ },
}
result = create_static_routes(tgen, input_dict_1)
"network": NETWORK3_1[addr_type],
"next_hop": NEXT_HOP_IP[addr_type],
"vrf": "GREEN",
- }
+ },
]
- }
+ },
}
result = create_static_routes(tgen, input_dict_1)
"network": NETWORK3_1[addr_type],
"next_hop": NEXT_HOP_IP[addr_type],
"vrf": "GREEN",
- }
+ },
]
- }
+ },
}
result = create_static_routes(tgen, input_dict_1)