/*
 * API Documentation
 *
 * Source of truth and network automation platform
 *
 * The version of the OpenAPI document: 3.1.0 (3.1)
 *
 * Generated by: https://openapi-generator.tech
 */

///
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum InterfaceRedundancyGroupProtocolChoices {
    #[serde(rename = "hsrp")]
    Hsrp,
    #[serde(rename = "vrrp")]
    Vrrp,
    #[serde(rename = "glbp")]
    Glbp,
    #[serde(rename = "carp")]
    Carp,
}

impl ToString for InterfaceRedundancyGroupProtocolChoices {
    fn to_string(&self) -> String {
        match self {
            Self::Hsrp => String::from("hsrp"),
            Self::Vrrp => String::from("vrrp"),
            Self::Glbp => String::from("glbp"),
            Self::Carp => String::from("carp"),
        }
    }
}

impl Default for InterfaceRedundancyGroupProtocolChoices {
    fn default() -> InterfaceRedundancyGroupProtocolChoices {
        Self::Hsrp
    }
}
