Skip to main content

Ma5603T

Struct Ma5603T 

Source
pub struct Ma5603T { /* private fields */ }

Trait Implementations§

Source§

impl Olt for Ma5603T

Source§

fn connect(host: &str, port: i32, user: &str, pass: &str) -> Result<Self, Error>

Establish an SSH connection to the OLT device.
Source§

fn list_unprovisioned_onts(&mut self) -> Result<Vec<UnprovisionedOnt>, Error>

List ONTs that have been discovered but not yet provisioned.
Source§

fn find_onts_by_description( &mut self, description: &str, ) -> Result<Vec<OntInfoByDesc>, Error>

Search for ONTs whose description matches the given text.
Source§

fn get_ont_by_sn(&mut self, serial_number: &str) -> Result<OntInfo, Error>

Get detailed ONT information by serial number.
Source§

fn get_ont_summary( &mut self, scope: &OntSummaryScope, ) -> Result<Vec<OntSummaryPort>, Error>

Get ONT summary for a frame, slot, or specific port.
Source§

fn list_line_profiles(&mut self) -> Result<Vec<LineProfile>, Error>

List all GPON line profiles.
Source§

fn get_line_profile(&mut self, id: u32) -> Result<LineProfileDetail, Error>

Get details of a specific GPON line profile.
Source§

fn list_service_profiles(&mut self) -> Result<Vec<SrvProfile>, Error>

List all GPON service profiles.
Source§

fn get_ont_optical_info( &mut self, fsp: &Fsp, ont_id: u32, ) -> Result<OntOpticalInfo, Error>

Get optical information for a specific ONT.
Source§

fn ont_add(&mut self, request: &OntAddRequest) -> Result<u32, Error>

Add an ONT on a GPON port and return the allocated ONT ID.
Source§

fn ont_delete_all(&mut self, fsp: &Fsp) -> Result<(), Error>

Delete all ONTs provisioned on a GPON port.
Source§

fn ont_port_native_vlan( &mut self, request: &OntPortNativeVlanRequest, ) -> Result<(), Error>

Configure the native VLAN on an ONT port.
Source§

fn list_alarms_detail(&mut self) -> Result<Vec<AlarmDetail>, Error>

List all active alarms with full detail.
Source§

fn list_alarms(&mut self) -> Result<Vec<AlarmListEntry>, Error>

List all active alarms in compact form.
Source§

fn list_service_ports(&mut self) -> Result<Vec<ServicePort>, Error>

List all service ports.
Source§

fn get_service_port(&mut self, id: u32) -> Result<ServicePortDetail, Error>

Get details of a specific service port by index.
Source§

fn list_service_ports_by_port( &mut self, fsp: &Fsp, ) -> Result<Vec<ServicePort>, Error>

List service ports on a specific physical port.
Source§

fn list_service_ports_by_ont( &mut self, fsp: &Fsp, ont_id: u32, ) -> Result<Vec<ServicePort>, Error>

List service ports for a specific ONT on a port.
Source§

fn service_port_add( &mut self, request: &ServicePortAddRequest, ) -> Result<(), Error>

Create a service port.
Source§

fn service_port_undo(&mut self, id: u32) -> Result<(), Error>

Remove a service port by index.
Source§

fn list_vlans(&mut self) -> Result<Vec<Vlan>, Error>

List all VLANs.
Source§

fn get_vlan(&mut self, id: u32) -> Result<VlanDetail, Error>

Get details of a specific VLAN.
Source§

fn create_vlan(&mut self, id: u32, vlan_type: VlanType) -> Result<(), Error>

Create a VLAN with the specified VLAN type.
Source§

fn delete_vlan(&mut self, id: u32) -> Result<(), Error>

Delete a VLAN.
Source§

fn ping(&mut self) -> Result<(), Error>

Check if the connection is alive.
Source§

fn quit(&mut self) -> Result<(), Error>

Close the connection gracefully.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.