mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-09 11:18:52 +00:00
tests: Fixed input dict at create_router_bgp
Missing comma between the key-value pairs Signed-off-by: y-bharath14 <y.bharath@samsung.com>
This commit is contained in:
parent
77b52da131
commit
6aaffc7c37
@ -11,7 +11,7 @@ import traceback
|
|||||||
from copy import deepcopy
|
from copy import deepcopy
|
||||||
from time import sleep
|
from time import sleep
|
||||||
|
|
||||||
# Import common_config to use commomnly used APIs
|
# Import common_config to use commonly used APIs
|
||||||
from lib.common_config import (
|
from lib.common_config import (
|
||||||
create_common_configurations,
|
create_common_configurations,
|
||||||
FRRCFG_FILE,
|
FRRCFG_FILE,
|
||||||
@ -63,29 +63,29 @@ def create_router_bgp(tgen, topo=None, input_dict=None, build=False, load_config
|
|||||||
"address_family": {
|
"address_family": {
|
||||||
"ipv4": {
|
"ipv4": {
|
||||||
"unicast": {
|
"unicast": {
|
||||||
"default_originate":{
|
"default_originate": {
|
||||||
"neighbor":"R2",
|
"neighbor": "R2",
|
||||||
"add_type":"lo"
|
"add_type": "lo",
|
||||||
"route_map":"rm"
|
"route_map": "rm",
|
||||||
|
|
||||||
},
|
},
|
||||||
"redistribute": [{
|
"redistribute": [
|
||||||
|
{
|
||||||
"redist_type": "static",
|
"redist_type": "static",
|
||||||
"attribute": {
|
"attribute": {
|
||||||
"metric" : 123
|
"metric": 123,
|
||||||
}
|
|
||||||
},
|
},
|
||||||
{"redist_type": "connected"}
|
},
|
||||||
|
{"redist_type": "connected"},
|
||||||
],
|
],
|
||||||
"advertise_networks": [
|
"advertise_networks": [
|
||||||
{
|
{
|
||||||
"network": "20.0.0.0/32",
|
"network": "20.0.0.0/32",
|
||||||
"no_of_network": 10
|
"no_of_network": 10,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"network": "30.0.0.0/32",
|
"network": "30.0.0.0/32",
|
||||||
"no_of_network": 10
|
"no_of_network": 10,
|
||||||
}
|
},
|
||||||
],
|
],
|
||||||
"neighbor": {
|
"neighbor": {
|
||||||
"r3": {
|
"r3": {
|
||||||
@ -94,31 +94,32 @@ def create_router_bgp(tgen, topo=None, input_dict=None, build=False, load_config
|
|||||||
"dest_link": {
|
"dest_link": {
|
||||||
"r4": {
|
"r4": {
|
||||||
"allowas-in": {
|
"allowas-in": {
|
||||||
"number_occurences": 2
|
"number_occurences": 2,
|
||||||
},
|
},
|
||||||
"prefix_lists": [
|
"prefix_lists": [
|
||||||
{
|
{
|
||||||
"name": "pf_list_1",
|
"name": "pf_list_1",
|
||||||
"direction": "in"
|
"direction": "in",
|
||||||
}
|
},
|
||||||
],
|
],
|
||||||
"route_maps": [{
|
"route_maps": [
|
||||||
"name": "RMAP_MED_R3",
|
{
|
||||||
"direction": "in"
|
"name": "RMAP_MED_R3",
|
||||||
}],
|
"direction": "in",
|
||||||
"next_hop_self": True
|
},
|
||||||
|
],
|
||||||
|
"next_hop_self": True,
|
||||||
|
},
|
||||||
|
"r1": {"graceful-restart-helper": True},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
},
|
},
|
||||||
"r1": {"graceful-restart-helper": True}
|
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
Returns
|
Returns
|
||||||
-------
|
-------
|
||||||
|
Loading…
Reference in New Issue
Block a user