hummermania/csmanager

non unique server_ip

Closed this issue · 1 comments

I have created several servers with the same IP addresses (127.0.0.1).

First I add unique attribute in Server model on "name" and "ip" field separately, but we can have some servers with two or more interfaces, or more than one IP-addres on one network interface. So I can add complex unique index on the pair (name, ip) on the commit