Fix some formatting issues

This commit is contained in:
Pim van Pelt
2023-05-25 18:32:54 +02:00
parent 8077d20bc7
commit b442bc1aae
3 changed files with 6 additions and 3 deletions

View File

@ -44,7 +44,8 @@ def example_validator(_yaml):
class YAMLTest(unittest.TestCase): class YAMLTest(unittest.TestCase):
"""This test suite takes a YAML configuration file and holds it against the syntax """This test suite takes a YAML configuration file and holds it against the syntax
(Yamale) and semantic validators, returning errors in case of validation failures.""" (Yamale) and semantic validators, returning errors in case of validation failures.
"""
def __init__(self, testName, yaml_filename, yaml_schema): def __init__(self, testName, yaml_filename, yaml_schema):
# calling the super class init varies for different python versions. This works for 2.7 # calling the super class init varies for different python versions. This works for 2.7

View File

@ -125,7 +125,8 @@ class Applier(VPPApi):
def lcp_create(self, ifname, host_if_name): def lcp_create(self, ifname, host_if_name):
"""Create a linux control plane interface pair for an interface given by name """Create a linux control plane interface pair for an interface given by name
(ie GigabitEthernet3/0/0) under a Linux TAP device name host_if_name (ie e3-0-0)""" (ie GigabitEthernet3/0/0) under a Linux TAP device name host_if_name (ie e3-0-0)
"""
pass pass
def set_interface_mac(self, ifname, mac): def set_interface_mac(self, ifname, mac):

View File

@ -181,7 +181,8 @@ class Reconciler:
def __prune_bridgedomains(self): def __prune_bridgedomains(self):
"""Remove bridge-domains from VPP, if they do not occur in the config. If any interfaces are """Remove bridge-domains from VPP, if they do not occur in the config. If any interfaces are
found in to-be removed bridge-domains, they are returned to L3 mode, and tag-rewrites removed.""" found in to-be removed bridge-domains, they are returned to L3 mode, and tag-rewrites removed.
"""
for idx, bridge in self.vpp.cache["bridgedomains"].items(): for idx, bridge in self.vpp.cache["bridgedomains"].items():
bridgename = f"bd{int(idx)}" bridgename = f"bd{int(idx)}"
_config_ifname, config_iface = bridgedomain.get_by_name( _config_ifname, config_iface = bridgedomain.get_by_name(