No, they are not. Put // in front of each line.
Best regards,
Victor
Best regards,
Victor
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Show posts Menu
m_dwFlags |= CSF_COMPRESSION_ENABLED;
msg.setField(VID_ENABLE_COMPRESSION, true);
import csv, sys
w = csv.writer(sys.stdout, dialect='excel')
w.writerow(['name', 'ip', 'type']) # Header
for node in [o for o in s.getAllObjects() if isinstance(o, objects.Node)]:
enabled = node.getCustomAttributes().get("RANCID_ENABLED")
if enabled != None and int(enabled) == 1:
w.writerow([
node.getObjectName(),
node.getPrimaryIP().getHostAddress(),
node.getCustomAttributes().get("RANCID_TYPE")
])