Skip to content
Snippets Groups Projects
  • Linus Lüssing's avatar
    b3a9221b
    gluon-l3roamd: site: make node_client_prefix6 optional+deprecated · b3a9221b
    Linus Lüssing authored
    
    The site.node_client_prefix6() is only used internally by the l3roamd
    protocol. Therefore it is unnecessary to expose it to an administrator.
    
    Instead, if node_client_prefix6 is unspecified in the site, generate an
    IPv6 Unique Local Address prefix from the site domain_seed.
    
    This updates the site documentation as well and marks this setting as
    both optional and deprecated.
    
    Note: If you had the node_client_prefix6 specified before and want to
    use the new autogeneration from the domain_seed instead then this will
    break compatibility and will need a gluon-scheduled-domain switch.
    
    Signed-off-by: default avatarLinus Lüssing <linus.luessing@c0d3.blue>
    b3a9221b
    History
    gluon-l3roamd: site: make node_client_prefix6 optional+deprecated
    Linus Lüssing authored
    
    The site.node_client_prefix6() is only used internally by the l3roamd
    protocol. Therefore it is unnecessary to expose it to an administrator.
    
    Instead, if node_client_prefix6 is unspecified in the site, generate an
    IPv6 Unique Local Address prefix from the site domain_seed.
    
    This updates the site documentation as well and marks this setting as
    both optional and deprecated.
    
    Note: If you had the node_client_prefix6 specified before and want to
    use the new autogeneration from the domain_seed instead then this will
    break compatibility and will need a gluon-scheduled-domain switch.
    
    Signed-off-by: default avatarLinus Lüssing <linus.luessing@c0d3.blue>
check_site.lua 372 B
need_string_match(in_domain({'node_prefix6'}), '^[%x:]+/64$')

need_string_match(in_domain({'next_node', 'ip6'}), '^[%x:]+$', false)
need_string_match(in_domain({'next_node', 'ip4'}), '^%d+.%d+.%d+.%d+$', false)

need_string_match(in_domain({'next_node', 'mac'}), '^%x[02468aAcCeE]:%x%x:%x%x:%x%x:%x%x:%x%x$', false)

need_value(in_domain({'mesh', 'vxlan'}), true, false)