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)