[Xorp-hackers] How to have a click + xorp compatible configuration ?

Xavier Brouckaert xbr@info.ucl.ac.be
Wed, 15 Dec 2004 13:57:01 +0100


--=-d5Et/T/OYBj1BdfgjaDz
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

Pavlin,

Now that XORP CVS runs again, I'm retrying to use click and before
writing my own config files, I'd like to run yours successfully (the one
you gave in a previous email).  What I'm facing is that I can't have a
xorp configuration that is both xorp and click compatible.

My configuration is like this currently :
interfaces {
    interface eth0 {
        description: "control interface"
        vif eth0 {
            address 10.2.0.4 {
                prefix-length: 24
                broadcast: 10.255.255.255
            }
        }
	mac: 1:1:1:1:1:1
	mtu: 1500
    }

    interface eth1 {
        description: "control interface"
        vif eth1 {
            address 10.7.0.1 {
                prefix-length: 24
                broadcast: 10.255.255.255
            }
        }
	mac: 2:2:2:2:2:2
	mtu: 1500
    }

}

fea {
    enable-unicast-forwarding4: true
    /* enable-unicast-forwarding6: true */

    click {
        enabled: true
        click-config-generator-file:
"/home/xbr/intel/fea/xorp_fea_click_config_generator"

        kernel-click {
            enabled: false
            install-on-startup: false
            kernel-click-modules:
"/path/to/proclikefs.o:/path/to/click.o"
            mount-directory: "/click"
        }

        user-click {
            enabled: true
            command-file: "/home/xbr/intel/bin/click"
            command-extra-arguments: "-R -p 13000"
            command-execute-on-startup: true
            control-address: 127.0.0.1
            control-socket-port: 13000
            startup-config-file: "/dev/null"
        }
    }
}

protocols {
    static {
        route4 10.10.0.0/16 {
            nexthop: 10.2.0.2
        }

        route4 10.20.0.0/16 {
            nexthop: 10.7.0.7
        }

    }
}

The difference with yours are :
- I use user-click instead of kernel-click
- I added the mtu and mac in both interfaces sections

xorp_fea_click_config_generator processes this configuration nicely and
gives a correct click configuration. =20

However, when I run "xorp_rtrmgr -b config.xorp", XORP doesn't like the
new mtu and mac syntax and I get :
[ 2004/12/15 13:43:28  ERROR xorp_rtrmgr:206 RTRMGR +357 main_rtrmgr.cc
run ] rtrmgr shutting down due to an init error: PARSE ERROR [Config
File /hosthome/config.xorp, line 10]: syntax error; Last symbol parsed
was "10.255.255.255"

I can't remove the mtu and mac, else xorp_fea_click_config_generator
will complain...

What's the trick ?

Thanks,
--=20
Xavier Brouckaert <xbr@info.ucl.ac.be>
UCL

--=-d5Et/T/OYBj1BdfgjaDz
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: Ceci est une partie de message
	=?ISO-8859-1?Q?num=E9riquement?= =?ISO-8859-1?Q?_sign=E9e?=

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)

iD8DBQBBwDSd0wy6WJnsH5oRAixtAJ91QHJXxwLVjxSEhwQw8A1WiGUaDgCgo0XU
IkS6PdBt0oENK61vrBqQA9A=
=f1sk
-----END PGP SIGNATURE-----

--=-d5Et/T/OYBj1BdfgjaDz--