ALT Linux sysadmins discussion
 help / color / mirror / Atom feed
From: "Peter V. Saveliev" <peet@altlinux.ru>
To: ALT Linux sysadmin discuss <sysadmins@lists.altlinux.org>
Subject: Re: [Sysadmins] ncsh <skip />
Date: Fri, 19 Oct 2007 15:41:41 +0400
Message-ID: <200710191541.41399.peet@altlinux.ru> (raw)
In-Reply-To: <47188EBF.7060900@solin.spb.ru>

В сообщении от Friday 19 October 2007 15:02:23 Aleksey Avdeev написал(а):
<skip />
>   Можно ли настроить бриджи на автореконфигурацию при
> добавлении/удалении интерфейсов?

Смотря что понимать под автореконфигурацией :)

На данный момент ncsh умеет только netlink-события с адресами; само по себе 
добавление интерфейса, без адреса, проходит другим событием и пока что не 
обрабатывается.

Пока что == до начала след. недели, т.к. на выходных случится очередной 
приступ кодирования, и функциональности ещё прирастёт. В репозитарии svn это 
будет вечером в воскресенье, в Сизифе -- как пройдёт через инкаминг, думаю, в 
понедельник или вторник.

Соотв., это можно будет сделать или так:

!
catch netlink.link.add
	exec service bridge restart
!
events
	netlink

...

или так:

!
configure network interfaces
	!
	bridge 0
		! 
		! декларируем ветку как функцию
		declare br
		!
		! потенциальные участники бриджа
		interface venet0
		interface venet1
		interface venet2
		...
	!
	catch netlink.link.add
		call br
!
events
	netlink

...

т.е. можно назначать адрес при старте venet, и делать catch 
netlink.address.add, но это как-то через голову; проще подождать понедельника 
и netlink.link.

-- 
Peter V. Saveliev

  reply	other threads:[~2007-10-19 11:41 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-19 11:03 [Sysadmins] ncsh: настройка машины в ответ на события Peter V. Saveliev
2007-10-19 11:02 ` [Sysadmins] ncsh: п╫п╟я│я┌я─п╬п╧п╨п╟ п╪п╟я┬п╦п╫я▀ п╡ п╬я┌п╡п╣я┌ п╫п╟ я│п╬п╠я▀я┌п╦я▐ Aleksey Avdeev
2007-10-19 11:41   ` Peter V. Saveliev [this message]
2007-10-19 11:46     ` [Sysadmins] ncsh <skip /> Aleksey Avdeev

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200710191541.41399.peet@altlinux.ru \
    --to=peet@altlinux.ru \
    --cc=sysadmins@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux sysadmins discussion

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sysadmins/0 sysadmins/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 sysadmins sysadmins/ http://lore.altlinux.org/sysadmins \
		sysadmins@lists.altlinux.org sysadmins@lists.altlinux.ru sysadmins@lists.altlinux.com
	public-inbox-index sysadmins

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.sysadmins


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git