Repository navigation
Release date
- Ver 3.1.2 -- 2026/5/14
Ver 3.1.2y -- 2026/11/26
- Security fix (Online):
POST /run_commands/<job_id>now rejects command lines that contain--masteror the--master=form. Before this fix, a--masterin a command line took precedence over the job's own master, so a command could read or modify a master file outside the job's folder. The whole request is rejected before any command runs and before a new master version is created. See GHSA-qcqc-f354-xx2c. - Local MCP:
run_commandsalso rejects the--master=form, in addition to--master. - Thanks to @nagarajulu for reporting this issue responsibly.
Ver 3.1.2x -- 2026/11/25
- New feature (Offline + Online + Local MCP): in the L3 All Areas diagram, the devices of each area are laid out like the L1 diagram. Each row of an area is spread over the area with equal gaps at both ends and between the cells, instead of being packed to the left. Devices keep at least 0.5 in between them.
_AIR_cells in POSITION_SHAPE keep their room as in L1: an area is widened when a row needs more room for its_AIR_cells, so groups of devices placed apart with_AIR_stay apart. Diagrams with many_AIR_cells become wider. The PowerPoint slide stays at its 56 in maximum, so a very wide diagram can extend past the slide; the SVG shows the whole diagram.- L3 All Areas: when devices shift to keep segment lines off other devices, an area now pushes the areas to its right only by how far its right edge really grows, and the line-over-device check is repeated at the pushed positions. The page outline keeps its right edge, and the pull-back of far-right devices no longer closes the room between spread devices.
- Per-area L3 diagrams, the vertical layout and WayPoint placement are unchanged. Setting
L3_DEVICE_X_LAYOUT = 'packed'in the L3 diagram module restores the previous layout.
Ver 3.1.2w -- 2026/11/18
- New feature (Offline + Online + Local MCP): the L3 All Areas diagram places areas on the Area Position grid, as the L1 and L2 diagrams do. In a row that contains blank cells, each area sits at the center of its cell as a fraction of the page width, at least 1.5 in from its neighbours and inside the page. Rows without blank cells, rows that already fill the page, and the per-area L3 diagrams are drawn as before.
- L3 All Areas: when devices shift right to keep segment lines off other devices, the line-over-device check now uses the pushed area positions and repeats until they settle, and a row that would pass the page edge moves back into its blank cells. A row led by a device without L3 interfaces now moves with its area. WayPoints follow the moved areas.
- Bug fix (Offline + Online + Local MCP): in the L3 diagram, the area name no longer overlaps the IP address labels above the first row of devices. The frame top moves up only when a label would overlap it, leaving 0.05 in. Devices, lines and labels stay where they were.
- Bug fix (Offline + Online + Local MCP): in the L3 All Areas diagram, a WayPoint area with no area to its right (for example
Connector) no longer ends up far to the right with an overlong segment bar. It now sits the usual distance from its area's frame. - Masters whose areas do not move in the L3 All Areas diagram produce the same output as before.
Ver 3.1.2v -- 2026/10/29
- New feature (Offline + Online + Local MCP): untagged (native) VLANs. An L2 segment name ending in
_UNTAG_(for exampleVlan1_UNTAG_) is the untagged VLAN of that port. On one port,Vlan1andVlan1_UNTAG_are the same VLAN and the_UNTAG_form wins. A port carries at most one_UNTAG_segment. - Input:
add l2_segment,add l2_segment_bulk,add vport_l2_direct_bindingand the Offline L2 Table sync reject a second_UNTAG_segment, or a bare_UNTAG_, with an error.delete l2_segmentanddelete vport_l2_direct_bindingmatch by VLAN.add l2_segment_bulknow reports failed entries asWarnings: N entry(ies) with errors. - Broadcast domains (L3 diagram, show commands): inside a device,
Vlan1andVlan1_UNTAG_are one domain. Across an L1 link, untagged connects to untagged (even with different names), tagged connects to the same tagged name, and untagged never connects to tagged. Toward an L3 port, only the_UNTAG_segment connects. - L2 diagram: a device draws one box named
Vlan1_UNTAG_for both forms. show commands and the Device Table keep the stored names. - Bug fix (Offline): the L2 Table sync no longer leaves a space after each comma in the "L2 Name directly received by L3 Virtual Port" column.
- Masters without
_UNTAG_produce the same output as before. The command reference (RULE 9, 9.5, 11), the sample AI Context and the Wiki are updated.
Ver 3.1.2u -- 2026/10/27
- New feature (Offline + Online + Local MCP): IPv6 on L3 interfaces, including IPv4 + IPv6 dual stack.
add ip_address,add ip_address_bulkanddelete ip_addressacceptaddress/prefix; IPv6 is stored in compressed form. - L3 diagram: IPv6 follows the IPv4 style (segment
2001:db8:1000:10::/64, interface::1), IPv4 first. IPv6 loopback addresses use a 5pt font. SVG segment labels now use the same 6pt font as the PPTX. - IP Address Summary / List: IPv4 first, then IPv6; the IPv6 mask is shown as
/64. - Not accepted or drawn: link-local, multicast, loopback, unspecified, IPv4-mapped, site-local and zone index (
%). Auto IP Addressing stays IPv4-only and keeps existing IPv6. - Security (Offline + Online + Local MCP): files open without a shell, master values are read with
ast.literal_eval, user-selected SVG is parsed withdefusedxml, and CSV port renames no longer useexec.
Ver 3.1.2t -- 2026/10/26
- Bug fix (Offline + Online + Local MCP): a per-area L2 diagram could be drawn far shorter than the same area in the All Areas L2 diagram, squeezing every device into a strip only one tier high. The L2 preparation step filled the folder name into the blank first cell of each continuation row of the shape layout, and it did so on the layout itself rather than on a copy. The per-area WayPoint filter then rebuilt the folder-height input from that altered layout, so the height calculation saw the folder name on every row and measured only the last tier. It showed up when the target area shared a WayPoint folder with a WayPoint it does not link to. Online SVG and PPTX were affected; Offline was affected only when it fell back to single-process generation.
- The folder names are now filled on copied rows only, so the layout keeps its blank continuation rows. Per-area folders get their full height again (35.5 in instead of 7.4 in on the reported master, matching All Areas). Device sizes and the up/down placement of interfaces are unchanged, and the All Areas output is byte-identical to the previous version. The shared folder-size calculation itself is unchanged.
Ver 3.1.2s -- 2026/10/5
- Bug fix (Offline + Online + Local MCP): deleting a Layer 1 link removed the line but left both ends' unused physical ports in the L2 and L3 device tables. A named physical port is now removed from those tables when no remaining L1 line still uses its full port name, and the existing L1 sync then runs. Virtual-port rows, VLAN rows, and IP addresses stay. The sync function itself is unchanged.
- Bug fix (Offline + Online + Local MCP): deleting a device, a waypoint, or an area removed the line but left the unused physical port on the device that stayed on the layout, because the layer sync writes that row back while the surviving device is still in the shape table. Those deletes now drop the unused opposite physical port by the same rule before the sync. A port that another remaining link still uses is kept, and virtual ports, VLAN rows, and IP addresses stay. The sync function itself is unchanged.
Ver 3.1.2r -- 2026/9/3
- Bug fix (Offline + Online): importing a PowerPoint that placed three or more WayPoints in the same direction of one area kept only two of them in the generated master, so the remaining transfer points were missing from every diagram built from that file. The routine that gathers WayPoints into a shared
_wp_folder decided membership by searching the printed form of the list it was still building, so once the first pair had been recorded every later WayPoint matched that text and was skipped. WayPoints are now grouped by area and direction first, the folder owner is chosen from that group, and each remaining member is paired to the owner, so the whole group reaches both the shape and the line sections of the master. Verified on a four-WayPoint sample and by simulation from two to eight WayPoints in one folder. - Bug fix (Offline + Online): the height sort that orders WayPoints inside a folder matched names the same way, which let a name be swallowed by a longer one starting with it -
WAN1byWAN10, for example. Both comparisons now test the names themselves.
Ver 3.1.2q -- 2026/8/22
- Dependency (Offline + Online + Local MCP): removed the GPLv3-licensed
ciscoconfparse, which raised license-compatibility concerns alongside this repo's Apache-2.0 license. - Removed (Offline): the built-in "Convert from CML(yaml)" GUI import feature that was ciscoconfparse's only caller (External Systems tab and the For Cisco tab), including the
.yamlfile-type detection and the three yaml-import classes;pyyamlis also no longer required. The separate Cisco Extensioncml_converteris unaffected and remains the supported way to import CML topologies. - Docs: regenerated the bundled
[AI_Context]no_data.txtsample so it matches the current AI Context reference (RULE 11.5 and the show-output compaction notes).
Ver 3.1.2p -- 2026/8/12
-
Bug fix (Online + Offline + Local MCP): Loopback interfaces disappeared from the L3 topology diagram, addresses and all. The defensive guard added in 3.1.2d skipped every entry whose opposite interface could not be resolved, and a Loopback has no Layer 1 link by definition, so it never joined a broadcast group and the diagram builder never offered it a slot. The guard now sits inside the branch that actually dereferences the opposite interface, so it still protects the case it was written for. Verified on eight masters including a 302-device one: the L1 and L2 diagrams are byte-identical to before and the L3 change is purely additive.
-
Performance (Online + Offline + Local MCP): the AI Context file is considerably smaller. A new shared module compacts the
showdump losslessly - repeated values are legendised, columns that are empty on every row are dropped, and sections that can be rebuilt from another section are replaced by a note naming it. The command reference was rewritten as well, with duplicated rules consolidated and examples trimmed (150,677 -> 131,524 characters). A 302-device master drops from 612 KB to 447 KB, with the show dump itself down 32%. -
Online: after a Run updates the master, the LLM Prompt box is cleared and the AI Context is regenerated, so
Copy & Open/Copyalways hand over the post-command state instead of the context from before the run. -
Bug fix (Online + Offline + Local MCP): the layout writer and the folder-size recalculation each decided on their own which area row is the widest, so the two kept stripping the padding the other had just added and the same master drifted between two layouts on repeated recalculation. Both now pick the row by the same rule.
-
Bug fix (Online + Offline + Local MCP): a per-area L1 or L2 diagram drew WayPoints the area has no link to. Both layers picked WayPoints at the granularity of the
_wp_folder, so every WayPoint sharing a folder with a connected one came along - on a master holding four WayPoints in one folder, an area connected to two of them still drew all four. Selection is now made per WayPoint, the way the L3 diagram already did it, and a folder that loses WayPoints narrows accordingly. Verified across nine masters: the only label changes are the unconnected WayPoints disappearing. -
Bug fix (Online + Local MCP):
export combined_diagram --type per_area --area <name>always failed with anAttributeErrorbefore producing anything. Area validation went through a helper that reads the master path from a Tk widget the CLI never creates. The area list now comes straight from the--masterfile, which also keeps validation aligned with--masterwhen a GUI or web session holds a different master. -
Documentation: the Catalyst SD-WAN converter (
sdwan_converter) is now listed among the Cisco Extension import sources in the README, replacing the note that marked it as planned.
Ver 3.1.2o -- 2026/8/4
-
Performance (Local MCP): the CLI worker is now pre-warmed at server startup and kept alive for the whole session instead of being respawned for every tool call, cutting the fixed per-call cost from about 1,170 ms to about 25 ms. One-shot workers remain an automatic fallback and can be forced with
persistent_worker: falseinmcp_config.json;command_timeout_secondsis now enforced. -
Hardening (Local MCP): the worker IPC frame size is bounded, and raw worker stdout is written to the server log instead of being returned in MCP replies.
-
Bug fix (Local MCP): corrected two
run_commandsdocstring examples that used CLI syntax the engine does not accept (add device ... --area, andadd l1_link, which does not exist). -
AI Context (Online + Offline + Local MCP): RULE 7 Phase 2 now requires running
show l1_linkbeforeadd l1_link_bulkand forbids reusing a port that already carries a link (a duplicate port aborts the whole batch). A matching red flag was added to RULE 6.
Ver 3.1.2n -- 2026/7/31
-
Bug fix (Online): clicking a diagram preview after running CLI commands showed the diagram from before the commands. The preview, the combined L1/L2/L3 HTML, and the ZIP bundle now resolve the per-layer SVGs against the current master version instead of the oldest one left in the working directory.
-
Bug fix (Online): re-uploading a downloaded versioned master (e.g.
[MASTER]<name>_1.nsm) silently rejected every command, because the new version collided with the source filename. Version numbering now advances until a free name is available, and a master name ending in digits (e.g.[MASTER]DC_2024.nsm) keeps its suffix. -
Bug fix (Online): a run rejected before execution reported
0 command(s) failed.with no reason shown, and session restore offered the previous master version on the download button. -
Bug fix (Online + Offline + Local MCP): corrected the typo
Defalut->Defaultwhen reading the L3 instance attribute in the L3 diagram generator, so VRF instance labels render correctly. Thanks to @fdmazzini (#62).
Ver 3.1.2m -- 2026/6/10
- Improved the rendering of the L3 overall configuration diagram.
Ver 3.1.2l -- 2026/6/9
-
Improved the rendering of the L3 overall configuration diagram.
-
Speed up the execution of large numbers of commands in Local MCP.
Ver 3.1.2k -- 2026/6/8
- Bug fix (Online + Offline + Local MCP): Areas overlapped in the Layer 3 overall diagram.
Ver 3.1.2j -- 2026/6/8
-
Added a configurable rendering quality level (2 or 3, default 3) for the Layer 3 overall configuration diagram in the Online and Local MCP editions, set via
l3_render_qualityinns_web_config.json. Level 2 skips the device-shift / line-avoidance pass for faster rendering. -
Fixed errors in the Append Flows and Device Flow table features (both Online and Offline editions) that could occur with master files generated by sna_to_nsm when the flow data omitted optional routing-path columns.
Ver 3.1.2i -- 2026/6/5
- Fixed an issue in the Online edition's Layer 2 overall configuration diagram where devices could sometimes extend beyond the area boundaries.
Ver 3.1.2h -- 2026/5/29
-
Online: new Command Reference viewer in the CLI Commands box -- a searchable side drawer (Quoting / Show / Add / Delete / Rename) with per-command syntax, description, and one-click Insert (into the command box) / Copy. Commands that the Run action skips (e.g.
export) are excluded from the list. -
Online: new Copy Log button next to "View Log" copies the full run log (command + output per line) to the clipboard.
-
Bug fix (Online): the Run results now correctly mark a command as failed (red) when the engine reports failure via
[Error]/Error:/ a non-zero exit / known rejection messages. Previously several real failures (e.g.add devicewith a missing direction) were shown as success (green). -
Online: restored right-click "Copy text" on device / area / port labels in the combined L1/L2/L3 SVG viewer (this was lost when the tabbed viewer replaced the single-SVG preview).
-
Online: Update Master panel layout tidy-up -- the LLM Prompt box is shown above CLI Commands and the vertical padding was reduced.
-
Bug fix (Online + Offline + Local MCP): the L1 All Areas diagram folder sizing now matches the Per-Area diagram. A stale-append bug in the folder-width calculation (and an All-Area vs Per-Area root-width mismatch) had made some areas render up to ~2x wider in All Areas than in Per-Area.
-
Bug fix (Online + Local MCP): the L2 All Areas diagram no longer lets devices (e.g.
Br0X-Edge-RT/Access-SW) overflow past their area frame -- the up-direction virtual-port offset was being double-counted in the device-width calculation. -
Online:
help_msg.jsonhelp tooltips reconciled with current features (master upload accepts.xlsxand.nsm; removed stale entries that no longer have a UI).
Ver 3.1.2g -- 2026/5/27
-
L3 layout (Online + Offline + Local MCP): in the All Areas L3 topology diagram, WayPoints in
_wp_-only Area Position rows are now horizontally snapped to their leftmost connected device (center-aligned) instead of being placed at the row's natural left cascade. The snap automatically falls back to the natural position when it would overflow the diagram width. -
Bug fix (Online + Offline + Local MCP): the new WayPoint X-snap performs a line-over-device safety check so it cannot re-introduce a previously resolved L3 connector crossing (observed on Sample.figure51 where the WAN-1 line could end up on top of WAN-1R
1after snap). -
L3 layout (Online + Offline + Local MCP): widened the visual gap between L3 segment connectors and device edges (
BUFFER0.10" -> 0.20") for better legibility when devices are shifted to avoid line crossings.
Ver 3.1.2f -- 2026/5/27
-
Bug fix (Online + Offline + Local MCP): the All Areas L3 topology diagram now detects residual same-Y segment overlaps that can remain after the lane packing + device shift passes, and automatically re-renders with corrected row assignments (up to 5 retries). Resolves the segment crossings that could still appear on dense masters in 3.1.2e.
-
Bug fix (Online + Local MCP, SVG only): the All Areas L3 SVG could render only a single waypoint shape on masters that triggered the new overlap-retry pass. The SVG path now correctly uses the mock Presentation during the retry pass and truncates captured shapes back to the pre-retry baseline before re-rendering, restoring the full diagram.
Ver 3.1.2e -- 2026/5/26
- L3 layout (Online + Offline + Local MCP): the All Areas L3 topology diagram now compacts segments via interval-graph lane packing -- two L3 segments whose X ranges do not overlap now share the same row instead of stacking. Lower device rows, the area frame, and the outer outline shrink accordingly. On a representative master the outline height dropped roughly 0.75 inches (lane count 6 -> 4).
Ver 3.1.2d -- 2026/5/26
-
Bug fix (Online + Offline + Local MCP):
delete device/delete waypoint/delete areano longer leaves orphan rows in the L2 / L3 tables. The layer sync now builds a valid(Area, Device Name)set fromPOSITION_SHAPEand filters the merge so that entries pointing to deleted devices are dropped. Fixes the blank L3 diagram that could appear after multi-device deletion. -
Defensive guard (Online + Offline + Local MCP):
get_l2_broadcast_domains.runnow skips entries whenget_opposite_if()returnsNoneor a short tuple, preventing aTypeErroron orphaned / manually-edited masters. -
Performance (Online + Offline + Local MCP):
add area_location/update_area_with_mapskip the L2 / L3 sync when no new areas are added (pure relocation), saving roughly 100-500 ms per call.
Ver 3.1.2c -- 2026/5/26
-
Online (SVG mode): L2 All-Areas (overall) topology diagram is now natively supported — single-click renders every area at once, generated in parallel with the L1 / L3 All-Areas diagrams. The legacy threshold-based "Generate" button has been removed and L2 All-Areas is always produced alongside L1 / L3.
-
Online (SVG mode): combined L1/L2/L3 HTML viewer — clicking a thumbnail now opens a tabbed page with L1 Diagram / L2 Diagram / L3 Diagram tabs, each with mouse-wheel zoom and click-and-drag pan.
-
Online:
Download Generated (ZIP)now bundles per-layer L1 / L2 / L3 SVG files alongside the combined[L1L2L3_DIAGRAM]*.htmlviewer (lightweight, area-scoped, and legacy modes). -
Online: Placement tab — per-area sub-table title
(area) Positionrenamed to(area) Position(L1,L2)to indicate the placement applies to both L1 and L2 diagrams. -
Online: toolbar download button label
↓ svg(L1,L2,L3)renamed to↓ html(L1,L2,L3)(matches the actual artifact format). -
CLI (
nsm_cli.py): newexport combined_diagramsubcommand — reuses on-disk per-layer SVGs and regenerates only what is missing. -
Local MCP:
build_default_outputsupgraded from 5 to 6 artifacts;combined_diagramnow also produces[L1L2L3_DIAGRAM]AllAreas_*.html(tabbed viewer) in addition to the three per-layer SVGs, Device Table HTML, and AI Context. -
README: Feature Support Matrix consolidated (21 rows → 15) by merging area / device / waypoint, Layer 1 connection, and Layer 2 / virtual-port rows that share the same support across all four editions.
Ver 3.1.2b -- 2026/5/20
-
AI Context (Online + Offline): added new RULE 11.5 — Endpoint device IP assignment clarifying that physical endpoints (servers / PCs / IoT / storage / hypervisor hosts) bind IPs directly to the L1 physical port (no SVI). Wireless APs remain the only endpoint-class device that uses an SVI.
-
Cross-references to RULE 11.5 added from RULE 11 / RULE 12 / RULE 15 so the new guidance is reachable from any related context.
Ver 3.1.2a -- 2026/5/19
-
Online (SVG mode): per-area thumbnails are now generated on demand from a new area dropdown, with per-(attribute, area) cache for instant re-display.
-
Online: new Device Tables HTML download with six tabs — L1 / L2 / L3 / Attribute / IP Address_Summary / IP Address_List (.nsm-only path).
-
Local MCP: new
export_device_table_htmltool;export_diagramgains an optionalareaargument (L1 / L3 require svg, L2 supports area for both formats). -
CLI (
nsm_cli.py): new--areaoption forexport l1_diagram/export l3_diagram(svg only,per_area/per_area_tag).
What's New in Ver 3.1.2
This is a maintenance and feature release focused on the Online edition's draw.io stencil export pipeline and a parser-level fix that affects all three editions.
User Guide (Ver 3.1.2)
NS_Online_User_Guide_312_English.pdf
NS_Online_User_Guide_312_ Japanese.pdf
Online Edition — Download for draw.io (stencil) (New)
A new diagram download option, draw.io (stencil), has been added alongside the existing SVG / SVG (for Visio) / draw.io options. The output is a .drawio file with each device and waypoint replaced by an authentic Cisco mxgraph.cisco.* shape, while geometry (positions, links, labels) is preserved from the SVG source.
Highlights:
-
Customizable stencil mapping via
network-sketcher_online/stencil_aliases.json— the resolver runs a longest-match search acrossexact/prefix/containskeys (v2 schema). Catalyst, Nexus, Firepower, Router, AP, Server, and Industrial Switch presets are bundled out of the box. -
4-digit model expansion — model numbers such as
9166automatically expand to four common variants (9100/C91/CAT91/Catalyst91). Numeric-only inputs (e.g.9300) round the last two digits down to00. -
Stencil Typecolumn override (Attribute sheet of the master file) — operators can pin any device or waypoint to an explicitmxgraph.*shape ID for cases the auto-resolver does not cover. The new column is documented in the AI Context. -
Conditional opacity — L2 diagrams render all stencils at 45% opacity to keep links visible; L3 diagrams apply the same effect only to devices that contain L3 instances (devices without L3 instances stay fully opaque).
-
WAN cloud rendered in white — the cloud stencil used for
WayPoint-class entries is now drawn in white so that overlaying labels remain readable. -
Bugfix — L3 IP label placement — IP address labels in the L3
.drawioexport are no longer attached to the large page-frame rectangle (which used to misplace labels such as.58to the wrong device). -
Bugfix — Cloud false-positive — when a device's
Defaultattribute isDEVICE, the resolver explicitly excludesmxgraph.cisco.storage.cloudfrom the candidate set, preventing routers likeSite2-Edgefrom being misclassified as a cloud waypoint. -
Compact download buttons — the diagram download UI was rebuilt as a single down-arrow icon followed by
svg/svg (for Visio)/draw.io/draw.io (stencil)text links to reduce horizontal footprint.
Parser Fix — rename attribute_bulk Color Preservation (Online + Offline + Local MCP)
Previously, when rename attribute_bulk was given a plain string for an Attribute cell (e.g. 'DEVICE' instead of the full ['DEVICE', [r, g, b]] form), the parser silently coerced the cell to white ([255, 255, 255]). This made bulk text-only updates accidentally wipe out the existing color of every cell touched.
Starting with 3.1.2, the parser now preserves the existing RGB color when it receives a plain-string update and only falls back to white if no existing color exists. Initial color setting still requires the explicit [name, [r, g, b]] form.
The fix is applied to:
-
network-sketcher_online/ns_engine/nsm_cli.py(Online + Local MCP, since Local MCP shares the engine) -
network-sketcher_offline/ns_cli.py(Offline)
AI Context Improvements (Online + Offline + Local MCP)
-
## rename attribute_bulksection now documents the new "Plain-string mode (text-only update)" behavior, including a[CRITICAL] Quoting Structureblock and[Tips]for safe authoring. -
## RULE 14and## RULE 16were updated to make the full[name, [r, g, b]]form mandatory for the initial color setting and to add explicit verification steps after a bulk update. -
The Sample-data AI Context (
Sample_data/No_data_Master_file_with_AI_Context/[AI_Context]no_data.txt) is regenerated against the latest documentation.
Documentation
-
The root
README.mdnow carries a What's New in 3.1.2 (Online) subsection summarising the draw.io stencil export, the customizable stencil mapping, theStencil Typecolumn override, the conditional opacity, and both parser fixes. -
The Feature Support Matrix has a new row — "Export diagrams as SVG (Visio-compatible) / draw.io (with Cisco stencils)" — marked as Online-only.
-
The Online edition's Online Features list now includes a Multi-format diagram download bullet (SVG / SVG (for Visio) / draw.io / draw.io (stencil)).
Read me
>> Read me (GitHub)
Installation
Local MCP
git clone https://github.com/cisco-open/network-sketcher/
cd network-sketcher/network-sketcher_local_mcp
python -m pip install -r requirements_mcp.txt
Then register Network Sketcher in your MCP host (Cursor / Claude Code / etc.) using the JSON snippet (or the claude mcp add CLI for Claude Code) documented in the Ver 3.1.0a release notes. The server is launched by the host on demand and waits on stdio.
Online
git clone https://github.com/cisco-open/network-sketcher/
cd network-sketcher/network-sketcher_online
python3 -m pip install -r requirements_online.txt
cd ..
python3 start_ns_online.py
Open the URL shown at startup (default: https://localhost:5443) in your browser.
-
To serve on a specific network interface, edit
hostandportinns_web_config.jsonbefore starting the server. -
If no SSL certificate exists, a self-signed certificate is auto-generated on first startup.
-
If you change the host IP / FQDN, manually delete the certificate files in
Certs/and restart the server.
Offline
git clone https://github.com/cisco-open/network-sketcher/
cd network-sketcher/network-sketcher_offline
python3 -m pip install -r requirements_offline.txt
python3 network_sketcher.py
Limitations
Local MCP
-
Single-user edition designed to run on a local PC.
-
Only
stdiotransport is supported (HTTP / SSE not supported). -
Diagram generation for large networks may take some time.
-
LLM clients cannot directly view binary output (PPTX / SVG / DRAWIO); if visual feedback is needed, the user should open the generated file directly.
Online
-
Designed for use on internal networks only. Not intended for deployment on the public internet.
-
IPv4 and IPv6 are supported. IPv6 link-local (fe80::/10), multicast, loopback, unspecified, IPv4-mapped and site-local addresses, and zone index notation (%), are not accepted or drawn. Diagram size and spacing are not adjusted for long IPv6 addresses.
-
Excel (.xlsx) and PowerPoint (.pptx) files cannot be synced back to the master file. All editing is performed through CLI commands generated by an LLM.
-
The
Stencil Typecolumn override (mxgraph.*shape ID) takes precedence over the JSON resolver, but typos in the column value will fall back to a generic icon — verify the resulting.drawioafter a bulk update.
Offline
-
IPv4 and IPv6 are supported. IPv6 link-local (fe80::/10), multicast, loopback, unspecified, IPv4-mapped and site-local addresses, and zone index notation (%), are not accepted or drawn. Diagram size and spacing are not adjusted for long IPv6 addresses. Auto IP Addressing assigns IPv4 only.
-
A DEVICE file contains multiple sheets, but only one sheet should be updated at a time. Simultaneous synchronization of multiple sheet updates is not supported.
-
Do not use Network Sketcher on master files in your One Drive folder.
-
Deleting Layer 1 links using the GUI cannot identify individual interfaces and will delete more Layer 2 data than intended. Use the CLI command (
delete l1_link) to delete Layer 1 links.
Feature Support Matrix
| Feature Item | Local MCP (LLM-driven CLI) | Online Edition | Offline Edition (GUI) | Offline Edition (CLI) |
|---|---|---|---|---|
| Create master file from PowerPoint rough sketch | ❌ | ❌ | ✅ | ❌ |
| Convert master files from Visio, Draw.io, NetBox, CML | ❌ | ❌ | ✅ | ❌ |
| Place / create / delete / modify areas, devices, waypoints | ✅ | ✅ | ✅ (areas auto-placed in GUI) | ✅ |
| Add / delete / modify Layer 1 connections (port names, duplex, etc.) | ✅ | ✅ | ✅ | |
| Change Layer 2 segments (VLAN) / add / delete virtual ports (SVI, loopback, port-channel) | ✅ | ✅ | ✅ | ✅ |
| Change IP addresses / Layer 3 instances (VRF) | ✅ | ✅ | ✅ | ✅ |
| Change attributes | ✅ | ✅ | ✅ | ✅ |
| Add / delete VPNs | ❌ | ❌ | ✅ | ❌ |
| Flow management | ❌ | ❌ | ✅ | ❌ |
| Export various reports | ✅ (IP Address only) | ✅ (IP Address only) | ✅ | ❌ |
| Export empty master files (no data) | ✅ | ✅ | ❌ | ✅ |
| Export AI context files | ✅ | ✅ | ✅ | ✅ |
| Export device files | ✅ | ✅ | ✅ | ✅ |
| Generate L1/L2/L3 topology diagrams | ✅ | ✅ | ✅ | ✅ |
| Export diagrams as SVG (Visio-compatible) / draw.io (with Cisco stencils) | ❌ | ✅ | ❌ | ❌ |
Compatibility
-
3.1.0a -> 3.1.2
-
Master files (
.nsm/.xlsx) created in Ver 3.1.0a are fully compatible with Ver 3.1.2. -
If you previously ran
rename attribute_bulkwith plain-string values and your devices became white, set the colors back once with the full[name, [r, g, b]]form. Subsequent text-only updates will preserve the color in 3.1.2 and later. -
The new
Stencil Typecolumn in the Attribute sheet is optional; existing master files without the column continue to work — the Online edition simply falls back to the JSON resolver.
-
-
3.0.x -> 3.1.2
-
Master files created in Ver 3.0.x are compatible with Ver 3.1.2.
-
.nsmfiles generated by the Online or Local MCP editions cannot be opened directly by the Offline edition. Use "Download (.xlsx)" (Online) orexport_master_xlsx(Local MCP) to obtain a compatible master file.
-
-
2.x -> 3.1.2
- Master files created in Ver 2.x are compatible with Ver 3.1.2 (same engine).