Yes, of course.
You can find both in the attachments.

Please remember that this patch is not the whole story:
I didn't cross-check with BGP enabled. I assume that the
removed policy-definitions have to be put to another place.


Best regards,
Holger


Am 13.03.2014 18:47, schrieb Ben Greear:
On 03/07/2014 06:13 AM, Holger Kummert wrote:
Hello,

I'm new to this list and also new to XORP.
In my use case only PIM/SM is needed and therefore other
routing protocols like
bgp, ospf, rip, vrrp, olsr are disabled in scons configuration
(enable_bgp=no ...).
xorpsh is enabled.
After installation of XORP the call of xorpsh lead to the message:
# xorpsh
[ 2014/03/07 11:32:45.685376  ERROR xorpsh:18451 RTRMGR
rtrmgr/xorpsh_main.cc:900 main ] xorpsh exiting due to an init error:
PARSE ERROR [Operational Command File: /share/xorp/templates/policy.cmds
line 73]: Bad variable name: $(policy.community-list.*); Last symbol
parsed was "$(policy.community-list.*)"

I inspected policy.cmds and found out that the four items for
community-list and
as-path-list
are all related to BGP. Therefore a simple deletion of those items in
policy.cmds lead to an error-free call of xorpsh.
So I have a workaround for the problem, but my questions are:

- Is my analysis right?
- If yes, shouldn't the four items in question moved to another place
(e.g. bgp.cmds)?

Can you send a patch (git format-patch -s ....) and an example config
file that reproduces the problem?

Thanks,
Ben



Thanks in advance,
Holger

_______________________________________________
Xorp-hackers mailing list
[email protected]
http://mailman.ICSI.Berkeley.EDU/mailman/listinfo/xorp-hackers



>From f506a0f69555454e2f7e01aa20d2e230ec6c8707 Mon Sep 17 00:00:00 2001
From: Holger Kummert <[email protected]>
Date: Fri, 14 Mar 2014 18:40:22 +0100
Subject: [PATCH] Remove BGP4 policies.

---
 xorp/etc/templates/policy.cmds | 24 ------------------------
 1 file changed, 24 deletions(-)

diff --git a/xorp/etc/templates/policy.cmds b/xorp/etc/templates/policy.cmds
index ba75765..8bd7fcf 100644
--- a/xorp/etc/templates/policy.cmds
+++ b/xorp/etc/templates/policy.cmds
@@ -64,30 +64,6 @@ show policy network6-list $(policy.network6-list.*) {
     %tag: HELP "Show policy network6 list";
 }
 
-show policy community-list {
-    %command: "cli_send_processor_xrl -t policy -- show set_com32" %help: HELP;
-    %module: policy;
-    %tag: HELP "Show policy community lists";
-}
-
-show policy community-list $(policy.community-list.*) {
-    %command: "cli_send_processor_xrl -t policy -- show set_com32 $4" %help: HELP;
-    %module: policy;
-    %tag: HELP "Show policy community list";
-}
-
-show policy as-path-list {
-    %command: "cli_send_processor_xrl -t policy -- show set_str" %help: HELP;
-    %module: policy;
-    %tag: HELP "Show policy AS path lists";
-}
-
-show policy as-path-list $(policy.as-path-list.*) {
-    %command: "cli_send_processor_xrl -t policy -- show set_str $4" %help: HELP;
-    %module: policy;
-    %tag: HELP "Show policy AS path list";
-}
-
 show policy policy-statement {
     %command: "cli_send_processor_xrl -t policy -- show policy-statement" %help: HELP;
     %module: policy;
-- 
1.8.2.3

# cat xorp.conf
interfaces {
        interface eth2 {
                default-system-config
        }
        interface eth1 {
                default-system-config
        }
        interface eth3 {
                default-system-config
        }

}

fea {
        unicast-forwarding4 {
        }
}

plumbing {
        mfea4 {
                interface eth2 {
                        vif eth2 {
                        }
                }
                interface eth1 {
                        vif eth1 {
                        }
                }
                interface eth3 {
                        vif eth3 {
                        }
                }

                interface register_vif {
                        vif register_vif {
                        }
                }
                traceoptions {
                        flag all {
                                disable: false
                        }
                }
        }
}

protocols {
        static {

        }

        igmp {
                interface eth2 {
                        vif eth2 {
                                version: 2
                        }
                        vif eth2 {
                                version: 3
                        }
                }
                interface eth1 {
                        vif eth1 {
                                version: 2
                        }
                        vif eth1 {
                                version: 3
                        }
                }
                interface eth3 {
                        vif eth3 {
                                version: 2
                        }
                        vif eth3 {
                                version: 3
                        }
                }

                traceoptions {
                        flag all {
                                disable: false
                        }
                }
        }

        pimsm4 {
                interface eth2 {
                        vif eth2 {
                                dr-priority: 0
                        }
                }
                interface eth1 {
                        vif eth1 {
                                dr-priority: 10
                        }
                }
                interface eth3 {
                        vif eth3 {
                                dr-priority: 0
                        }
                }

                interface register_vif {
                        vif register_vif {
                        }
                }
                static-rps {
                        rp 10.145.48.49 {
                                group-prefix 239.0.0.1/32 {
                                        rp-priority: 10
                                }
                        }

                }
                switch-to-spt-threshold {
                        disable: false
                        interval: 60
                        bytes: 10000
                }
                traceoptions {
                        flag all {
                                disable: false
                        }
                }
        }

        fib2mrib {
        }
}
_______________________________________________
Xorp-hackers mailing list
[email protected]
http://mailman.ICSI.Berkeley.EDU/mailman/listinfo/xorp-hackers

Reply via email to