Skip to content

acuteaura/atfutil

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

atfutil

a simple IPAM tool in go that stores allocations and arbitrary metadata in YAML, allows you to allocate from the smallest fitting block and renders allocations (and optionally the space between allocations) to a markdown table.

Superblocks

10.99.0.0/16

Render all ATF files to Markdown

cd example
make render

Requires golang.

Compile atfutil

go build -o atfutil ./cmd/atfutil/cmd.go

Allocate a new subnet

# build the latest binary
go build -o atfutil ./cmd/atfutil/cmd.go

# move to example folder
cd example

# allocate the desired network
./atfutil alloc -d "Proper description" -s 28 -i atf/10.99.0.0-16.atf.yaml -o atf/10.99.0.0-16.atf.yaml 

# render the network setup to the human readable markdown
make

About

a simple IPAM CLI tool in go

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published