Simple VPPApi abstraction, which fetches the necessary info from VPP, and a few dumpers

This commit is contained in:
Pim van Pelt
2022-03-23 23:29:19 +00:00
parent 8ac9b50d94
commit ac5b8fcc8f
3 changed files with 235 additions and 0 deletions

6
vppcfg
View File

@ -18,6 +18,7 @@ import sys
import yaml
import logging
from validator import Validator
from vpp.vppapi import VPPApi
try:
import argparse
@ -58,5 +59,10 @@ def main():
else:
logging.info("Configuration validated successfully")
vpp = VPPApi()
vpp.readconfig()
vpp.dump()
vpp.disconnect()
if __name__ == "__main__":
main()