pub enum Action {
Show 25 variants
Output(OutputPort),
Drop,
Controller {
max_len: u16,
},
SetEthSrc([u8; 6]),
SetEthDst([u8; 6]),
SetVlanVid(u16),
PushVlan(u16),
PopVlan,
SetIpv4Src(Ipv4Addr),
SetIpv4Dst(Ipv4Addr),
SetTpSrc(u16),
SetTpDst(u16),
SetTtl(u8),
DecTtl,
GotoTable(u8),
WriteMetadata {
metadata: u64,
mask: u64,
},
Meter(u32),
Group(u32),
SetTunnelId(u64),
NxResubmit {
port: Option<u16>,
table: Option<u8>,
},
NxLearn(NxLearn),
NxCt {
flags: u16,
zone: u16,
table: Option<u8>,
},
NxCtNat {
flags: u16,
zone: u16,
table: Option<u8>,
nat: NatConfig,
},
NxMove {
src_field: u32,
dst_field: u32,
n_bits: u16,
src_ofs: u16,
dst_ofs: u16,
},
NxRegLoad {
dst_field: u32,
dst_ofs: u16,
n_bits: u16,
value: u64,
},
}Expand description
An OpenFlow action.
Variants§
Output(OutputPort)
Output to a port
Drop
Drop the packet (implicit, no action)
Controller
Send to controller
SetEthSrc([u8; 6])
Set source MAC
SetEthDst([u8; 6])
Set destination MAC
SetVlanVid(u16)
Set VLAN ID
PushVlan(u16)
Push VLAN tag
PopVlan
Pop VLAN tag
SetIpv4Src(Ipv4Addr)
Set IPv4 source
SetIpv4Dst(Ipv4Addr)
Set IPv4 destination
SetTpSrc(u16)
Set TCP/UDP source port
SetTpDst(u16)
Set TCP/UDP destination port
SetTtl(u8)
Set IP TTL
DecTtl
Decrement IP TTL
GotoTable(u8)
Go to table (OF 1.1+)
WriteMetadata
Write metadata
Meter(u32)
Apply meter
Group(u32)
Output to group
SetTunnelId(u64)
Set tunnel ID
NxResubmit
Resubmit to table (Nicira extension)
NxLearn(NxLearn)
Learn action (Nicira extension)
NxCt
Conntrack action (Nicira extension)
NxCtNat
Conntrack with NAT action (Nicira extension)
NxMove
Move/copy bits between fields (Nicira extension)
Fields
NxRegLoad
Load immediate value into field (Nicira extension)
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Action
impl RefUnwindSafe for Action
impl Send for Action
impl Sync for Action
impl Unpin for Action
impl UnsafeUnpin for Action
impl UnwindSafe for Action
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more