Rename VPPApiDumper() class to Dumper()
This commit is contained in:
@ -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
4
vppcfg
@ -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)
|
||||||
|
Reference in New Issue
Block a user