namespace "urn:opendaylight:packet:service";
prefix flow;
+ import yang-ext {prefix ext;}
import opendaylight-inventory {prefix inv;}
import ietf-inet-types {prefix inet;}
import ietf-yang-types {prefix yang;}
description "";
}
+ typedef cookie {
+ type uint32;
+ }
+
grouping raw-packet {
leaf ingress {
type inv:node-connector-ref;
}
- leaf payload {
+ leaf payload {
type binary;
}
}
notification packet-received {
- uses raw-packet;
+ leaf cookie {
+ type cookie;
+ }
+ uses raw-packet;
}
rpc transmit-packet {
input {
+ leaf cookie {
+ type cookie;
+ }
+ leaf node {
+ ext:context-reference "inv:node-context";
+ type inv:node-ref;
+ }
leaf egress {
type inv:node-connector-ref;
}