small fixes
diff --git a/oltbase.py b/oltbase.py
index 642d5c2..b058efc 100644
--- a/oltbase.py
+++ b/oltbase.py
@@ -1,13 +1,22 @@
import oftest.base_tests as base_tests
import oftest.packet as scapy
+from oftest import config
import ofp
import time
+from oftest.testutils import *
+# These parameters can be altered from the command line using the -t or --test-params= options.
+# Example: -t 'onu_port=129;olt_port=288;device_type=pmc'
+#
+onu_port = test_param_get("onu_port", 130)
+onu_port2 = test_param_get("onu_port2", 131)
+olt_port = test_param_get("olt_port", 258)
+device_type = test_param_get("device_type", "normal") # options: "normal", "pmc", "cpqd"
class OltBaseTest(base_tests.SimpleDataPlane):
- def installDoubleTaggingRules(s_vlan_id, c_vlan_id, cookie=42):
+ def installDoubleTaggingRules(self, s_vlan_id, c_vlan_id, cookie=42):
# upstream flow rule
match = ofp.match()