How mjl85/natlas works
Main Components Identification
The system should be represented with these key components:
a) Core Engine Layer:
• Discovery Engine (natlas/natlas.py)
• Network Management (natlas/network.py)
• Node Management (natlas/node.py, node_stack.py, node_vss.py)
• SNMP Interface (natlas/snmp.py)
b) Module Layer:
• Network Analysis Modules (get-arp-table.py, get-hosts.py, etc.)
• Configuration Management (modules/checkconfig.py, newconfig.py)
c) Output Layer:
• Output Handlers (natlas/output.py)
• Catalog Output (natlas/output_catalog.py)
Component Relationships
[CLI Interface (natlas-cli.py)]
• ↓
[Configuration Layer (config.py)]
• ↓
[Core Engine Layer] ←→ [SNMP Interface]
• ↙ ↓ ↘ ↑
[Modules] [Output] [Network Discovery]
Implementation Details
Technical aspects:
• SNMP v2 communication paths
• CDP/LLDP discovery flows
• Module execution paths
• Configuration file interaction
Specific Elements
a) Discovery Process Flow:
[Root Node] → [SNMP Query] → [CDP/LLDP Discovery] → [Node Evaluation] → [ACL Processing]
b) Module Integration:
[Module API] → [Core Engine] → [Network Operations] → [Output Generation]
Important Architectural Notes
• Modular design pattern
• Separation between discovery logic and output generation
• Configuration-driven behavior
• ACL-based discovery control flow