pub struct InterfaceAddressConfig {
pub port_name: String,
pub unit: Option<InterfaceUnit>,
pub family: i32,
pub ip_address: Option<IpAddress>,
pub attributes: Option<InterfaceAttributeList>,
pub destination_udp_port: u32,
}junos-22-4 only.Expand description
[brief]: Message definition for the interface address object. [detail]: This defintion would be used to send the interface address configuration information using the API.
Fields§
§port_name: String[brief]: Port name of the Interface [mandatory]:
unit: Option<InterfaceUnit>[brief]: Interface unit number [mandatory]:
family: i32[brief]: Protocol family to be configured for the interface [mandatory]:
ip_address: Option<IpAddress>[brief]: IP address to be configured. [detail]: IP address to be configured for the interface IP address can be IPV4 or IPV6 based on the family specified [mandatory]:
attributes: Option<InterfaceAttributeList>[brief]: List of optional attributes that can be configured [detail]: For top level interface object the attributes that can be configured are as below String Attributes: mac - MAC address that should be configured on the address object.
Integer Attributes
destination_udp_port: u32[brief]: destination-udp-port for FTI udp encapsulation. [detail]: This option is applicable only for FTI udp encapsulation. It will be ignored for all other encapsulations as well as for non FTI.
Implementations§
Trait Implementations§
Source§impl Clone for InterfaceAddressConfig
impl Clone for InterfaceAddressConfig
Source§fn clone(&self) -> InterfaceAddressConfig
fn clone(&self) -> InterfaceAddressConfig
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for InterfaceAddressConfig
impl Debug for InterfaceAddressConfig
Source§impl Default for InterfaceAddressConfig
impl Default for InterfaceAddressConfig
Source§impl Message for InterfaceAddressConfig
impl Message for InterfaceAddressConfig
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode<B>(buf: B) -> Result<Self, DecodeError>
fn decode<B>(buf: B) -> Result<Self, DecodeError>
Source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
Source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
self. Read moreSource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
self.Source§impl PartialEq for InterfaceAddressConfig
impl PartialEq for InterfaceAddressConfig
Source§fn eq(&self, other: &InterfaceAddressConfig) -> bool
fn eq(&self, other: &InterfaceAddressConfig) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for InterfaceAddressConfig
Auto Trait Implementations§
impl Freeze for InterfaceAddressConfig
impl RefUnwindSafe for InterfaceAddressConfig
impl Send for InterfaceAddressConfig
impl Sync for InterfaceAddressConfig
impl Unpin for InterfaceAddressConfig
impl UnwindSafe for InterfaceAddressConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request