Giter Club home page Giter Club logo

Comments (5)

nickhilliard avatar nickhilliard commented on September 26, 2024

these are defined in the networkinfo table. At the moment there is no GUI interface to modify this so it's necessary to modify the sql directly. See the "Network Info" section of https://github.com/inex/IXP-Manager/wiki/Installation-08-Setting-Up-Your-IXP

from ixp-manager.

 avatar commented on September 26, 2024

Hi,

as I'm not an sql expert, can give me little help with the mysql sql syntax to
populate this table? Should be added to the wiki, as well.

I tried:

mysql> use ixp

mysql>INSERT INTO networkinfo (protocol, network, masklen, rs1address, rs2address, dnsfile) VALUES (4,"193.178.185.0",25,"193.178.185.5","193.178.185.6","/etc/bind/zones/185.178.193.in-addr.arpa.include") WHERE vlanid = 100;

ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE vlanid=100' at line 1
mysql>

Thanks, Thorleif

from ixp-manager.

nickhilliard avatar nickhilliard commented on September 26, 2024
INSERT INTO networkinfo (vlanid, protocol, network, masklen, rs1address, rs2address, dnsfile) VALUES (100, 4,"193.178.185.0",25,"193.178.185.5","193.178.185.6","/etc/bind/zones/185.178.193.in-addr.arpa.include");

Make sure that you use vlanid here. I.e. if you issue select id, name, number from vlan, you need to use the value in the id column.

from ixp-manager.

 avatar commented on September 26, 2024

Ah, ok.

mysql> select id, name, number from vlan;
+----+--------------------------------+--------+
| id | name                           | number |
+----+--------------------------------+--------+
|  1 | BCIX Peering LAN               |    100 |

gives me the id "1" for the insert:

INSERT INTO networkinfo  (vlanid, protocol, network, masklen, rs1address, rs2address, dnsfile) VALUES (1, 4,"193.178.185.0",25,"193.178.185.5","193.178.185.6","/etc/bind/zones/185.178.193.in-addr.arpa.include");

and this looks fine:

mysql> select * from networkinfo;
+----+--------+----------+---------------+---------+---------------+---------------+--------------------------------------------------+
| id | vlanid | protocol | network       | masklen | rs1address    | rs2address    | dnsfile                                          |
+----+--------+----------+---------------+---------+---------------+---------------+--------------------------------------------------+
|  2 |      1 |        4 | 193.178.185.0 |      25 | 193.178.185.5 | 193.178.185.6 | /etc/bind/zones/185.178.193.in-addr.arpa.include |
+----+--------+----------+---------------+---------+---------------+---------------+--------------------------------------------------+

So the "vlanid" is not the Q-TAG number, but the Database-ID

from ixp-manager.

nickhilliard avatar nickhilliard commented on September 26, 2024

So the "vlanid" is not the Q-TAG number, but the Database-ID

yep, correct.

from ixp-manager.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.