Skip to content
This repository has been archived by the owner on Jun 8, 2021. It is now read-only.

Doridian/vfmgr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vfmgr show [VMID]
- VMID optional, filters to only that VM, otherwise shows all

vfmgr add <VMID> <VLAN>
- If VM already has iface in VLAN, print error
- Ensures iface has MAC assigned, assigns to both "ip link enp131s0 vf X" and "ip link enp131s0vX"
- Adds iface with VLAN to VMID, prints MAC, adjusts config (LXC or QEmu)

vfmgr rm <VMID> [VLAN]
- If VLAN not given and VM has exactly one iface, delete that. Print error otherwise.
- Deletes VLAN iface from VMID, if exists. Print error otherwise
- Do NOT unassign MAC address

vfmgr mv <VMID> [OLD-VLAN] <NEW-VLAN>
- If OLD-VLAN not given and VM has exactly one iface, move that. Print error otherwise.
- Find interface for OLD-VLAN, error if none found
- ip link enp131s0 vf X vlan NEW-VLAN

vfmgr apply ["OS"/"PVE"]
- Ensures config.yml is applied correctly (runs on system boot, for example)

vfmgr fixmacs
- Lowercases all MAC addresses in config.yml

vfmgr fixorphans
- Removes vmid and vlan from interfaces not bound to an existing VM

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages