Skip to content

BGP peer groups vs port names #768

Description

@jgallagher

Applying a new BGP config requires maps of numbered and unnumbered peers keyed by "peer group":

/// Lists of peers indexed by peer group.
pub peers: HashMap<String, Vec<BgpPeerConfig>>,
/// Lists of unnumbered peers indexed by peer group.
#[serde(default)]
pub unnumbered_peers: HashMap<String, Vec<UnnumberedBgpPeerConfig>>,

After a brief chat with @taspelund (but if there are any incorrect bits here, it's definitely my lack of context), my understanding is that a peer group in the BGP sense is a set of BGP peer configs that share some common settings. But:

Would Nexus be just as correct to send a HashMap with a single (arbitrary) key and all the configs in a single Vec value? If so, would it make sense to squish this API down to Vec<_>s instead of HashMap<String, Vec<_>>s?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions