[Xorp-users] Problem regarding policy/network4-list/modifier

Igor Maravić igorm at etf.rs
Fri Jun 8 06:45:09 PDT 2012


I think that you are doing everything wright. I think that I know
where BUG is. String's are concatenated without " " as the code
expects.
I can fix that in Monday.
BR
Igor

2012/6/8 Jens Dackenberg <jens.devel at gmail.com>:
> Hi!
>
> I have a problem with defining network4-lists with modifiers in policy
> configuration.
> So I have the following configuration (see below) but xorp wont start with
> it.
> I've also tried to make the configuration manually via xorpshell like:
> # create policy network4-list No_Advertise network 10.0.0.0/8 modifier
> orlonger
> # commit
> Commit Failed
> 102 Command failed add_to_set: PolicyException from line 158 of
> policy/common/element.cc: Can't init ipv4net using 10.0.0.0/8orlonger
>
> This doesn't happen if I remove "modifier orlonger". Can somebody please
> tell me what I'm doing wrong?
>
> Regards,
> /Jens
>
> /*-----------------------------------
> Parts of the config.boot file
> --------------------------------------*/
>
> policy {
>     policy-statement "Route_Export" {
>         term 10 {
>             from {
>                 protocol: "connected"
>                 network4-list: "Default_Route"
>             }
>             then {
>                 reject {
>                 }
>             }
>         }
>         term 20 {
>             from {
>                 protocol: "connected"
>                 network4-list: "No_Advertise"
>             }
>             then {
>                 reject {
>                 }
>             }
>         }
>         term 30 {
>             from {
>                 protocol: "connected"
>         prefix-length4 < 32..32
>             }
>             then {
>                 accept {
>                 }
>             }
>         }
>         then {
>             reject {
>             }
>         }
>     }
>     network4-list "No_Advertise" {
>         network 127.0.0.0/8 {
>             modifier: "orlonger"
>         }
>         network 10.0.0.0/8 {
>             modifier: "orlonger"
>         }
>         network 172.16.0.0/12 {
>             modifier: "orlonger"
>         }
>         network 192.168.0.0/16 {
>             modifier: "orlonger"
>         }
>     }
>     network4-list "Default_Route" {
>         network 0.0.0.0/0
>     }
> }
>
> _______________________________________________
> Xorp-users mailing list
> Xorp-users at xorp.org
> http://mailman.ICSI.Berkeley.EDU/mailman/listinfo/xorp-users
>



More information about the Xorp-users mailing list