X-Git-Url: https://gerrit.fd.io/r/gitweb?p=csit.git;a=blobdiff_plain;f=resources%2Flibraries%2Fpython%2FVppConfigGenerator.py;h=2a8f20272153f37610aafca5253ad7e5ea296a16;hp=e109d768fab08ead9810329113bc374c7b4d446f;hb=1a6d584a69e8f7a736340912eef7c58593a5278f;hpb=5acbc578e4d77e4d7b402aff6611bbbc7e0b201b diff --git a/resources/libraries/python/VppConfigGenerator.py b/resources/libraries/python/VppConfigGenerator.py index e109d768fa..2a8f202721 100644 --- a/resources/libraries/python/VppConfigGenerator.py +++ b/resources/libraries/python/VppConfigGenerator.py @@ -257,7 +257,7 @@ class VppConfigGenerator(object): """Add cryptodev configuration for node. :param node: DUT node. - :param count: Number of crypto device to add. + :param count: Number of crypto devices to add. :type node: dict :type count: int :returns: nothing @@ -270,10 +270,10 @@ class VppConfigGenerator(object): self._nodeconfig[hostname] = {} cryptodev = Topology.get_cryptodev(node) - cryptodev_config = 'enable-cryptodev' + cryptodev_config = '' for i in range(count): - cryptodev_config += ' dev {}'.format(\ + cryptodev_config += 'dev {}\n'.format( re.sub(r'\d.\d$', '1.'+str(i), cryptodev)) self._nodeconfig[hostname]['cryptodev_config'] = cryptodev_config