Rename VPPApiDumper() class to Dumper()

This commit is contained in:
Pim van Pelt
2022-04-10 14:55:01 +00:00
parent da7765569f
commit 0116583463
2 changed files with 3 additions and 3 deletions

View File

@ -8,7 +8,7 @@ import sys
import yaml import yaml
import config.bondethernet as bondethernet import config.bondethernet as bondethernet
class VPPApiDumper(VPPApi): class Dumper(VPPApi):
def __init__(self, address='/run/vpp/api.sock', clientname='vppcfg'): def __init__(self, address='/run/vpp/api.sock', clientname='vppcfg'):
VPPApi.__init__(self, address, clientname) VPPApi.__init__(self, address, clientname)

4
vppcfg
View File

@ -19,7 +19,7 @@ import yaml
import logging import logging
from config import Validator from config import Validator
from vpp.reconciler import Reconciler from vpp.reconciler import Reconciler
from vpp.dumper import VPPApiDumper from vpp.dumper import Dumper
try: try:
import argparse import argparse
@ -65,7 +65,7 @@ def main():
logging.basicConfig(format='[%(levelname)-8s] %(name)s.%(funcName)s: %(message)s', level=level) logging.basicConfig(format='[%(levelname)-8s] %(name)s.%(funcName)s: %(message)s', level=level)
if args.command=="dump": if args.command=="dump":
d = VPPApiDumper() d = Dumper()
if not d.readconfig(): if not d.readconfig():
logging.error("Could not retrieve config from VPP") logging.error("Could not retrieve config from VPP")
sys.exit(-7) sys.exit(-7)