Device Emulation (contd.): DeviceGroupDialog uses same defaults for VLAN config as the .proto

This commit is contained in:
Srivats P 2016-03-24 18:52:48 +05:30
parent 8b80b4c3ef
commit 321fc3e1ee

View File

@ -70,10 +70,11 @@ DeviceGroupDialog::DeviceGroupDialog(
vlans->setColumnCount(kVlanColumns); vlans->setColumnCount(kVlanColumns);
vlans->setHorizontalHeaderLabels(vlanTableColumnHeaders); vlans->setHorizontalHeaderLabels(vlanTableColumnHeaders);
for (int i = 0; i < kMaxVlanTags; i++) { for (int i = 0; i < kMaxVlanTags; i++) {
// Use same default values as defined in .proto
vlans->setItem(i, kVlanId, vlans->setItem(i, kVlanId,
new QTableWidgetItem(QString::number(100*(i+1)))); new QTableWidgetItem(QString::number(100*(i+1))));
vlans->setItem(i, kVlanCount, vlans->setItem(i, kVlanCount,
new QTableWidgetItem(QString::number(10))); new QTableWidgetItem(QString::number(1)));
vlans->setItem(i, kVlanStep, vlans->setItem(i, kVlanStep,
new QTableWidgetItem(QString::number(1))); new QTableWidgetItem(QString::number(1)));
vlans->setItem(i, kVlanCfi, vlans->setItem(i, kVlanCfi,