"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "go/testdata/parser.t" between
Netspoc-6.032.tar.gz and Netspoc-6.033.tar.gz

About: NetSPoC is a network security policy compiler (using its own description language) to manage all the packet filter devices inside your network topology.

parser.t  (Netspoc-6.032):parser.t  (Netspoc-6.033)
skipping to change at line 93 skipping to change at line 93
managed; managed;
interface:N = { ip = 10.1.1.1; hardware = e0; } interface:N = { ip = 10.1.1.1; hardware = e0; }
} }
network:N = { ip = 10.1.1.0/24; } network:N = { ip = 10.1.1.0/24; }
=END= =END=
=ERROR= =ERROR=
Error: Missing 'model' for managed router:R Error: Missing 'model' for managed router:R
=END= =END=
############################################################ ############################################################
=TITLE=Unknown extension for model =TITLE=Unknown extension for model ASA
=INPUT= =INPUT=
router:R = { router:R = {
managed; managed;
model = ASA, foo, bar; model = ASA, foo, bar;
interface:N = { ip = 10.1.1.1; hardware = e0; } interface:N = { ip = 10.1.1.1; hardware = e0; }
} }
network:N = { ip = 10.1.1.0/24; } network:N = { ip = 10.1.1.0/24; }
=END= =END=
=ERROR= =ERROR=
Error: Unknown extension in 'model' of router:R: foo Error: Unknown extension in 'model' of router:R: foo
Error: Unknown extension in 'model' of router:R: bar Error: Unknown extension in 'model' of router:R: bar
=END= =END=
############################################################ ############################################################
=TITLE=Unknown extension for model IOS
=INPUT=
router:R = {
managed;
model = IOS, VPN;
interface:N = { ip = 10.1.1.1; hardware = e0; }
}
network:N = { ip = 10.1.1.0/24; }
=END=
=ERROR=
Error: Unknown extension in 'model' of router:R: VPN
=END=
############################################################
=TITLE=Unknown extension for model Linux
=INPUT=
router:R = {
managed;
model = Linux, xyz;
interface:N = { ip = 10.1.1.1; hardware = e0; }
}
network:N = { ip = 10.1.1.0/24; }
=END=
=ERROR=
Error: Unknown extension in 'model' of router:R: xyz
=END=
############################################################
=TITLE=Unexpected attribute no_check =TITLE=Unexpected attribute no_check
=INPUT= =INPUT=
router:R = { router:R = {
managed; managed;
model = IOS; model = IOS;
interface:N = { ip = 10.1.1.1; hardware = e0; no_check; } interface:N = { ip = 10.1.1.1; hardware = e0; no_check; }
} }
network:N = { ip = 10.1.1.0/24; } network:N = { ip = 10.1.1.0/24; }
=END= =END=
=WARNING= =WARNING=
skipping to change at line 183 skipping to change at line 211
model = ASA; model = ASA;
interface:N = { ip = 10.1.1.1; no_in_acl; } interface:N = { ip = 10.1.1.1; no_in_acl; }
} }
network:N = { ip = 10.1.1.0/24; } network:N = { ip = 10.1.1.0/24; }
=END= =END=
=ERROR= =ERROR=
Error: Missing 'hardware' for interface:R.N Error: Missing 'hardware' for interface:R.N
=END= =END=
############################################################ ############################################################
=TITLE=Model doesn't support no_in_acl
=INPUT=
router:R = {
managed;
model = Linux;
interface:N = { ip = 10.1.1.1; no_in_acl; hardware = N; }
}
network:N = { ip = 10.1.1.0/24; }
=END=
=ERROR=
Error: router:R doesn't support outgoing ACL
=END=
############################################################
=TITLE=Multiple interfaces with attribute 'no_in_acl' =TITLE=Multiple interfaces with attribute 'no_in_acl'
=INPUT= =INPUT=
network:N1 = { ip = 10.1.1.0/24; } network:N1 = { ip = 10.1.1.0/24; }
network:N2 = { ip = 10.1.2.0/24; } network:N2 = { ip = 10.1.2.0/24; }
router:R = { router:R = {
managed; managed;
model = ASA; model = ASA;
interface:N1 = { ip = 10.1.1.1; no_in_acl; hardware = n1; } interface:N1 = { ip = 10.1.1.1; no_in_acl; hardware = n1; }
interface:N2 = { ip = 10.1.2.1; no_in_acl; hardware = n2; } interface:N2 = { ip = 10.1.2.1; no_in_acl; hardware = n2; }
} }
skipping to change at line 449 skipping to change at line 491
=TITLE=Identifier expected =TITLE=Identifier expected
=INPUT= =INPUT=
network:n1 = { owner = } network:n1 = { owner = }
=END= =END=
=ERROR= =ERROR=
Error: Unexpected separator '}' at line 1 of INPUT, near "owner = --HERE-->}" Error: Unexpected separator '}' at line 1 of INPUT, near "owner = --HERE-->}"
Aborted Aborted
=END= =END=
############################################################ ############################################################
=TITLE=Invalid identifier in reference
=INPUT=
network:n1 = { ip = 10.1.1.0/24; owner = a/b; }
=END=
=WARNING=
Warning: Ignoring undefined owner:a/b of network:n1
=END=
############################################################
=TITLE=Invalid identifier in partition
=INPUT=
network:n1 = { ip = 10.1.1.0/24; partition = a/b; }
=END=
=ERROR=
Error: Invalid identifier in 'partition' of network:n1: a/b
=END=
############################################################
=TITLE=String expected =TITLE=String expected
=INPUT= =INPUT=
owner:o1 = { admins = ; } owner:o1 = { admins = ; }
network:n1 = { ip = 10.1.1.0/24; } network:n1 = { ip = 10.1.1.0/24; }
=END= =END=
=ERROR= =ERROR=
Error: List of values expected in 'admins' of owner:o1 Error: List of values expected in 'admins' of owner:o1
=END= =END=
############################################################ ############################################################
=TITLE=Single value expected
=INPUT=
network:n1 = { ip = 10.1.1.0/24, 10.1.2.0/24; }
=END=
=ERROR=
Error: Single value expected in 'ip' of network:n1
Error: Invalid CIDR address: in 'ip' of network:n1
=END=
############################################################
=TITLE=Structured value expected
=INPUT=
network:n1 = { ip = 10.1.1.0/24; host:h = 10.1.1.10; }
=END=
=ERROR=
Error: Structured value expected in 'host:h'
Error: host:h needs exactly one of attributes 'ip' and 'range'
=END=
############################################################
=TITLE=No value expected
=INPUT=
network:n1 = { ip = 10.1.1.0/24; has_subnets = yes; }
=END=
=ERROR=
Error: No value expected for flag 'has_subnets' of network:n1
=END=
############################################################
=TITLE=Comma expected in union of values (1) =TITLE=Comma expected in union of values (1)
=INPUT= =INPUT=
group:g1 = host:h1 host:h2; group:g1 = host:h1 host:h2;
=END= =END=
=ERROR= =ERROR=
Error: Expected ';' at line 1 of INPUT, near "host:h1 --HERE-->host:h2" Error: Expected ';' at line 1 of INPUT, near "host:h1 --HERE-->host:h2"
Aborted Aborted
=END= =END=
############################################################ ############################################################
skipping to change at line 622 skipping to change at line 711
=TITLE=Bad NAT name =TITLE=Bad NAT name
=INPUT= =INPUT=
network:n = { nat:a+b = { ip = 10.9.9.0/24; } ip = 10.1.1.0/24; } network:n = { nat:a+b = { ip = 10.9.9.0/24; } ip = 10.1.1.0/24; }
=END= =END=
=ERROR= =ERROR=
Error: Expected '=' at line 1 of INPUT, near "nat:a--HERE-->+b" Error: Expected '=' at line 1 of INPUT, near "nat:a--HERE-->+b"
Aborted Aborted
=END= =END=
############################################################ ############################################################
=TITLE=Bad crypto in hub
=INPUT=
network:n = { ip = 10.1.1.0/24; }
router:r = {
managed;
model = IOS;
interface:n = { ip = 10.1.1.1; hardware = n; hub = foo, tool:bar; }
}
=ERROR=
Error: Expected type 'crypto:' in 'hub' of interface:r.n
Error: Expected type 'crypto:' in 'hub' of interface:r.n
=END=
############################################################
=TITLE=Bad crypto in spoke
=INPUT=
network:n = { ip = 10.1.1.0/24; }
router:r = {
managed;
model = IOS;
interface:n = { ip = 10.1.1.1; hardware = n; spoke = cyrpto:n; }
}
=ERROR=
Error: Expected type 'crypto:' in 'spoke' of interface:r.n
=END=
############################################################
=TITLE=Bad VPN id =TITLE=Bad VPN id
=INPUT= =INPUT=
router:r = { router:r = {
interface:n1 = { id = a.b.c; } interface:n1 = { id = a.b.c; }
} }
network:n1 = { unnumbered; } network:n1 = { unnumbered; }
=END= =END=
=ERROR= =ERROR=
Error: Invalid 'id' in interface:r.n1: a.b.c Error: Invalid 'id' in interface:r.n1: a.b.c
Error: Attribute 'id' is only valid with 'spoke' at interface:r.n1 Error: Attribute 'id' is only valid with 'spoke' at interface:r.n1
skipping to change at line 644 skipping to change at line 760
############################################################ ############################################################
=TITLE=Ignore cert_id =TITLE=Ignore cert_id
=INPUT= =INPUT=
network:n = { ip = 10.1.1.0/24; cert_id = a.b.c; } network:n = { ip = 10.1.1.0/24; cert_id = a.b.c; }
=END= =END=
=WARNING= =WARNING=
Warning: Ignoring 'cert_id' at network:n Warning: Ignoring 'cert_id' at network:n
=END= =END=
############################################################ ############################################################
=TITLE=Missing cert_id
=INPUT=
network:n = {
ip = 10.1.1.0/24;
host:h = { range = 10.1.1.8 - 10.1.1.15; ldap_id = a@b.c; }
}
=END=
=ERROR=
Error: Missing attribute 'cert_id' at network:n having hosts with attribute 'lda
p_id'
=END=
############################################################
=TITLE=Bad cert_id =TITLE=Bad cert_id
=INPUT= =INPUT=
network:n = { network:n = {
ip = 10.1.1.0/24; cert_id = @b.c; ip = 10.1.1.0/24; cert_id = @b.c;
host:h = { ip = 10.1.1.1; ldap_id = a@b.c; } host:h = { ip = 10.1.1.1; ldap_id = a@b.c; }
} }
=END= =END=
=ERROR= =ERROR=
Error: Attribute 'ldap_Id' must only be used together with IP range at host:h Error: Attribute 'ldap_Id' must only be used together with IP range at host:h
Error: Domain name expected in attribute 'cert_id' of network:n Error: Domain name expected in attribute 'cert_id' of network:n
skipping to change at line 684 skipping to change at line 812
managed = xxx; managed = xxx;
interface:n; interface:n;
} }
network:n = { ip = 10.1.1.0/24; } network:n = { ip = 10.1.1.0/24; }
=END= =END=
=ERROR= =ERROR=
Error: Invalid value for 'managed' of router:r: xxx Error: Invalid value for 'managed' of router:r: xxx
=END= =END=
############################################################ ############################################################
=TITLE=Unknown routing protocol
=INPUT=
router:r = {
routing = xyz;
interface:n = { routing = abc; }
}
network:n = { ip = 10.1.1.0/24; }
=END=
=ERROR=
Error: Unknown routing protocol in 'routing' of router:r
Error: Unknown routing protocol in 'routing' of interface:r.n
=END=
############################################################
=TITLE=Must not use 'routing = manual' at interface
=INPUT=
network:n1 = { ip = 10.1.1.0/24; }
router:r1 = {
managed;
model = ASA;
interface:n1 = { ip = 10.1.1.1; hardware = n1; routing = manual; }
}
=END=
=WARNING=
Warning: 'routing=manual' must only be applied to router, not to interface:r1.n1
=END=
############################################################
=TITLE=Bad typed name as attribute of host =TITLE=Bad typed name as attribute of host
=INPUT= =INPUT=
network:n = { network:n = {
ip = 10.1.1.0/24; ip = 10.1.1.0/24;
host:h = { ip = 10.1.1.1; xy:z; } host:h = { ip = 10.1.1.1; xy:z; }
} }
=END= =END=
=ERROR= =ERROR=
Error: Unexpected attribute in host:h: xy:z Error: Unexpected attribute in host:h: xy:z
=END= =END=
skipping to change at line 759 skipping to change at line 915
=TITLE=NAT without IP =TITLE=NAT without IP
=INPUT= =INPUT=
network:n1 = { nat:n = { } } network:n1 = { nat:n = { } }
=END= =END=
=ERROR= =ERROR=
Error: Missing IP address in nat:n of network:n1 Error: Missing IP address in nat:n of network:n1
Error: Missing IP address for network:n1 Error: Missing IP address for network:n1
=END= =END=
############################################################ ############################################################
=TITLE=Ignoring radius attribute =TITLE=Ignoring radius attribute at network
=INPUT= =INPUT=
network:n1 = { ip = 10.1.1.0/24; radius_attributes = { a = b; } } network:n1 = { ip = 10.1.1.0/24; radius_attributes = { a = b; } }
=END= =END=
=WARNING= =WARNING=
Warning: Ignoring 'radius_attributes' at network:n1 Warning: Ignoring 'radius_attributes' at network:n1
=END= =END=
############################################################ ############################################################
=TITLE=Ignoring radius attribute at host
=INPUT=
network:n1 = { ip = 10.1.1.0/24;
host:h1 = { ip = 10.1.1.10; radius_attributes = { a = b; } }
}
=END=
=WARNING=
Warning: Ignoring 'radius_attributes' at host:h1
=END=
############################################################
=TITLE=Bad identifier in radius attribute =TITLE=Bad identifier in radius attribute
=INPUT= =INPUT=
network:n1 = { network:n1 = {
ip = 10.1.1.0/24; radius_attributes = { a.1 = 1; } ip = 10.1.1.0/24; radius_attributes = { a.1 = 1; }
host:id:a@b.c = { ip = 10.1.1.1; } host:id:a@b.c = { ip = 10.1.1.1; }
} }
=END= =END=
=ERROR= =ERROR=
Error: Invalid identifier 'a.1' in radius_attributes of network:n1 Error: Invalid identifier 'a.1' in radius_attributes of network:n1
=END= =END=
skipping to change at line 790 skipping to change at line 957
=TITLE=Bad radius attribute with comment character =TITLE=Bad radius attribute with comment character
=INPUT= =INPUT=
network:n1 = { radius_attributes = { banner = Welcome #two; } } network:n1 = { radius_attributes = { banner = Welcome #two; } }
=END= =END=
=ERROR= =ERROR=
Error: Expected ';' at line 1 of INPUT, at EOF Error: Expected ';' at line 1 of INPUT, at EOF
Aborted Aborted
=END= =END=
############################################################ ############################################################
=TITLE=Unexpected NAT attribute =TITLE=Bad value for restricting attribute
=INPUT=
network:n1 = { ip = 10.1.1.0/24; has_unenforceable = allow; }
=END=
=ERROR=
Error: Expected 'restrict', 'enable' or 'ok' in 'has_unenforceable' of network:n
1
=END=
############################################################
=TITLE=Unexpected NAT attribute at network
=INPUT= =INPUT=
network:n = { network:n = {
ip = 10.1.1.0/24; ip = 10.1.1.0/24;
nat:n = { ip = 10.9.9.0/24; xyz; } nat:n = { ip = 10.9.9.0/24; xyz; }
} }
=END= =END=
=ERROR= =ERROR=
Error: Unexpected attribute in nat:n of network:n: xyz Error: Unexpected attribute in nat:n of network:n: xyz
=END= =END=
############################################################ ############################################################
=TITLE=Unexpected NAT attribute at host
=INPUT=
network:n = {
ip = 10.1.1.0/24;
nat:n = { ip = 10.9.9.0/29; dynamic; }
host:h = { ip = 10.1.1.10; nat:n = { ip = 10.9.9.3; dynamic; } }
}
=END=
=ERROR=
Error: Unexpected attribute in nat:n of host:h: dynamic
=END=
############################################################
=TITLE=Unexpected NAT attribute at interface
=INPUT=
network:n = {
ip = 10.1.1.0/24;
nat:n = { ip = 10.9.9.0/29; dynamic; }
}
router:r = {
interface:n = { ip = 10.1.1.1; nat:n = { ip = 10.9.9.1; xyz; } }
}
=END=
=ERROR=
Error: Unexpected attribute in nat:n of interface:r.n: xyz
=END=
############################################################
=TITLE=Service without user =TITLE=Service without user
=INPUT= =INPUT=
service:s1 = { service:s1 = {
permit src = user; dst = network:n1; prt = tcp 80; permit src = user; dst = network:n1; prt = tcp 80;
} }
=END= =END=
=ERROR= =ERROR=
Error: Expected '=' at line 2 of INPUT, near "permit --HERE-->src" Error: Expected '=' at line 2 of INPUT, near "permit --HERE-->src"
Aborted Aborted
=END= =END=
skipping to change at line 1201 skipping to change at line 1405
=INPUT= =INPUT=
network:n1 = { ip = 10.1.1.0/24; } network:n1 = { ip = 10.1.1.0/24; }
router:r = { router:r = {
managed; managed;
model = ASA; model = ASA;
policy_distribution_point = network:n1; policy_distribution_point = network:n1;
interface:n1 = { ip = 10.1.1.1; hardware = n1; } interface:n1 = { ip = 10.1.1.1; hardware = n1; }
} }
=END= =END=
=ERROR= =ERROR=
Error: Must only use host name in 'policy_distribution_point' of router:r Error: Expected type 'host:' in 'policy_distribution_point' of router:r
=END= =END=
############################################################ ############################################################
=TITLE=Unknown host as policy_distribution_point =TITLE=Unknown host as policy_distribution_point
=INPUT= =INPUT=
network:n1 = { ip = 10.1.1.0/24; } network:n1 = { ip = 10.1.1.0/24; }
router:r = { router:r = {
managed; managed;
model = ASA; model = ASA;
policy_distribution_point = host:h1; policy_distribution_point = host:h1;
 End of changes. 13 change blocks. 
4 lines changed or deleted 210 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)