DRAFT config for L123 demo on P4-CORD pod
Change-Id: Iaafd87d90232514853ca0dea0115dbae4f6e7886
diff --git a/drivers/barefoot/src/main/java/org/onosproject/drivers/barefoot/TofinoPipelineProgrammable.java b/drivers/barefoot/src/main/java/org/onosproject/drivers/barefoot/TofinoPipelineProgrammable.java
index 9e4cf24..a1dc789 100644
--- a/drivers/barefoot/src/main/java/org/onosproject/drivers/barefoot/TofinoPipelineProgrammable.java
+++ b/drivers/barefoot/src/main/java/org/onosproject/drivers/barefoot/TofinoPipelineProgrammable.java
@@ -17,7 +17,6 @@
package org.onosproject.drivers.barefoot;
import com.google.common.collect.ImmutableList;
-import com.google.common.collect.ImmutableMap;
import com.google.common.collect.Lists;
import org.apache.commons.io.IOUtils;
import org.apache.thrift.TException;
@@ -27,24 +26,15 @@
import org.apache.thrift.transport.TSocket;
import org.apache.thrift.transport.TTransport;
import org.onlab.util.SharedExecutors;
-import org.onosproject.drivers.barefoot.pal.InvalidPalOperation;
import org.onosproject.drivers.barefoot.pal.pal;
+import org.onosproject.drivers.barefoot.pal.pal_autoneg_policy_t;
import org.onosproject.drivers.barefoot.pal.pal_fec_type_t;
import org.onosproject.drivers.barefoot.pal.pal_port_speed_t;
import org.onosproject.incubator.net.config.basics.PortDescriptionsConfig;
-import org.onosproject.net.AnnotationKeys;
-import org.onosproject.net.Device;
import org.onosproject.net.DeviceId;
-import org.onosproject.net.Port;
import org.onosproject.net.config.NetworkConfigService;
-import org.onosproject.net.config.basics.BasicDeviceConfig;
-import org.onosproject.net.device.DeviceDescription;
-import org.onosproject.net.device.DeviceDescriptionDiscovery;
-import org.onosproject.net.device.DeviceService;
import org.onosproject.net.device.PortDescription;
import org.onosproject.net.driver.AbstractHandlerBehaviour;
-import org.onosproject.net.driver.Driver;
-import org.onosproject.net.driver.DriverService;
import org.onosproject.net.pi.model.PiPipeconf;
import org.onosproject.net.pi.model.PiPipeconf.ExtensionType;
import org.onosproject.net.pi.model.PiPipelineProgrammable;
@@ -53,14 +43,12 @@
import org.onosproject.provider.general.device.api.GeneralProviderDeviceConfig;
import org.slf4j.Logger;
-import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.nio.Buffer;
import java.nio.ByteBuffer;
import java.nio.ByteOrder;
import java.nio.charset.StandardCharsets;
-import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.Optional;
@@ -188,6 +176,7 @@
pal.Client client = new pal.Client(mProtocol);
client.pal_port_add(deviceId, dp, speed, pal_fec_type_t.BF_FEC_TYP_NONE);
+ client.pal_port_an_set(deviceId, dp, pal_autoneg_policy_t.BF_AN_FORCE_DISABLE);
client.pal_port_enable(deviceId, dp);
transport.close();
} catch (TException x) {
diff --git a/tools/dev/p4vm/root-bootstrap.sh b/tools/dev/p4vm/root-bootstrap.sh
new file mode 100755
index 0000000..e69de29
--- /dev/null
+++ b/tools/dev/p4vm/root-bootstrap.sh
diff --git a/tools/test/topos/tofino-demo-dev-11.json b/tools/test/topos/tofino-demo-dev-11.json
index 8a87af6..72875e1 100644
--- a/tools/test/topos/tofino-demo-dev-11.json
+++ b/tools/test/topos/tofino-demo-dev-11.json
@@ -3,7 +3,7 @@
"device:tofino:11": {
"generalprovider": {
"p4runtime": {
- "ip": "10.254.1.38",
+ "ip": "10.6.0.34",
"deviceKeyId": "p4runtime:device:tofino:11",
"port": 50051,
"deviceId": 0
@@ -29,11 +29,11 @@
"removed": false,
"type": "copper"
},
- "3/0": {
+ "3/2": {
"name": "3/0",
- "speed": 40000,
+ "speed": 10000,
"enabled": true,
- "number": 180,
+ "number": 182,
"removed": false,
"type": "copper"
}
@@ -46,4 +46,4 @@
}
}
}
-}
\ No newline at end of file
+}
diff --git a/tools/test/topos/tofino-demo-dev-12.json b/tools/test/topos/tofino-demo-dev-12.json
index 0b9cf4a..330b9d2 100644
--- a/tools/test/topos/tofino-demo-dev-12.json
+++ b/tools/test/topos/tofino-demo-dev-12.json
@@ -3,7 +3,7 @@
"device:tofino:12": {
"generalprovider": {
"p4runtime": {
- "ip": "10.254.1.37",
+ "ip": "10.6.0.37",
"deviceKeyId": "p4runtime:device:tofino:12",
"port": 50051,
"deviceId": 0
@@ -29,11 +29,11 @@
"removed": false,
"type": "copper"
},
- "3/0": {
+ "3/2": {
"name": "3/0",
- "speed": 40000,
+ "speed": 10000,
"enabled": true,
- "number": 180,
+ "number": 182,
"removed": false,
"type": "copper"
}
@@ -46,4 +46,4 @@
}
}
}
-}
\ No newline at end of file
+}
diff --git a/tools/test/topos/tofino-demo-dev-21.json b/tools/test/topos/tofino-demo-dev-21.json
index 17d39f3..521b335 100644
--- a/tools/test/topos/tofino-demo-dev-21.json
+++ b/tools/test/topos/tofino-demo-dev-21.json
@@ -3,7 +3,7 @@
"device:tofino:21": {
"generalprovider": {
"p4runtime": {
- "ip": "10.254.1.40",
+ "ip": "10.6.0.33",
"deviceKeyId": "p4runtime:device:tofino:21",
"port": 50051,
"deviceId": 0
@@ -38,4 +38,4 @@
}
}
}
-}
\ No newline at end of file
+}
diff --git a/tools/test/topos/tofino-demo-dev-22.json b/tools/test/topos/tofino-demo-dev-22.json
index 081fcc8..d3c7275 100644
--- a/tools/test/topos/tofino-demo-dev-22.json
+++ b/tools/test/topos/tofino-demo-dev-22.json
@@ -3,7 +3,7 @@
"device:tofino:22": {
"generalprovider": {
"p4runtime": {
- "ip": "10.254.1.39",
+ "ip": "10.6.0.35",
"deviceKeyId": "p4runtime:device:tofino:22",
"port": 50051,
"deviceId": 0
@@ -38,4 +38,4 @@
}
}
}
-}
\ No newline at end of file
+}