OSPF LSA Database Analyzer
.calc-header {
margin-bottom: 30px;
padding: 25px;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
border-radius: 12px;
box-shadow: 0 4px 6px rgba(0,0,0,0.1);
color: white;
}
.calc-header h2 {
margin-top: 0;
color: white;
font-size: 28px;
margin-bottom: 10px;
}
.calc-header p {
margin: 10px 0;
opacity: 0.95;
font-size: 15px;
}
.input-group {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 15px;
margin-top: 20px;
}
.input-field {
display: flex;
flex-direction: column;
}
.input-field label {
margin-bottom: 8px;
font-weight: bold;
color: white;
font-size: 14px;
}
.input-field input,
.input-field select,
.input-field textarea {
padding: 14px;
font-size: 14px;
border: 2px solid rgba(255,255,255,0.3);
border-radius: 6px;
background: rgba(255,255,255,0.95);
transition: all 0.3s ease;
color: #333;
}
.input-field input:focus,
.input-field select:focus,
.input-field textarea:focus {
outline: none;
border-color: #4CAF50;
background: white;
box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}
.cli-textarea {
font-family: 'Courier New', 'Lucida Console', monospace;
font-size: 12px;
resize: vertical;
min-height: 160px;
}
.vendor-select {
font-size: 14px;
cursor: pointer;
}
.button-group {
margin-top: 20px;
display: flex;
gap: 10px;
flex-wrap: wrap;
}
.submit-btn {
padding: 14px 35px;
font-size: 16px;
background: #4CAF50;
color: white;
border: none;
border-radius: 6px;
cursor: pointer;
font-weight: bold;
transition: all 0.3s ease;
box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.submit-btn:hover {
background: #45a049;
transform: translateY(-1px);
box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}
.submit-btn:active {
background: #3d8b40;
transform: translateY(0);
}
.result-section {
background: white;
border: 1px solid #e0e0e0;
border-radius: 8px;
margin-bottom: 15px;
overflow: hidden;
box-shadow: 0 2px 4px rgba(0,0,0,0.05);
transition: all 0.3s ease;
}
.result-section:hover {
box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.section-header {
background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
color: white;
padding: 15px 20px;
font-size: 18px;
font-weight: bold;
}
.section-content {
padding: 20px;
background: #fafafa;
}
.data-row {
display: flex;
margin: 12px 0;
padding: 10px;
background: white;
border-radius: 4px;
border-left: 3px solid #4CAF50;
}
.data-label {
font-weight: bold;
color: #555;
min-width: 180px;
flex-shrink: 0;
}
.data-value {
color: #333;
font-family: 'Courier New', monospace;
word-break: break-word;
}
.data-value.highlight {
color: #4CAF50;
font-weight: bold;
font-size: 18px;
}
.help-text {
margin-top: 15px;
font-size: 13px;
color: rgba(255,255,255,0.9);
background: rgba(0,0,0,0.15);
padding: 10px 15px;
border-radius: 4px;
line-height: 1.6;
}
.help-text strong {
color: white;
}
/* LSA Bar Chart */
.lsa-bar-row {
display: flex;
align-items: center;
margin: 8px 0;
gap: 10px;
}
.lsa-type-label {
min-width: 200px;
font-size: 13px;
color: #555;
font-weight: bold;
flex-shrink: 0;
}
.lsa-bar-track {
flex: 1;
background: #e8e8e8;
border-radius: 4px;
height: 22px;
overflow: hidden;
}
.lsa-bar-fill {
height: 100%;
border-radius: 4px;
transition: width 0.6s ease;
min-width: 2px;
}
.lsa-count-badge {
min-width: 36px;
text-align: right;
font-weight: bold;
color: #333;
font-size: 14px;
}
/* Table styles */
table tr:hover td {
background: #f5f9ff !important;
}
th[data-col] {
user-select: none;
}
th[data-col]:hover {
background: #e8e8e8 !important;
}
th .sort-arrow {
color: #aaa;
font-size: 11px;
}
.filter-bar select,
.filter-bar input[type="checkbox"] {
cursor: pointer;
}
/* Alert badges */
.alert-badge {
display: inline-block;
padding: 4px 12px;
border-radius: 12px;
font-size: 13px;
font-weight: bold;
color: white;
}
/* Graph legend */
.legend-dot {
display: inline-block;
width: 14px;
height: 14px;
border-radius: 3px;
vertical-align: middle;
margin-right: 4px;
}
/* Responsive */
@media (max-width: 768px) {
.input-group {
grid-template-columns: 1fr;
}
.lsa-type-label {
min-width: 130px;
font-size: 11px;
}
#ospf-graph {
height: 280px !important;
}
.data-row {
flex-direction: column;
}
.data-label {
margin-bottom: 5px;
min-width: auto;
}
.section-header {
font-size: 15px;
}
}
@media (max-width: 480px) {
.calc-header h2 {
font-size: 20px;
}
#ospf-graph {
height: 220px !important;
}
.lsa-type-label {
min-width: 100px;
font-size: 10px;
}
.submit-btn {
padding: 12px 20px;
font-size: 14px;
}
}
Lila fejléc bemenetekkel
Eredményterület (rejtett, amíg az Elemzés gombra nem kattint)
végeredmény-terület
végén vízkő-tartály
OSPF LSA adatbázis-elemző
Pasztashow ip ospf databasekimenet a terület topológiájának megjelenítéséhez, az elavult LSA-k észleléséhez és az OSPF hálózat elemzéséhez.
Parancsok:Cisco IOS/NX-OS:
Választható részlet: csatolás
show ip ospf database|
Boróka:show ospf database|
Aruba AOS-CX:show ip ospf database|
SONiC (vtysh):show ip ospf databaseVálasztható részlet: csatolás
summary, external, vagyrouteraz LSA típus szerinti szűréshez.
A SONiC/FRR kimenet megegyezik a Cisco IOS formátummal.