@ -79,6 +79,16 @@ let
description = " A l i s t o f c o m m a n d s c a l l e d a f t e r s h u t t i n g d o w n t h e i n t e r f a c e . " ;
} ;
table = mkOption {
default = " m a i n " ;
type = types . str ;
description = '' T h e k e r n e l r o u t i n g t a b l e t o a d d t h i s i n t e r f a c e ' s
associated routes to . Setting this is useful for e . g . policy routing
( " i p r u l e " ) or virtual routing and forwarding ( " i p v r f " ) . Both numeric
table IDs and table names ( /etc/rt_tables ) can be used . Defaults to
" m a i n " . '' ;
} ;
peers = mkOption {
default = [ ] ;
description = " P e e r s l i n k e d t o t h e i n t e r f a c e . " ;
@ -160,14 +170,6 @@ let
interval of 25 seconds ; however , most users will not need this . '' ;
} ;
table = mkOption {
default = " m a i n " ;
type = types . str ;
description = '' T h e k e r n e l r o u t i n g t a b l e t o a d d t h i s p e e r ' s a s s o c i a t e d
routes to . Setting this is useful for e . g . policy routing ( " i p r u l e " )
or virtual routing and forwarding ( " i p v r f " ) . Both numeric table IDs
and table names ( /etc/rt_tables ) can be used . Defaults to " m a i n " . '' ;
} ;
} ;
} ;
@ -217,7 +219,7 @@ let
( map ( peer :
( map ( allowedIP :
" ${ ipCommand } r o u t e r e p l a c e ${ allowedIP } d e v ${ name } t a b l e ${ peer . table } "
" ${ ipCommand } r o u t e r e p l a c e ${ allowedIP } d e v ${ name } t a b l e ${ values . table } "
) peer . allowedIPs )
) values . peers )