-
Notifications
You must be signed in to change notification settings - Fork 672
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[202012][minigraph] Consume golden_config_db.json while loading minig…
…raph (#2227) This PR is to cherry-pick changes in PR #2140 to 202012 branch after resolving conflicts.
- Loading branch information
Showing
7 changed files
with
733 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,113 @@ | ||
{ | ||
"running_config": { | ||
"ACL_TABLE": { | ||
"DATAACL": { | ||
"policy_desc": "DATAACL", | ||
"ports": [ | ||
"Ethernet4" | ||
], | ||
"stage": "ingress", | ||
"type": "L3" | ||
}, | ||
"NTP_ACL": { | ||
"policy_desc": "NTP_ACL", | ||
"services": [ | ||
"NTP" | ||
], | ||
"stage": "ingress", | ||
"type": "CTRLPLANE" | ||
} | ||
}, | ||
"AUTO_TECHSUPPORT_FEATURE": { | ||
"bgp": { | ||
"rate_limit_interval": "600", | ||
"state": "enabled" | ||
}, | ||
"database": { | ||
"rate_limit_interval": "600", | ||
"state": "enabled" | ||
} | ||
}, | ||
"PORT": { | ||
"Ethernet4": { | ||
"admin_status": "up", | ||
"alias": "fortyGigE0/4", | ||
"description": "Servers0:eth0", | ||
"index": "1", | ||
"lanes": "29,30,31,32", | ||
"mtu": "9100", | ||
"pfc_asym": "off", | ||
"speed": "40000", | ||
"tpid": "0x8100" | ||
}, | ||
"Ethernet8": { | ||
"admin_status": "up", | ||
"alias": "fortyGigE0/8", | ||
"description": "Servers1:eth0", | ||
"index": "2", | ||
"lanes": "33,34,35,36", | ||
"mtu": "9100", | ||
"pfc_asym": "off", | ||
"speed": "40000", | ||
"tpid": "0x8100" | ||
} | ||
} | ||
}, | ||
"golden_config": { | ||
|
||
}, | ||
"expected_config": { | ||
"ACL_TABLE": { | ||
"DATAACL": { | ||
"policy_desc": "DATAACL", | ||
"ports": [ | ||
"Ethernet4" | ||
], | ||
"stage": "ingress", | ||
"type": "L3" | ||
}, | ||
"NTP_ACL": { | ||
"policy_desc": "NTP_ACL", | ||
"services": [ | ||
"NTP" | ||
], | ||
"stage": "ingress", | ||
"type": "CTRLPLANE" | ||
} | ||
}, | ||
"AUTO_TECHSUPPORT_FEATURE": { | ||
"bgp": { | ||
"rate_limit_interval": "600", | ||
"state": "enabled" | ||
}, | ||
"database": { | ||
"rate_limit_interval": "600", | ||
"state": "enabled" | ||
} | ||
}, | ||
"PORT": { | ||
"Ethernet4": { | ||
"admin_status": "up", | ||
"alias": "fortyGigE0/4", | ||
"description": "Servers0:eth0", | ||
"index": "1", | ||
"lanes": "29,30,31,32", | ||
"mtu": "9100", | ||
"pfc_asym": "off", | ||
"speed": "40000", | ||
"tpid": "0x8100" | ||
}, | ||
"Ethernet8": { | ||
"admin_status": "up", | ||
"alias": "fortyGigE0/8", | ||
"description": "Servers1:eth0", | ||
"index": "2", | ||
"lanes": "33,34,35,36", | ||
"mtu": "9100", | ||
"pfc_asym": "off", | ||
"speed": "40000", | ||
"tpid": "0x8100" | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,122 @@ | ||
{ | ||
"running_config": { | ||
"ACL_TABLE": { | ||
"DATAACL": { | ||
"policy_desc": "DATAACL", | ||
"ports": [ | ||
"Ethernet4" | ||
], | ||
"stage": "ingress", | ||
"type": "L3" | ||
}, | ||
"NTP_ACL": { | ||
"policy_desc": "NTP_ACL", | ||
"services": [ | ||
"NTP" | ||
], | ||
"stage": "ingress", | ||
"type": "CTRLPLANE" | ||
} | ||
}, | ||
"AUTO_TECHSUPPORT_FEATURE": { | ||
"bgp": { | ||
"rate_limit_interval": "600", | ||
"state": "enabled" | ||
}, | ||
"database": { | ||
"rate_limit_interval": "600", | ||
"state": "enabled" | ||
} | ||
}, | ||
"PORT": { | ||
"Ethernet4": { | ||
"admin_status": "up", | ||
"alias": "fortyGigE0/4", | ||
"description": "Servers0:eth0", | ||
"index": "1", | ||
"lanes": "29,30,31,32", | ||
"mtu": "9100", | ||
"pfc_asym": "off", | ||
"speed": "40000", | ||
"tpid": "0x8100" | ||
}, | ||
"Ethernet8": { | ||
"admin_status": "up", | ||
"alias": "fortyGigE0/8", | ||
"description": "Servers1:eth0", | ||
"index": "2", | ||
"lanes": "33,34,35,36", | ||
"mtu": "9100", | ||
"pfc_asym": "off", | ||
"speed": "40000", | ||
"tpid": "0x8100" | ||
} | ||
} | ||
}, | ||
"golden_config": { | ||
"ACL_TABLE": { | ||
"EVERFLOWV6": { | ||
"policy_desc": "EVERFLOWV6", | ||
"ports": [ | ||
"Ethernet12" | ||
], | ||
"stage": "ingress", | ||
"type": "MIRRORV6" | ||
} | ||
}, | ||
"AUTO_TECHSUPPORT_FEATURE": { | ||
"bgp": { | ||
"state": "disabled" | ||
}, | ||
"database": { | ||
"state": "disabled" | ||
} | ||
}, | ||
"PORT": { | ||
"Ethernet12": { | ||
"admin_status": "up", | ||
"alias": "fortyGigE0/12", | ||
"description": "Servers2:eth0", | ||
"index": "3", | ||
"lanes": "37,38,39,40", | ||
"mtu": "9100", | ||
"pfc_asym": "off", | ||
"speed": "40000", | ||
"tpid": "0x8100" | ||
} | ||
} | ||
}, | ||
"expected_config": { | ||
"ACL_TABLE": { | ||
"EVERFLOWV6": { | ||
"policy_desc": "EVERFLOWV6", | ||
"ports": [ | ||
"Ethernet12" | ||
], | ||
"stage": "ingress", | ||
"type": "MIRRORV6" | ||
} | ||
}, | ||
"AUTO_TECHSUPPORT_FEATURE": { | ||
"bgp": { | ||
"state": "disabled" | ||
}, | ||
"database": { | ||
"state": "disabled" | ||
} | ||
}, | ||
"PORT": { | ||
"Ethernet12": { | ||
"admin_status": "up", | ||
"alias": "fortyGigE0/12", | ||
"description": "Servers2:eth0", | ||
"index": "3", | ||
"lanes": "37,38,39,40", | ||
"mtu": "9100", | ||
"pfc_asym": "off", | ||
"speed": "40000", | ||
"tpid": "0x8100" | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.