diff --git a/xcp/net/ifrename/dynamic.py b/xcp/net/ifrename/dynamic.py index 6578da57..ad8f61ba 100644 --- a/xcp/net/ifrename/dynamic.py +++ b/xcp/net/ifrename/dynamic.py @@ -238,7 +238,6 @@ def generate(self, state): LOG.critical("Unknown dynamic rule method %s" % method) - def write(self, header = True): """ Write the dynamic rules to a string diff --git a/xcp/net/ifrename/static.py b/xcp/net/ifrename/static.py index 59fda548..76ab3723 100644 --- a/xcp/net/ifrename/static.py +++ b/xcp/net/ifrename/static.py @@ -292,6 +292,9 @@ def generate(self, state): LOG.critical("Unknown static rule method %s" % method) def write(self, header = True): + """ + Write the static rules to a string + """ res = "" @@ -320,6 +323,10 @@ def write(self, header = True): return res def save(self, header = True): + """ + Save the static rules to a file/path. + Returns boolean indicating success or failure. + """ fd = None