summaryrefslogtreecommitdiffstats
path: root/v3po/api
diff options
context:
space:
mode:
authorJan Srnicek <jsrnicek@cisco.com>2016-12-14 09:54:19 +0100
committerMarek Gradzki <mgradzki@cisco.com>2016-12-14 11:29:15 +0000
commita5defc544b5664b138ecb51340c375bb664d6b52 (patch)
tree7d223bdfb85c14e3c93a89721342768f794f9566 /v3po/api
parent179623414d44d6d85ced60b0e99a2c47a7e0bbf6 (diff)
Span model update reflecting api changes
Allows use of Rx/Tx/Both Span states Allows setting state per src-interface Change-Id: I07346bf3976be34aa85336bdeedff94f83a3173c Signed-off-by: Jan Srnicek <jsrnicek@cisco.com>
Diffstat (limited to 'v3po/api')
-rw-r--r--v3po/api/src/main/yang/v3po.yang41
1 files changed, 39 insertions, 2 deletions
diff --git a/v3po/api/src/main/yang/v3po.yang b/v3po/api/src/main/yang/v3po.yang
index 680a81e85..7f093c9fc 100644
--- a/v3po/api/src/main/yang/v3po.yang
+++ b/v3po/api/src/main/yang/v3po.yang
@@ -142,6 +142,35 @@ module v3po {
}
}
+
+ typedef span-state {
+ type enumeration {
+ enum "receive" {
+ value "1";
+ description
+ "Receive (Rx) SPAN—The goal of receive (or ingress) SPAN
+ is to monitor as much as possible all the packets received by the source interface.
+ A copy of each packet received by the source is sent to the destination port for that SPAN session.
+ You can monitor a series or range of ingress ports in a SPAN session.";
+ }
+
+ enum "transmit" {
+ value "2";
+ description
+ "Transmit (Tx) SPAN—The goal of transmit (or egress) SPAN is to monitor as much as possible all the packets
+ sent by the source interface after all modification and processing is performed by the switch.
+ A copy of each packet sent by the source is sent to the destination port for that SPAN session.
+ The copy is provided after the packet is modified. Monitors a range of egress ports in a SPAN session.";
+ }
+
+ enum "both" {
+ value "3";
+ description
+ "In a SPAN session, you can monitor a series or range of ports for both received and sent packets.";
+ }
+ }
+ }
+
grouping bridge-domain-attributes {
leaf flood {
type boolean;
@@ -477,8 +506,16 @@ module v3po {
description "Parameters of the SPAN feature";
container mirrored-interfaces {
- leaf-list mirrored-interface {
- type if:interface-ref; // todo use interface-state-ref for operational data?
+ list mirrored-interface {
+ key "iface-ref";
+ leaf iface-ref {
+ type if:interface-ref; // todo use interface-state-ref for operational data?
+ }
+
+ leaf state {
+ type span-state;
+ mandatory true;
+ }
}
}
}