Skip to content

Linux networking: Demo for using natural language to generate nmstate YAML for linux bridge

Notifications You must be signed in to change notification settings

jona42-ui/nmstate_nlp_module

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

nmstate_nlp_module

nmstate/nmstate#2583

This small module basically demonstrates the power of NLP in network configuration I.e Our demo project aims to develop a natural language interface that allows users to create Linux bridge configurations using simple, human-readable commands. The interface will leverage natural language processing (NLP) techniques to parse user input and generate YAML configurations compatible with nmstate, a declarative API for host network management in Linux.

nlpdemo.webm

Currently, it's only extracting the interface name (eth1) from the natural language input and generating a configuration entry for it, but it's missing the bridge name (br0) and the second interface (eth2).

TODO: improving the output

usage

  1. clone the repo
  2. install the dependencies
  3. spaCy requires language models forexample for English language processing, you can download the small English model by running: python -m spacy download en_core_web_sm
  4. Execute the script : python nmstate_nlp_demo.py
  5. on prompt put an input like: Please create a linux bridge br0 using eth1 and eth2
  6. analyse the output

NB: we are parsing and interpreting user intentions directly from textual descriptions using NLP parsing not regex parsing on input

About

Linux networking: Demo for using natural language to generate nmstate YAML for linux bridge

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages